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
-
sSam14838yI'll never understand why someone would choose short over descriptive. You don't have an IDE that has auto complete in 2017?
-
juzles38588y@darksideplease well you only write once, but read and debug and modify all the time so it's worth it to find your way after few months in a huge project.
-
Tbh when you can't name your variable with two adjectives and a noun then chances are the containing routine needs refactoring.
Names like transactionalConnectionPoolConfigurationViewHelper is a no no! -
matanl26448yI use vim without auto-complete, always short, luckily nobody else but me uses the code 😮
-
timurtu578y@sSam what about in functional programming where the variable name means less because you're thinking about taking a type that could apply to any variable of that type?
-
RakNoel6708yDo both. Make descriptive, then shorten it. Then add explanation to documentation or in comments.
-
RakNoel6708y@sylar *blinks*... SHIT! what the fuck... did I write this code?... *blinks* dang it where was I? Hmmm... *blinks* OH FOR FUCKS SAKE!
Making Variables
undefined