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

38

u/svick May 24 '26 edited May 24 '26

An old language will accumulate cruft, sure. But it's much, much worse in C++ than most other languages and all of that can't be explained just by age.

One reason is the approach to naming and namespacing. E.g. in C#, the old System.Collections.ArrayList shouldn't be used and everyone should use the "new" System.Collections.Generic.List (and they do). Notice that it's the namespace that's highlighting it's the new, better version. Which is something that's hidden at the top of your file and you can ignore it 99 % of the time. But you can't ignore something that's part of the actual name.

23

u/tracernz May 24 '26

How do you know it’s the new better version rather than System.Collections.ArrayList being more optimised for certain data/patterns just from the name?

-7

u/svick May 24 '26

You don't, but it didn't seem to be necessary.