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
-
is there a tool which helps you to find the right variable name and does based on this a documentation?
-
ddephor45117yI wish my colleagues would do that.
It's so annoying if you see a variable, function or classname that has been translated literally with the wrong meaning. And usually it's too late to change it without big effort, once it's been introduced this way. -
Surely we all had scenarios like these, but still. I had two friends that used the following as variable names:
- variables with the minimum characters possible: a, b, c, bb, zz, xx.. no matter what they were used for. From cycles to full blown objects; debugging was hell; deleting everything was ideal; he sucked at programming and now plays online poker for a living; great guy to be with, though;
- variables with dirty words; dick, piss, c*nt..funny to see it in errors, horror to see the boss looking at the code; this guy sucked worse at programming, actually, i still doubt if he should be called a programmer, although he was the senior coder on that company..
Forgive the long comment rant. -
-eth18617yMe too, but I use the English Oxford dictionary and I always end up with names like "thyShallCommand()"...
-
chadd1746437yGuys let's write a program to generate helpful variable names based on a description written by the dev!
Related Rants
DevConfession
I often google names for my variables to see if I find a betrer fitting synonym that reads better
undefined
issues...