Click here to Skip to main content
15,886,963 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
Jan Holst Jensen24-Jan-24 4:55
Jan Holst Jensen24-Jan-24 4:55 
GeneralRe: No your line is too long. Pin
obeobe4-Jan-24 23:16
obeobe4-Jan-24 23:16 
GeneralRe: No your line is too long. Pin
Jan Holst Jensen25-Jan-24 5:55
Jan Holst Jensen25-Jan-24 5:55 
GeneralRe: No your line is too long. Pin
jschell5-Jan-24 6:09
jschell5-Jan-24 6:09 
GeneralRe: No your line is too long. Pin
obermd4-Jan-24 5:12
obermd4-Jan-24 5:12 
GeneralRe: No your line is too long. Pin
Shmoken994-Jan-24 5:29
Shmoken994-Jan-24 5:29 
GeneralRe: No your line is too long. Pin
Dan Sutton4-Jan-24 18:35
Dan Sutton4-Jan-24 18:35 
GeneralRe: No your line is too long. Pin
jschell5-Jan-24 6:15
jschell5-Jan-24 6:15 
Dan Sutton wrote:
end up longer than that, with LINQ and so on


LINQ itself lends (pretty much requires) longer lines but they can certainly be formatted.
This is similar to formatting SQL in C#, Java, C++, etc when it is a string. The first try always starts out as one long string until one understands that it can be formatted in a way that makes it readable.

Dan Sutton wrote:
and in some cases, splitting the line makes it less readable.


Not sure I believe that. But one can certainly reformat a long line in a way that makes it confusing. But that is a formatting problem rather than that the technique itself is flawed.

A long line pretty much starts out being difficult to read/understand regardless of how it is formatted.

Long lines will have 'parts'. So for example LINQ for a db has a data object, clauses, etc. SQL as a string has the same thing. If you write SQL in a stored proc it can be formatted in the same way.

Keep in mind of course that for C#/Java/C++ line breaks are not required. So one can write a method (and even a class) on few or even one line. But very few would claim that is a good idea.
GeneralRe: No your line is too long. Pin
Dan Sutton5-Jan-24 15:29
Dan Sutton5-Jan-24 15:29 
GeneralYes this is Agile Pin
jschell3-Jan-24 5:02
jschell3-Jan-24 5:02 
GeneralRe: Yes this is Agile Pin
raddevus3-Jan-24 5:15
mvaraddevus3-Jan-24 5:15 
GeneralRe: Yes this is Agile Pin
Amarnath S3-Jan-24 5:35
professionalAmarnath S3-Jan-24 5:35 
GeneralRe: Yes this is Agile Pin
PIEBALDconsult3-Jan-24 5:37
mvePIEBALDconsult3-Jan-24 5:37 
GeneralRe: Yes this is Agile Pin
trønderen3-Jan-24 6:30
trønderen3-Jan-24 6:30 
GeneralPure Happiness! PinPopular
David O'Neil3-Jan-24 0:41
professionalDavid O'Neil3-Jan-24 0:41 
GeneralRe: Pure Happiness! Pin
Julian Ragan3-Jan-24 1:55
Julian Ragan3-Jan-24 1:55 
GeneralRe: Pure Happiness! Pin
dandy723-Jan-24 5:06
dandy723-Jan-24 5:06 
GeneralRe: Pure Happiness! Pin
k50543-Jan-24 5:38
mvek50543-Jan-24 5:38 
GeneralAI Career Advisor Pin
BernardIE53172-Jan-24 23:59
BernardIE53172-Jan-24 23:59 
GeneralRe: AI Career Advisor Pin
Richard MacCutchan3-Jan-24 0:32
mveRichard MacCutchan3-Jan-24 0:32 
GeneralRe: AI Career Advisor Pin
Richard Andrew x643-Jan-24 2:52
professionalRichard Andrew x643-Jan-24 2:52 
GeneralRe: AI Career Advisor Pin
Daniel Pfeffer3-Jan-24 3:49
professionalDaniel Pfeffer3-Jan-24 3:49 
GeneralRe: AI Career Advisor Pin
jschell3-Jan-24 4:55
jschell3-Jan-24 4:55 
GeneralRe: AI Career Advisor Pin
Daniel Pfeffer3-Jan-24 7:30
professionalDaniel Pfeffer3-Jan-24 7:30 
GeneralRe: AI Career Advisor Pin
BernardIE53173-Jan-24 21:28
BernardIE53173-Jan-24 21:28 

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.