Thread: Programming!
View Single Post
Old January 28th, 2013 (8:45 AM).
twocows's Avatar
twocows twocows is offline
Pretentious Intellectual Jerk
Gold Tier
Join Date: Mar 2009
Location: Michigan
Age: 25
Gender: Male
Nature: Lax
Posts: 4,122
Originally Posted by ♪Twiggy♪ View Post
Heh. I just somehow got myself into a logic fail with C++ code. It's sometimes just plain painful to deal with. Still... I have to deal with it. Maybe that'll make me a better programmer in the end.
It won't. You should avoid C++ when possible. Learning to write GOOD code, learning proper coding style and knowing what tools are available to you in a language, being able to look for resources to help you, and understanding how the language really works, these are things that will make you a better programmer. Forcing yourself to use a terrible language will just make you better at that terrible language.

Why do you have to use C++? C++ is a superset of C anyway, you could just write straight C while only using the few useful parts of C++, like C++ strings (not the printing/scanning functions though; printf and friends are much more sane), generics/templates, and whatever else you find actually useful (without going overboard, of course). Writing mostly standard C while using a few C++ improvements makes your code much more readable, though the "C++ community" will tell you otherwise (protip: if the "C++ community" tells you that your code is "bad C++," you're doing something right). Plus, you learn to program in C at the same time, which could be very useful further down the line if you ever need to program in that. And if you avoid classes, you learn how to work without OO, which a lot of languages don't even have (OO itself is useful, but knowing how to work with it and without it and knowing when to use or not use classes is something every programmer should know).
Doctors Without Borders: one of the few charity groups you can rely on to actually do real good in the world.

"The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." - H. L. Mencken, unsourced

"There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that 'my ignorance is just as good as your knowledge.'"- Isaac Asimov, Column in Newsweek (21 January 1980) [source]
Reply With Quote