Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yes, there is this sentence that dates back to 1995 and is called Wirth's law: "software gets slower faster than hardware gets faster".
https://en.m.wikipedia.org/wiki/... -
What I’ve noticed is that programmers don’t deliberately write resource hungry software.
Many write software that "seems" to work fine and fast…
and that is because they’re using machines with a lot of RAM and strong CPU.
But when that software is then used on a slower machine, performance issues arise and the engineers realize they’ve been duped by their machines (and their lack of competence to write optimized software) -
JsonBoa30161yThere is also some pervasive addiction to black box algorithms.
Not every problem needs a GenAlg or a neural network or a branch-and-bound solver, but those are soooo easy to use that you will find those even when performance should be a larger concern.
Then there is plain old laziness, hurriedness and ignorance, where people make a brute force algorithm just because it is simple to understand.
I've once saw a kid compute a warehouse layout plan using 6 nested "for each" loops, at least half of all iterations were unnecessary. Probably many more.
Yet since he only had like 1h to write it, and I took longer than that just to explain to him that "algorithm" is not just another word for "code".
(we later used some nice greedy+dynamic method that sped things up 3700%)
Thus I would blame the industry, not devs, for the rush quick-to-develop-but-inefficient-in-production software.
When energy becomes expensive again this trend will revert. -
Developers compete to finish as much work as possible in a unit amount of time. The outcome of this race affects each dev's career progression individually, whereas performance is always a collective burden. To a lesser extent this is also the case with code quality. Any decent dev is perfectly capable of optimizing their code, they just never see any benefit to doing so.
-
I'll take easy to change, readable code any day over perfomant ones 🪖😖
-
exerceo11591y@cafecortado I left Wirth's Law out of the post to see if someone would bring this up. Thank you for bringing it up!
Related Rants
-
phreakyphoenix8
Want to take your open office plan to the next level? Double the efficiency of your space by having two employ...
-
ExtraWaffle17
When the code is done, but you really want to improve it.
-
Jamoyjamie2Why do viruses make computers so slow...? Why can't their programmers implement them efficiently...? It's lik...
A developer might think "now that computers have more RAM and an abundantly strong CPU, I am free to create resource-hungry inefficient software!"
This sets a dangerous precedent.
Computers can only get faster if the software stays efficient while the processors get faster and the RAM increases.
If computers get more powerful but software also gets more bloated and less efficient, it defeats the performance benefit.
Also, software must be efficient to extend the battery time on portable devices.
Jody Bruchon video: https://youtube.com/watch/...
rant
efficiency