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
-
naghen2087yI'm so much NOT into javascript, that I forgot how to actually check for null... Is typeof still a thing?
-
@Rikan I know how you feel. Just yesterday I explained to one of my 'senior' colleagues what java beans are :s He is supposed to have 15 years of experience in java??
-
For fuck sake! I'm a hardcore C# dev and have done some Java now and then but absolutely no senior Java dev. But even I know what your fellow 'senior' dev does is wrong. Senior in what? Age probably??
-
Rikan2857yThanks everybody! That's the reason I love DevRant, no matter what crazy stuff you see, there are always people that have seen something similar and share some nice words!
@Zennoe in short: you use == to check if the objects are the same, that works perfectly with primitives, but if you want to check if the content of the objects is the same, you use equals().
@vlatkozelka That's true! But it looks that it's far to easy to ignore the hints, the IDE provides. Maybe I should suggest that he uses Notepad++ if he doesn't plan to use the features IntelliJ provides, so we can save the money for his license...
Related Rants
Just looking at code, my colleague ("Senior Java Developer"), wrote...
if (process == "null") {...}
As you can guess, process is a String.
I just don't know what I can tell him. It's just so wrong, in every possible way...
rant
java
string comparison
senior developer
equals