View Single Post
January 28th, 2013 (9:18 AM).
You like dragons?
Join Date: Dec 2010
Originally Posted by
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).
I'll just make it blunt - I have to write C++ because I'm on a university course that involves that
(obviously it won't be always C++). Sorry. No changing that. That's why I have to write C++ code, and as much as I'd like to work on something else, nope. I can't skip things.
That said, why do you think poorly of C++ in the first place? For all the bad things about C++... heck, bad or not, I just find it to be barely adequate, but not exactly despicable. I can live with it, but if I could, I'd move on to something else. Visual Basic, C#, Python, whatever's next, I don't care. Just it better not be C++ again.
"It responds to movement by attacking. This scary, three-headed Pokémon devours everything in its path!"
View Public Profile
Send a private message to Twiggy
Visit Twiggy's homepage!
Find all posts by Twiggy
Find threads started by Twiggy