Joined devRant on 11/15/2016
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
I have to refactor code from an intern. He's VERY lucky that he already left the company.
If I'd say he programms like the first human that would be very insulting to that first human.
It looks like code at first sight, but when you try to understand what he was doing to achieve his goal you get a brainfuck. Duplicate code, unused code, dumb variable names like blRszN.
He wrote unittests like "expects Exception to be thrown or Server returns Statuscode 500".
Yes, Exception, the generic one.
THESE FUCKING TESTS ARE GREEN BECAUSE YOU DID NOT ACTUALLY TEST SOMETHING.
GREEN IN THIS CONTEXT MEANS: YOUR PRODUCTION CODE IS A BIG PILE OF SHIT.
I already removed 2 bugs in a test which caused another exception than the "expected" one and the test does still not reach the actual method under test.
The sad thing: The fuckers who did the code reviews and let this shit pass are still here writing code.4
A HORRIBLE DEATH TO ALL PEOPLE WHO USE STRING OPERATIONS ON XML!
If you don't ++ this you're part of the problem.
Apparently some manager in the company found out that we produce less bugs if there are more meetings (there is literally no time to write actual code). At least that is the only explanation which comes to my mind WHY I HAVE TO SIT IN THESE SHITTY DISCUSSIONS THE WHOLE DAY TO DISCUSS THE SAME ISSUES AGAIN AND AGAIN.
I told my colleague today that he didn't pass the Turing Test.
He did not understand.
Which proves my point.
I just discovered Frink.
A programming language designed to make physical calculations simple.
Funny sample calculations.
The moment when you find exactly your problem on Stackoverflow...
...just to realize its the same question you read about a year ago when you already had the problem but since it was minor and there was no solution so you ignored it up until now.
Followed by the feeling when you see that there was not even a comment added the whole year besides it was viewed 150 times.
Followed by the feeling when you find the solution all by yourself and finally write an answer to the question.
Just to realize that this was the only question from this guy on SO and his last login was two years ago. :-~
Well at least the annoying log message is gone and I learned something new.3
Browse the first website like The Ancients:
Just found this code:
"It is assumed that all 'static final String'-Attributes of this class are a key in the property file (which is validated by reflection)."
SO REFACTORING YOUR FUCKING MAGIC NUMBERS WITH A MEANINGFUL CONSTANT MADE THE APP CRASH. ASSHOLE.
Dear fellow developers,
please make your software more accessible.
Link to an article from a blind developer about his work:
I found this link in a comment on devRant posted by @nickpapoutsis.2
I spent half a day trying to figure out why the app on the staging server does not log in the app log file while it does on the dev server.
Server log said log config file found but could not find the root logger.
Problem was that the directory was readable for the app, but not the logfile configuration file.
Dear devs, when a file is not readable that might be some interesting information one could write into a log. AT LEAST MORE INTERESTING THAN "APPLICATION STARTING..."
I'M SO SICK OF THE DEVRANT APP. WHY THE HELL CAN'T I MARK AND COPY TEXT?
DO YOU REALLY THINK I LIKE TO TYPE THAT WHOLE SHIT I'D LIKE TO REFER TO IN MY COMMENT?
USABILITY? EVER HEARD OF?1
Working as a freelancer I have to hand in a monthly timesheet. I was told to print it out three times and sign them. A photocopied signature would not be acceptable.
After one year I found out that the manager signs one of the sheets, throws the other two away and makes two copies of the signed one.
I asked him why I have to give him three sheets then.
He answered: I don't know either.
Now the fun fact: the next copier is a 2min walk from his office
Buy a fitness tracker which reminds you after an hour of inactivity to get up.
Get up, walk around or even better climb some stairs, get back to work.3