472,355 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,355 software developers and data experts.

choose between script and c++

hi all
some one has said that the script is glue language, and it is very
useful in some cases.

most of tasks, i can decide which language i should use, for example:
text substitution, consider, when we begin to write a function, we may
declare a interface as:void Foo(char* pFoo); and use it throughout.
Now, it's time to support UNICODE, so we have to update the interface
as Foo(TCHAR* pFoo); hence we should replace function calls
Foo("Xxxxxx") with Foo(_T("Xxxxxx")) ! I don't find any editor can do
this style find&replace. this is good case for script such as perl.

but sometimes, the case is very subtle. These days, i am developing a
function based another prodcut. the vender provided 2 interfaces:
script and c++. i have no experience in script, but it seems script has
high development efficiency but low modularity.

So what should i think about for choosing between script and c++? i.e.
which functions do i should implement with c++, and which functions do
i should implement with script?

Nov 30 '05 #1
1 1311
baibaichen wrote:
hi all
some one has said that the script is glue language, and it is very
useful in some cases.

most of tasks, i can decide which language i should use, for example:
text substitution, consider, when we begin to write a function, we may
declare a interface as:void Foo(char* pFoo); and use it throughout.
Now, it's time to support UNICODE, so we have to update the interface
as Foo(TCHAR* pFoo); hence we should replace function calls
Foo("Xxxxxx") with Foo(_T("Xxxxxx")) ! I don't find any editor can do
this style find&replace. this is good case for script such as perl.
You might be able to do this with regular expressions, which many
editors (and scripting languages, for that matter) support with aplomb.
See, for instance, nedit.org.
but sometimes, the case is very subtle. These days, i am developing a
function based another prodcut. the vender provided 2 interfaces:
script and c++. i have no experience in script, but it seems script has
high development efficiency but low modularity.

So what should i think about for choosing between script and c++? i.e.
which functions do i should implement with c++, and which functions do
i should implement with script?


Choice of language for a particular task is entirely application
dependent and driven primarily by business concerns. See the FAQ:

http://www.parashift.com/c++-faq-lit...e.html#faq-6.5

Cheers! --M

Nov 30 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: kingofkolt | last post by:
I have a directory of images, called "random". In it are the following files: 1.gif 2.gif 3.gif 4.gif I use this script to choose a random image and display it:
6
by: lucy | last post by:
Hello comp.lang.js.I need a script to rotate a background image on each newpage load, given the id of the element and a list (array?)of 2 or more image paths ("img1.jpg", "img2.jpg", ...).Actually,...
14
by: Howard Kaikow | last post by:
Can I use a bookmark to selectively choose the code to be run? For example. Suppose we have the following in an HTML file: <html>
6
by: Penny | last post by:
Hi all, I've built a simple search <Form> on a web page that is intended to allow the user to search a record store database. There is a drop down box where the user can choose either 'Artist'...
8
by: Nicole | last post by:
Hi I need to be able to change the currency and some form fields displayed on my website depending on where the visitor is based. I don't need a fully functional cart, just a kinda either...
0
by: guido_brasletti | last post by:
Hi, I'm asking for help because I read dozens of threads on this subject, but I still cannot make it work. I'm developing an ASP script (running on a SBS 2k. I'm a beginner with ASP) to use on...
0
by: palo | last post by:
Hello I wrote a little script (that will be used only under Windows if at all) where the user should choose a directory and the script will then process some data files in the directory and write...
0
by: TB | last post by:
Hi All: A kind soul provided by with the code for very nice calendar popup, which all in all works fine execpt for one thing: If I pick the current date (i.e. today's date) then the pop-up does...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.