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
-
(keep in mind that I don't know any context, just seeing this little piece of code)
-
Avyiel10676yWish I were being paid $25 😅 only get half of that... Still in college though, so not sure how much I can expect
-
@halfflat No clue, I'm mainly a php dev and Linux engineer, have done quite some JavaScript but it's not my specialty :)
-
-
@halfflat that's where my mind goes too... This is just an easy example, he's shown himself to be incompetent in Plenty of other ways
-
You know what I like:
bool b = (expression)
? true
: false;
100% serious btw, please burn me at the stake because I wasted two lines of vertical space -
@Cheeseypi That looks more efficient indeed but I wouldnt call the other solution entirely crap; it's a little longer but it works and does its job without much overhead :)
-
@linuxxx it's not so much that code as that code is an example of the thoughtlessness that goes into the rest of his work
-
A} $75k is not much
B} give a dozen developers a task and you'll likely get 11 solutions that work, some more 'elegant' than others... but that's a fuzzy-assed bit of criteria
C} someone mentioned debug which I find valid use
D} not knowing what refactoring, code review, or even what role this code plays in whatever application, etc have or haven't taken place, comments on code quality are premature -
@tmpnull expression is easier to read with the second part of the operation out of the way
I am an intern getting paid $25/hour for fullstack web development. Their brand new full time frontend web developer, getting paid at least $75,000/yr, just wrote these lines of code:
if(this.ackBy !== null && this.ackTime !== null)
this.acknowledged = true;
else
this.acknowledged = false;
This. Is. Far. From. His. Worst. Code. This isn't even surprising to me. How does this incompetence find work in this field
rant