Click here to Skip to main content
15,887,135 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: No your line is too long. Pin
Mike Hankey3-Jan-24 5:26
mveMike Hankey3-Jan-24 5:26 
GeneralRe: No your line is too long. Pin
PIEBALDconsult3-Jan-24 5:29
mvePIEBALDconsult3-Jan-24 5:29 
GeneralRe: No your line is too long. Pin
Member 118167764-Jan-24 6:52
Member 118167764-Jan-24 6:52 
GeneralRe: No your line is too long. Pin
jschell5-Jan-24 6:04
jschell5-Jan-24 6:04 
GeneralRe: No your line is too long. Pin
Dave Kreskowiak3-Jan-24 5:56
mveDave Kreskowiak3-Jan-24 5:56 
GeneralRe: No your line is too long. Pin
dandy723-Jan-24 7:24
dandy723-Jan-24 7:24 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 3:57
jschell4-Jan-24 3:57 
GeneralRe: No your line is too long. Pin
k50543-Jan-24 6:21
mvek50543-Jan-24 6:21 
I can understand the motivation. I've seen, and perhaps perpetrated, something like:
string someString = mything.something().somethingElse().foo().bar().bang().whiz().toString()
Which can sometimes lead to very long lines. But any decent optimizer should be able to elide otherwise unused intermediate object so maybe
auto something = mything.something();
auto foobar = something().foo().bar();
auto whiz = foobar().bang().whiz();
string someString = whiz.toString();
is preferable?
But if you're going to keep the long version as a single statement, but write it over separate lines do you prefer putting the . at the end or the start of the line? e.g
mything.something().
  foo().bar().whiz().
  bang().toString()
vs
mything.something()
   .foo().bar().whiz()
   .bang().toString()
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown

GeneralRe: No your line is too long. Pin
PIEBALDconsult3-Jan-24 6:36
mvePIEBALDconsult3-Jan-24 6:36 
GeneralRe: No your line is too long. Pin
obeobe4-Jan-24 1:27
obeobe4-Jan-24 1:27 
GeneralRe: No your line is too long. Pin
bryanren4-Jan-24 3:20
bryanren4-Jan-24 3:20 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 4:03
jschell4-Jan-24 4:03 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 3:58
jschell4-Jan-24 3:58 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 6:29
trønderen3-Jan-24 6:29 
GeneralRe: No your line is too long. Pin
kmoorevs3-Jan-24 6:33
kmoorevs3-Jan-24 6:33 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 7:12
trønderen3-Jan-24 7:12 
GeneralRe: No your line is too long. Pin
MarkTJohnson3-Jan-24 7:21
professionalMarkTJohnson3-Jan-24 7:21 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 7:31
trønderen3-Jan-24 7:31 
GeneralRe: No your line is too long. Pin
MarkTJohnson3-Jan-24 8:01
professionalMarkTJohnson3-Jan-24 8:01 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 8:34
trønderen3-Jan-24 8:34 
GeneralRe: No your line is too long. Pin
PIEBALDconsult3-Jan-24 10:40
mvePIEBALDconsult3-Jan-24 10:40 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 4:06
jschell4-Jan-24 4:06 
GeneralRe: No your line is too long. Pin
honey the codewitch3-Jan-24 7:51
mvahoney the codewitch3-Jan-24 7:51 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 8:14
trønderen3-Jan-24 8:14 
GeneralRe: No your line is too long. Pin
BernardIE53173-Jan-24 8:53
BernardIE53173-Jan-24 8:53 

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.