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
-
heikomat6867yI've Seen production code, where a variable gets set via anonymous-map-function AND checked for length afterwards in the same if-condition. in a single line. I nearly died reading that.
-
heikomat6867y@IAmNotARobot
...
let foundExpands;
if (createEntityOption.expandEntity && (foundExpands = createEntityOption.expandEntity.filter((expand) => propertyKey === expand.attribute)) && foundExpands.length === 1) {
const expand = foundExpands[0];
...
Related Rants
-
Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that
-
DasKoder15I was told during my initial interview that the book "Clean Code" is their Bible here. And it's true. It's ly...
-
dfox27One time a company I worked for tried to fuck me over and not pay me the referral fee that was promised for re...
Fuckwit tried to lecture me on clean code.
Checked his work, it seems like he writes the spaghettiest spaghetti I've ever seen. Who would have guessed it. At least he knows that something called 'clean code' exists.
rant
spaghetti code
clean code
wk71