Click here to Skip to main content
15,900,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell20-Sep-12 8:54
jschell20-Sep-12 8:54 
GeneralRe: What makes C and C++ a "good" language? Pin
Ingo20-Sep-12 5:19
Ingo20-Sep-12 5:19 
AnswerRe: What makes C and C++ a "good" language? Pin
Kenneth Haugland25-Sep-12 4:56
mvaKenneth Haugland25-Sep-12 4:56 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti25-Sep-12 5:07
pasztorpisti25-Sep-12 5:07 
GeneralRe: What makes C and C++ a "good" language? Pin
Kenneth Haugland25-Sep-12 5:08
mvaKenneth Haugland25-Sep-12 5:08 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti25-Sep-12 5:45
pasztorpisti25-Sep-12 5:45 
AnswerRe: What makes C and C++ a "good" language? Pin
Member 929954619-Sep-12 2:49
Member 929954619-Sep-12 2:49 
AnswerRe: What makes C and C++ a "good" language? Pin
Stefan_Lang21-Sep-12 0:22
Stefan_Lang21-Sep-12 0:22 
Why shouldn't the industry still use it? If it worked for them in the past, and they already have the programmers experienced in its use, why take the risk and switch to something else?

And besides, in many areas it still makes sense to use C/C++ rather than presumably more advanced languages:

1. Existing low level drivers are mostly written in C, and when adding a new driver it would needlessly complicate the interfaces and introduce additional sources of errors.

2. Similarly, Unix and Linux related OSs are written in C/C++, and writing any OS extension in another language would just complicate matters needlessly.

3. Embedded devices usually have much less resources available (processor, memory capacity), and there may only be a limited amount of compilers available for the OS being used. This makes languages like C/C++ a more attractive choice, as they can better deal with these conditions than some modern languages that were designed with the resources and OS-functionality of a full-fledged workstation in mind. E. g. you won't usually find .NET on embedded devices. Wink | ;)

4. Real time applications often require full control of algorithms for time critical functions. Modern languages that rely on libraries or provide their own implementation of certain functions don't easily allow that kind of low-level control. Pretty much any language that provides garbage collection is a big no-no for real time, as you cannot sufficiently control when garbage collection occurs. Also, any language that does not use pointers can not be as efficient as a language that does. (or at least I wouldn't know how that's possible)

5. Any application that does an amount of local processing sufficient to make the users wait for more than a couple of seconds, can benefit from a language that allows for better performance. As pointed out in 4., languages not using pointers, or implementing garbage collection, may be inferior choices.

There are lots of examples where the benfits of C/C++ don't shine, e. g. a browser, or just about any web application benefits much more from libraries and even basic functionality that other languages like Java, PHP, Ruby etc. provide, and don't have any real restrictions regarding resources or performance. This is not my area of expertise though.

Personally I believe that beyond the above reasons, companies may stick with C/C++ simply because it works, and they are reluctant to switch to something new when all (or most) their programmers are used to C/C++.
AnswerRe: What makes C and C++ a "good" language? Pin
Rajesh R Subramanian25-Sep-12 1:14
professionalRajesh R Subramanian25-Sep-12 1:14 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini25-Sep-12 2:22
mveCPallini25-Sep-12 2:22 
AnswerRe: What makes C and C++ a "good" language? Pin
ErnestoNet25-Sep-12 6:44
ErnestoNet25-Sep-12 6:44 
QuestionAudio creation/conversion SDK's Pin
Member 929954618-Sep-12 6:27
Member 929954618-Sep-12 6:27 
Questionsocket read on a keep alive request waits until connection timeout - II Pin
Jayapal Chandran17-Sep-12 20:36
Jayapal Chandran17-Sep-12 20:36 
AnswerCrosspost Pin
Peter_in_278017-Sep-12 20:55
professionalPeter_in_278017-Sep-12 20:55 
GeneralRe: Crosspost Pin
Jayapal Chandran18-Sep-12 11:12
Jayapal Chandran18-Sep-12 11:12 
AnswerRe: socket read on a keep alive request waits until connection timeout - II Pin
pasztorpisti17-Sep-12 21:23
pasztorpisti17-Sep-12 21:23 
GeneralRe: socket read on a keep alive request waits until connection timeout - II Pin
Jayapal Chandran18-Sep-12 11:13
Jayapal Chandran18-Sep-12 11:13 
GeneralRe: socket read on a keep alive request waits until connection timeout - II Pin
pasztorpisti18-Sep-12 12:09
pasztorpisti18-Sep-12 12:09 
QuestionMultiple selection in Tree control(Non MFC) Pin
Ram Shelke17-Sep-12 20:10
Ram Shelke17-Sep-12 20:10 
AnswerRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan17-Sep-12 22:35
mveRichard MacCutchan17-Sep-12 22:35 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Ram Shelke17-Sep-12 23:01
Ram Shelke17-Sep-12 23:01 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan17-Sep-12 23:12
mveRichard MacCutchan17-Sep-12 23:12 
AnswerRe: Multiple selection in Tree control(Non MFC) Pin
Chris Meech18-Sep-12 3:59
Chris Meech18-Sep-12 3:59 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan18-Sep-12 4:10
mveRichard MacCutchan18-Sep-12 4:10 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Chris Meech18-Sep-12 4:15
Chris Meech18-Sep-12 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.