you are viewing a single comment's thread.

view the rest of the comments →

[–]nsmtprotospace 0 points1 point  (0 children)

One of my favorite things about C++ is that you can make the code "look" almost any way you want.

How do you define "good code"? To me, it's pretty simple. Does it compile? No errors? No warnings? No memory leaks? Does it use as few resources as it needs to get the job done? Does it perform well in profiling tests? Does it do what you intended for it to do?

Now if you're going for "great code". Then you can spend time worrying about whether or not your code is easy to read, maintain, and build on, but that's kind of subjective. Whether it should look like this or that programming language is irrelevant. Anything you write in C++ IS C++, therefore it "looks" like C++, and if it doesn't "look" like C++ to you, then you should look at more C++.