Reply to comment

Top 5 Myths About C++

We've now completed 5 articles in the "Nobody Understands C++" series so here we are going to recap the misconceptions we have covered.

  1. You shouldn't use all the language features of C++, that just makes your code too complicated! Wrong, we learned that by using some of the less used features of C++ we can make our code much more succinct.
  2. C++ is susceptible to memory leaks, buffer overruns and is an unsafe language! Wrong, by putting to use RAII techniques we avoid explicit memory allocation, the use of pointers and potential buffer overruns.
  3. C++ relies on C style macros for reusable code segments. Wrong, by using templates you create typesafe reusable components while avoiding the text-copying problems of C macros.
  4. C++ is an Object Oriented Programming language. Partially wrong, C++ does support OOP techniques but it also supports procedural and functional programming paradigms. In fact, the C++ standard library is largely designed around functional programming techniques.
  5. Using C++ templates causes code bloat! Wrong, C++ templates make possible programming techniques which would otherwise require an insurmountable amount of code. The misuse of those techniques may cause a lot of object code to be generated.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post PHP code. You should include <?php ?> tags.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.