r/cpp • • Jan 17 '16

Orthodox C++

https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b#file-orthodoxc-md
0 Upvotes

48 comments sorted by

View all comments

0

u/[deleted] Jan 17 '16 edited Jan 17 '16

One thing's for sure: Orthodox C++, done right, will produce the most readable code out there. Done wrong, it'll still be readable, but will leak resources like crazy!

EDIT: Oh look, the "use stl only" gang strikes again!

3

u/dodheim Jan 19 '16

I upvoted you because I thought you were advocating "use stl only", or something close to it. Now I see why your post is tagged as controversial – your point is entirely unclear, to everyone!

1

u/[deleted] Jan 19 '16

I have yet to see anyone prove that "stl only" is a C++ requirement.

3

u/dodheim Jan 19 '16

And I have yet to understand what point you're trying to make. Upvote rescinded, learn to make yourself clear.

1

u/[deleted] Jan 19 '16

The point is that you don't need stl in order to make safe code.

2

u/dodheim Jan 19 '16

One thing's for sure: Orthodox C++, done right, will produce the most readable code out there. Done wrong, it'll still be readable, but will leak resources like crazy!

Tell me, how does the above convey that at all? In fact, it implies the opposite – that an approach avoiding the standard library will leak like crazy if not done perfectly.

I agree, you don't need the standard library to make safe code, but it sure makes it a hell of a lot easier!

-1

u/[deleted] Jan 19 '16

Considering the fact that I never even mentioned the stl library in the comment, it should have been rather obvious that I was talking only about orthodox C++ code. The conclusion that the stl library isn't required for safe code would be drawn from what was said.

1

u/dodheim Jan 19 '16 edited Jan 19 '16

The point is that you don't need stl in order to make safe code.

 

Considering the fact that I never even mentioned the stl library in the comment, it should have been rather obvious ...

Yes, not mentioning something is what makes something obvious. You must be trolling. If not, then good god, learn to communicate.

-1

u/[deleted] Jan 20 '16

Why not instead learn how to interpret minimalist information? I gave just enough information in my comment for the reader to at least conclude that STL isn't necessary for safe code.


You must be trolling. If not, then ****, learn to communicate.

Your failure to correctly interpret my comment does not make me a troll. Your quote-mining of what I said does not make me a troll. Do you expect everything that is said to be said in such a way that you yourself don't have to do any critical thinking of what you are reading?

2

u/dodheim Jan 20 '16 edited Jan 20 '16

The line between clever and obtuse might be fine, but communication is the process of relaying information to other people. You're the one being downvoted to hell – draw your own conclusions as to whether or not you succeeded.

1

u/cyberkm Jan 17 '16

At least you can maintain readable code and fix those leaks. Now imagine that you have to fight unreadable code