Sign in to follow this  
neverland

Bjarne Stroustrup says

Recommended Posts

Hello all Bjarne Stroustrup says "The most important thing to do when learning C++ is to focus on concepts and not get lost in language-technical details" and "Focus on programming techniques, not on language features" in his book <The C++ Programming Language>. I don't follow these. What does Bjarne Stroustrup actually mean?

Share this post


Link to post
Share on other sites
He means you should focus on the concepts (like inheritance, polymorphism, etc) and understand those. Getting caught up in the specific syntax of how to use those concepts is trivial once you understand the concepts themselves.

Share this post


Link to post
Share on other sites
Which is why I so often say that C++ isn't the best language for a beginning programmer to start with. You spend so much time trying to get the syntax right and mucking with the low-level details that people claim make the strength of C++ that, in the process, you end up forgetting to learn how to program.

Granted, thanks to things like std::string, std::vector ... it's not as bad as it is in C, but it's still nowhere as smooth as it is in say, Python, which though it has its own set of quirks, lets you experiment much more easily.

Granted, C++ is an OK language, and worth learning, but as you figured out, learning C++ while you're learning to program isn't a good deal. A "can't see the forest because the trees hide it" kind of thing.

At least you've picked a real C++ book, that will help. [smile]

Share this post


Link to post
Share on other sites
Pascal was the first "real" language I used. It seemed like a good language for learning to program (it seemed like it was a lot harder to shoot yourself in the foot, compared to C or C++). Then again, not too many people use it anymore.

But what I think Stroustrup means, is that when you're learning, it should be irrelevant that you're using C++. Concentrate on how techniques work (for example sorting algorithms) rather than how to implement them in C++ (though the implementation is also important) Simple example - you should know how the quicksort algorithm works regardless of the language you're using.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this