this post was submitted on 18 Apr 2026
4 points (51.8% liked)
Programming
26581 readers
333 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This would be a valid argument if to read someone else's recipe you'd need to know every way of potato cutting they might use.
The problem with C++ isn't that you can't use it in a good way. The problem is that you can use it in a million different ways. The best way for your application is often not readily visible and reading someone else's code might be really difficult because they have a weird favourite way of doing things that you might not know.
Python does that quite well (it's got other failings, but in this regard it's good):
There's a class that's just called
Listand there's a literal that creates an instance of it:[]. It's implemented using an array list, since that's the most sensible options for most list use cases. If you need another type of list, they are still available, but the default implementation is clearly visible and uses a sensible implementation.