By using this site, you agree to our Privacy Policy and our Terms of Use. Close
vlad321 said:
Deneidez said:
Cypher1980 said:
One word of warning about C and C++

There tends to be a snobby attitiude about using C++ as a superior coding platform but nine times out of ten C will get the job done and will be quicker to code.

I would say that in any case C is much more effective and well mostly it is also quicker to code. However OO is there because of size of projects and need for some sort of capsulation. Keeping millions of lines together in procedural world is just too hard. OO does it nearly automatically for you. Also I wouldn't use C or C++ if I would have to code simple egg clock for example. Java or python would be much better suited for that job. They are much easier and quicker to use and it doesn't matter even if the program takes more cycles than c++ version of it. Just like it would be overkill to use asm for everything to get as fast program as there is. Usually theres no need to make fast program, but working program.

A programmer is like a plumber. By himself he can't do anything. He also can't just walk around with a monkey wrench and do everythign with it, hammer, screw in, tighten, etc. Languages are the tols so everything has a nice language which would be done on the easiest for the best performance. That said, I love C because it lets you run with scissors in one hand and a loaded gun to your head in the other when it comes to manipulating the hardware. It's perfect for drivers and other such stuff.

Thank you. I'm glad this has said it. Whenever people go language X is better than language Y, they never put it in context. Simply, there is no one 'right' programming language for every job. The project I make a living on uses 8 or so different 'languages' (from genuine programming languages to some pretty simple scripting) for various parts because no one language was suitable.

I'd also like to expand on it to say it also depends on factors outside of the program itself as to what language is chosen. For example, if the program is a once off thing, it might not matter that it needs to run overnight to do the job if it only takes 5 mins to program rather than the program that finishs in an hour but takes 5 days to make.