News for hackers. Stuff that matters.
Re:See what Hacker News looked like on the day you joined by jdavis703 on Sunday July 19, 2015 @04:15PM (#9912663)
In the kinds of jobs I've gotten, I spend more time reading code than writing code. As such long variable names are very helpful as I have less information I need to commit into my mental working memory.
Re:See what Hacker News looked like on the day you joined by McElroy on Sunday July 19, 2015 @05:57PM (#9912973)
Even when reading code you wrote yourself, long variable names can be immensely helpful.

I was working on some code today which I wrote a couple of months ago and came across some fields in a struct I had made, two of the fields were named like something_d_foo and something_d_bar (with something, foo and bar being strings which I've replaced in this comment). These names describe a relationship of something to foo and bar. When I read the name I had given it, I thought these were the somethings DISCONNECTED from their foos and bars but a comment I had written beside each of them informed me that they were the DEFAULT somethings of the foos and bars. I promptly renamed the fields as something_default_foo and something_default_bar.

Re:See what Hacker News looked like on the day you joined by dilap on Sunday July 19, 2015 @05:12PM (#9912839)
It's definitely a trade-off, that's why the idea of ideographic variables is so interesting.