Click here to Skip to main content
14,384,033 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: Long Lines Pin
OriginalGriff21-Oct-19 6:25
protectorOriginalGriff21-Oct-19 6:25 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 6:53
professional  Forogar  21-Oct-19 6:53 
GeneralRe: Long Lines Pin
dandy7221-Oct-19 10:40
memberdandy7221-Oct-19 10:40 
GeneralRe: Long Lines Pin
bjongejan21-Oct-19 23:07
memberbjongejan21-Oct-19 23:07 
GeneralRe: Long Lines Pin
agolddog22-Oct-19 3:44
memberagolddog22-Oct-19 3:44 
GeneralRe: Long Lines Pin
Maximilien21-Oct-19 6:22
memberMaximilien21-Oct-19 6:22 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:08
memberPeejayAdams22-Oct-19 0:08 
GeneralRe: Long Lines Pin
Dave Kreskowiak21-Oct-19 6:39
mveDave Kreskowiak21-Oct-19 6:39 
I'd do nothing of the sort. Long-ass lines like that make the code harder to read, maintain, and debug.

I'd bust the individual components out to their own variables and combine them in the final statement. When you compile for Release, all that gets optimized out in most cases.

You're really not saving yourself anything by piling it all into a single statement.

GeneralRe: Long Lines Pin
pkfox21-Oct-19 11:23
professionalpkfox21-Oct-19 11:23 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:17
memberPeejayAdams22-Oct-19 0:17 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 3:27
mveDave Kreskowiak22-Oct-19 3:27 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 4:14
memberPeejayAdams22-Oct-19 4:14 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 7:03
mveDave Kreskowiak22-Oct-19 7:03 
GeneralRe: Long Lines Pin
BryanFazekas22-Oct-19 2:15
memberBryanFazekas22-Oct-19 2:15 
GeneralRe: Long Lines Pin
Ravi Bhavnani21-Oct-19 6:47
professionalRavi Bhavnani21-Oct-19 6:47 
PraiseRe: Long Lines Pin
PeejayAdams22-Oct-19 0:17
memberPeejayAdams22-Oct-19 0:17 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 6:52
professional  Forogar  21-Oct-19 6:52 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 8:01
protectorPIEBALDconsult21-Oct-19 8:01 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 8:40
professional  Forogar  21-Oct-19 8:40 
AnswerRe: Long Lines Pin
ZurdoDev21-Oct-19 6:58
professionalZurdoDev21-Oct-19 6:58 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 0:19
memberPeejayAdams22-Oct-19 0:19 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 7:10
protectorPIEBALDconsult21-Oct-19 7:10 
GeneralRe: Long Lines Pin
Gary Wheeler22-Oct-19 3:10
memberGary Wheeler22-Oct-19 3:10 
GeneralRe: Long Lines Pin
Kevin Marois21-Oct-19 7:16
professionalKevin Marois21-Oct-19 7:16 
GeneralRe: Long Lines Pin
Marc Clifton21-Oct-19 10:35
protectorMarc Clifton21-Oct-19 10:35 

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.