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
-
hexc11266yHonestly I've seen so much terrible front end code, i wonder how these people get there jobs...
-
But what if
this.language.id
is null?
Especially when it was not null a picosecond ago?
xD -
hexc11266y@TylerDDevRant replace all while loops that "pause" code execution until some asynchronous code finishes to massive if statements that keep checking the same thing over and over 🤣
if (isDone ||
isDone ||
isDone ||
// ...
isDone) {
//Do stuff
} -
jerodev5666yLuckily for this programmer v8 and other decent javascript interpreters will ignore the second condition because it is the same.
-
knerd6576y@TylerDDevRant haha I wonder, I showed it to the guy who gave me the task, yet to connect with whoever wrote it.
Related Rants
There is this code I am updating, not written by me, So I found this in the front end logic.
rant
vuejs
js