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
-
I suspect, if it's slow week, the entire app will become a single function.
Quite looking forward to that, if I'm honest. -
@platypus oh, I thought you meant, like in C, putting 'inline' before the function signature
-
No. They literally cut and paste the single line function bodies to the call locations.
-
Nevoic1996yI'm sorry man. The things they teach in school always prioritize any ounce of speed/performance over any and all readability and usability.
There are people who would write out a solution that takes 10s of lines of code instead of 1 to save on literally nanoseconds of time, or bits of memory.
In 2018. -
inaba46256yThis seems like a case of trying to be smarter than the compiler, but in the dumbest way possible :v
-
> More efficient
This developer would not understand readability if you gauged preschool scribbles into their eye sockets -
inaba46256y@linuswillner It's not just about readability, but removing \n and space characters will do literally nothing for compiled languages.
-
tokumei21316yAnd also trying to outsmart compilers that have grown smart enough to handle these situations on their own. Thanks, bro.
Related Rants
Client dev inlined all my single line functions as it's "more efficient".
Speechless is not the word.
rant
cs needs more engineers
self documenting code
untrained devs