Click here to Skip to main content
15,898,010 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 5:25
mveOriginalGriff21-Oct-19 5:25 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 5:53
professional  Forogar  21-Oct-19 5:53 
GeneralRe: Long Lines Pin
dandy7221-Oct-19 9:40
dandy7221-Oct-19 9:40 
GeneralRe: Long Lines Pin
bjongejan21-Oct-19 22:07
bjongejan21-Oct-19 22:07 
GeneralRe: Long Lines Pin
agolddog22-Oct-19 2:44
agolddog22-Oct-19 2:44 
GeneralRe: Long Lines Pin
Maximilien21-Oct-19 5:22
Maximilien21-Oct-19 5:22 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:08
PeejayAdams21-Oct-19 23:08 
GeneralRe: Long Lines Pin
Dave Kreskowiak21-Oct-19 5:39
mveDave Kreskowiak21-Oct-19 5: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 10:23
professionalpkfox21-Oct-19 10:23 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:17
PeejayAdams21-Oct-19 23:17 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 2:27
mveDave Kreskowiak22-Oct-19 2:27 
GeneralRe: Long Lines Pin
PeejayAdams22-Oct-19 3:14
PeejayAdams22-Oct-19 3:14 
GeneralRe: Long Lines Pin
Dave Kreskowiak22-Oct-19 6:03
mveDave Kreskowiak22-Oct-19 6:03 
GeneralRe: Long Lines Pin
BryanFazekas22-Oct-19 1:15
BryanFazekas22-Oct-19 1:15 
GeneralRe: Long Lines PinPopular
Ravi Bhavnani21-Oct-19 5:47
professionalRavi Bhavnani21-Oct-19 5:47 
PraiseRe: Long Lines Pin
PeejayAdams21-Oct-19 23:17
PeejayAdams21-Oct-19 23:17 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 5:52
professional  Forogar  21-Oct-19 5:52 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 7:01
mvePIEBALDconsult21-Oct-19 7:01 
GeneralRe: Long Lines Pin
  Forogar  21-Oct-19 7:40
professional  Forogar  21-Oct-19 7:40 
AnswerRe: Long Lines Pin
ZurdoDev21-Oct-19 5:58
professionalZurdoDev21-Oct-19 5:58 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:19
PeejayAdams21-Oct-19 23:19 
GeneralRe: Long Lines Pin
PIEBALDconsult21-Oct-19 6:10
mvePIEBALDconsult21-Oct-19 6:10 
GeneralRe: Long Lines Pin
Gary Wheeler22-Oct-19 2:10
Gary Wheeler22-Oct-19 2:10 
GeneralRe: Long Lines Pin
Kevin Marois21-Oct-19 6:16
professionalKevin Marois21-Oct-19 6:16 
GeneralRe: Long Lines Pin
Marc Clifton21-Oct-19 9:35
mvaMarc Clifton21-Oct-19 9: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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   359 votes