Click here to Skip to main content
15,914,500 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
AFell221-Oct-19 5:23
AFell221-Oct-19 5:23 
GeneralRe: Long Lines Pin
PeejayAdams21-Oct-19 23:06
PeejayAdams21-Oct-19 23:06 
GeneralRe: Long Lines Pin
BryanFazekas22-Oct-19 1:08
BryanFazekas22-Oct-19 1:08 
GeneralRe: Long Lines Pin
Chris Losinger21-Oct-19 5:07
professionalChris Losinger21-Oct-19 5:07 
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 
When lines become long, I split before a binary operator, and make sure that binary operators always are in the same line, or, if the line is split, in the same column as the parentheses, if there are any. In addition, I usually put like binary operators in the same column. If a line is split at a binary operator, I indent both operands by the same amount, e.g. two characters to the right. Like so:
OutputImage
  ( file
  ,   allFaces
    . Where
        ( f 
        =>    f.Proportion 
            > double.Parse(ConfigurationManager.AppSettings["LowerBound"].ToString())
          &&  f.Proportion
            < double.Parse(ConfigurationManager.AppSettings["UpperBound"].ToString())
        )
    . ToList()
    . OrderBy(f => f.Proportion)
    . ThenByDescending(f => f.Rectangle.Height)
    . FirstOrDefault()
  );

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 
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 Pin
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 

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.