It might be an absolutely adequate method. Imagine that is C++. operator-- is overloaded and controls some machinery. You can't just command capacity = currSize. Process is important.
this post was submitted on 01 Aug 2025
3 points (100.0% liked)
Programmer Humor
26152 readers
806 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
that's why c++ gets bullied
That is why it is loved: it allows you to use ideas/objects the same way as you do as an engineer. Super cool.
But when you do shoot yourself in the foot, it blows your whole leg off.
As a shotgun. That's why people don't shoot themselves in the foot with a shotgun.