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
-
GieltjE18078yThe pom variable, someone actually made a fully functional webshop with just one (1!) variable......
-
Voxera113888y@byIcee Seen that ;)
Often where you during development only showed something to some users and when releasing you did not remove the if just in case you would have to reinstate it, then it was forgotten. -
Huuugo25058yA json string of >3000 chars in one line of Java test code. The guy saved a service response once and checked it to be the same every time. Worked for him only (database state) and only for a few days. Code stayed there for years.
-
Huuugo25058yAnother common thing:
If (arg != null) {
// 100 lines of code
}
return null;
Instead of handling the null first, throwing an illegalargumentexception, and using the actual code in the function body without an unnecessary indentation level.
Also: please never return null!
Talk about the weirdest shit you've seen in someone's code!
undefined