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
-
@anux still finding... Well in my country the economic crisis made most companies not able to hire. .... I'm finding a way out tho.
-
Doesn't that code need another ! (not) to be correct though? I counted even number of nots.
-
anux7363y@johnmelodyme check out remote jobs too. weworkremotely and a couple other places offer remote work from european or american companies. Also keep a lookout on angel list.
-
If he did this in any other country he would be fired on the spot. In fact even in spite of all the extraneous !’s, it’s still wrong bc they cancel each other out and we are left with the equivalent of if(response) throw Error. So basically getting any response that is truthy (not null, etc) will throw an error. I can say he sucks ass at the following: clean code, Boolean logic, basic javascript, counting, attention to detail, and not being a pain in the ass
-
@bahua if you read my rant, you will realize the person who code this wasn't me.
-
If this has made it into a codebase, there's either no sensible review process in place, other devs just don't care enough to actually review code, or other devs are so disillusioned they want to put crap like this in the codebase.
I'm not sure what's worse really. -
@AlmondSauce that's the thing, the company I am currently in, don't do a review, is that I am secretly doing the review, (because they told me it is a waste of time.) because I realise the server behave and send the log so weird.
-
bahua128013y@johnmelodyme
Yeah, clean code prevents managers getting phone calls when they're trying to quietly cheat on their wives. -
jaylord4513ySorry I call bs. Response is misspelled in the ugly line. There's no way this code would work right? Or is this some weird Javascript thing where it does not throw an exception?
I'm thinking: Either we're missing context, or it's not real -
@jkommeren “response” is undefined so no error is thrown bc the !!!!!!reponse in the if is false. So the code should still work for most cases but it won’t throw an error if the response is empty
-
C0D4669023yNow I know why we use Y.R.T.t(), the fucker can't spell 😅
This looks staged for the screenshot,
reponse is spelt wrong, the ; is not uniform with the rest of the code - there's a space before it, and what in the fuck is with all the NOT checks, this literally becomes:
If(reponse) throw error ; -
asgs112753y@Demolishun all those !s are meant to exclaim the 100% incorrectness it is cooked with
-
@johnmelodyme Wouldn't stay anywhere like that. The code is bound to be shite, and you're bound to be constantly putting out fires as a result.
-
Is this some interview question about javashit? That cannot be in a real codebase come on hahaha
-
and your boss would never know about it probably, so whoever did it (git blame *cough cough*) can get away with it
-
thought this was a meme... saw your laid off post... incredible this lives in live code somewhere
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
Here we f**king go again ... part 3.
#speechless
I am so done ~
rant
wtf