Click here to Skip to main content
15,434,792 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Mark_Wallace28-Feb-17 21:08
MemberMark_Wallace28-Feb-17 21:08 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Jörgen Andersson28-Feb-17 19:45
professionalJörgen Andersson28-Feb-17 19:45 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Nicholas Marty28-Feb-17 20:36
professionalNicholas Marty28-Feb-17 20:36 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Jörgen Andersson28-Feb-17 20:38
professionalJörgen Andersson28-Feb-17 20:38 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
megaadam28-Feb-17 22:20
professionalmegaadam28-Feb-17 22:20 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
StM0n28-Feb-17 19:48
MemberStM0n28-Feb-17 19:48 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Mark_Wallace28-Feb-17 20:34
MemberMark_Wallace28-Feb-17 20:34 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Nathan Minier1-Mar-17 1:20
professionalNathan Minier1-Mar-17 1:20 
I fundamentally disagree.

In the age before the IDE and Intellisense this argument held some water, since descriptive variable names translated directly into writing time. These days I rarely need to type more than three characters and I've locked into the variable that I need.

Long variable names provide description and context, and lead to self-documenting code: that Utopian dream where source code can be quickly understood without being riddled with // or /**/.

The other point is that source code is for people. In the future, that set of people may include you or it may not, but the code will need to be pulled out, brushed off, and modified at some point. A terse variable name may make perfect sense to you, but the next guy is not you and it may or may not to him. I guarantee that a nice, descriptive name will, though.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Richard Andrew x641-Mar-17 1:45
professionalRichard Andrew x641-Mar-17 1:45 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Gary Wheeler1-Mar-17 2:44
MemberGary Wheeler1-Mar-17 2:44 
GeneralBash/Ubuntu on Windows 10 - Now What Pin
TNCaver28-Feb-17 10:49
MemberTNCaver28-Feb-17 10:49 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Eddy Vluggen28-Feb-17 10:56
professionalEddy Vluggen28-Feb-17 10:56 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
TNCaver28-Feb-17 11:14
MemberTNCaver28-Feb-17 11:14 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Mark_Wallace28-Feb-17 11:57
MemberMark_Wallace28-Feb-17 11:57 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
TNCaver1-Mar-17 5:51
MemberTNCaver1-Mar-17 5:51 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Mark_Wallace1-Mar-17 9:31
MemberMark_Wallace1-Mar-17 9:31 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Dong Xie1-Mar-17 0:13
MemberDong Xie1-Mar-17 0:13 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
TNCaver1-Mar-17 4:18
MemberTNCaver1-Mar-17 4:18 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
patbob1-Mar-17 5:10
Memberpatbob1-Mar-17 5:10 
JokeRe: Bash/Ubuntu on Windows 10 - Now What Pin
ZurdoDev1-Mar-17 1:08
professionalZurdoDev1-Mar-17 1:08 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Nathan Minier1-Mar-17 1:22
professionalNathan Minier1-Mar-17 1:22 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Herbie Mountjoy1-Mar-17 8:26
professionalHerbie Mountjoy1-Mar-17 8:26 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Nathan Minier1-Mar-17 9:15
professionalNathan Minier1-Mar-17 9:15 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
dandy721-Mar-17 10:12
Memberdandy721-Mar-17 10:12 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Nathan Minier2-Mar-17 1:06
professionalNathan Minier2-Mar-17 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Who do you listen to most when making decisions about software development?
  Results   469 votes