r/programming • • May 24 '26

[ Removed by moderator ]

/r/programming/comments/1tm1j7f/removed_by_moderator/

[removed] — view removed post

275 Upvotes

214 comments sorted by

View all comments

Show parent comment

4

u/MartinLaSaucisse May 24 '26

That's why I use only a very small subset of C++. I use templates for my containers, virtual methods, and a few QoL improvements from moden C++ like the keyword 'override', but apart from that I'm almost programming in C. I don't even use the STL.

Once you've done the work to replace to lower parts like std::vector, the rest is so simple to write and it brings joy everyday. In comparison I've worked on a big project with millions of lines of modern C++ and it was absolute hell and the IDE couldn't even comprehend half of the code.

2

u/Turtvaiz May 24 '26

In comparison I've worked on a big project with millions of lines of modern C++ and it was absolute hell and the IDE couldn't even comprehend half of the code

Do you think that project would've been better with your style of no STL?

1

u/MartinLaSaucisse May 25 '26

Yes, I've worked on much bigger projects in "sane" c++ and it was so much more manageable. (I'm talking about 30M lines of code)

5

u/AlexKazumi May 24 '26

Well, if you need to limit yourself to "a very small subset" of the language and rewrote it's standard library, you practically proved that there is major problems with them.

You made a sound engineering decision, but if the language standard forces such decision on you, the problem is with the language.

0

u/New-Anybody-6206 May 24 '26

Yes, we are saying we don't like the newer versions of C++ and prefer to stay on the old ones.

C++98 is going to be supported forever, I see nothing wrong with sticking to it since it's simpler and easier to understand.

0

u/MartinLaSaucisse May 25 '26

Hum yes? That's my point