Click here to Skip to main content
15,890,741 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
PIEBALDconsult28-Feb-17 14:03
mvePIEBALDconsult28-Feb-17 14:03 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
raddevus1-Mar-17 5:48
mvaraddevus1-Mar-17 5:48 
JokeRe: The (strange) case against very long and explicit variable names, with Math Pin
Vivi Chellappa28-Feb-17 15:46
professionalVivi Chellappa28-Feb-17 15:46 
JokeRe: The (strange) case against very long and explicit variable names, with Math Pin
Super Lloyd28-Feb-17 16:40
Super Lloyd28-Feb-17 16:40 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Michael Martin28-Feb-17 18:05
professionalMichael Martin28-Feb-17 18:05 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
V.28-Feb-17 19:38
professionalV.28-Feb-17 19:38 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Mark_Wallace28-Feb-17 21:08
Mark_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 
The problem isn't the length of the variable names. (Even though they might be some times)
The problem is that the original author didn't think all the way, but even worse, that everyone else is just copy'n'pasting.

Take a look at your refactored code with the original variable names:
C#
int usableHeightNow = computeUsableHeight();
if (usableHeightNow != usableHeightPrevious)
{
    frameLayoutParams.Height = usableHeightNow;
It's not that bad anymore is it?
Wrong is evil and must be defeated. - Jeff Ello

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
StM0n28-Feb-17 19:48 
GeneralRe: The (strange) case against very long and explicit variable names, with Math Pin
Mark_Wallace28-Feb-17 20:34
Mark_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 
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
Gary Wheeler1-Mar-17 2:44 
GeneralBash/Ubuntu on Windows 10 - Now What Pin
TNCaver28-Feb-17 10:49
TNCaver28-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
TNCaver28-Feb-17 11:14 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Mark_Wallace28-Feb-17 11:57
Mark_Wallace28-Feb-17 11:57 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
TNCaver1-Mar-17 5:51
TNCaver1-Mar-17 5:51 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Mark_Wallace1-Mar-17 9:31
Mark_Wallace1-Mar-17 9:31 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
Dong Xie1-Mar-17 0:13
Dong Xie1-Mar-17 0:13 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
TNCaver1-Mar-17 4:18
TNCaver1-Mar-17 4:18 
GeneralRe: Bash/Ubuntu on Windows 10 - Now What Pin
patbob1-Mar-17 5:10
patbob1-Mar-17 5:10 

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.