Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this mean someone is determined or steadfast in their constitution?

I worked with someone who was really smart but annoyed me because his variable names were cartoon characters, like Tom,jerry,bugs, etc.

I asked him not to do this and he said that each variable was documented so it’s better to use an arbitrary label that never needs to change should the business change it’s name (ie if you called a variable division_names and the org decides to rename divisions to units). We argued over this and he never changed his variable names.

But now I get it. I’d rather just have some arbitrary label that means disabled and never have to change it as “prepend is foo” would stand the test of time while “prepend is disabled” might change to “pretend is of disability” might change to “prepend is not hindered by disability” to “prepend is a human first and valiantly overcomes a limitation in ability” to “prepend only has one arm” etc.



Well, that might make sense for natural language terms, but it's still really bad coding advice: changing variable names is easy, or at least should be easy, if you have tooling worth a damn.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: