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
-
devs30756yMight be so developers don’t change the 3 to another number, but yeah, could’ve probably named the variable something more useful
-
rageux4856y- no hardcoded values check
- naming convention check
- reusable code check
- clean code check -
mt3o19136yOh, blessing of static code analyzers. Or rather triumph of form over the content. Maybe next time you should read the value from resources?
Related Rants
Today I saw this in our code base:
private static final int THREE = 3;
To do this:
rating += THREE;
I laughed, and cried a little.
rant
facepalm
java
three