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
-
@C0D4 we all know how to spot a code that follows an internal logic tho. that's why teams should have naming rules and proper linting
-
h3rp1d3v5193yTFW the new guy wants to build an object oriented ORM and replace the existing open source declarative query builder in a functional codebase without understanding the database schema.
-
ltlian21883yI like terms like simple, plain, boring, maybe even dumb if it's dumb in the "right" way.
Beautiful and elegant makes me nervous depending on who it's coming from. -
New senior hire wanted to rewrite all our working PHP code and write it in D, because he:
- did not like PHP
- thinks PHP code is ugly
- D and PHP syntax is interchangeable
Same with replacing our MySQL database with MongoDB.
You might think it look ugly, but the others might not. So is it worth a rewrite? -
mcalis2583yThere is a direct correlation between the modern fad of making things look pretty and the absolutely craptastic performance of most modern software.
Write code for the computer, not for some imagined beauty contest with other developers.
Too many people try to get to the "beautiful" solution in one go. Don't. Write the dumbest possible thing you can imagine so you get a better understanding of the actual problem your trying to solve. Then iterate and compress. You'll end up with simple performant solutions and an actual understanding of the problem you solved rather than learning how to use package manager XYZ and abiding by code standard QWERTY because stack overflow told you to.
A lot of "beautiful" code is ruining end user's days by gobbling up RAM, draining battery, and outright crashing or freezing their devices, but hey it's worth it because your buddy programmer thought the code looked nice, eh? -
@mcalis: Beauty and efficiency are GENERALLY not mutually exclusive. But dummies can ruin anything.
Related Rants
Well-written source code is beautiful.
Ugly stuff should be re-written.
rant
style