Click here to Skip to main content
15,896,154 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: Do you Program in Paragraphs or Sentances? Pin
soulesurfer31-May-18 22:25
soulesurfer31-May-18 22:25 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
RandyBuchholz1-Jun-18 1:59
RandyBuchholz1-Jun-18 1:59 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
soulesurfer1-Jun-18 2:01
soulesurfer1-Jun-18 2:01 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
RandyBuchholz1-Jun-18 2:05
RandyBuchholz1-Jun-18 2:05 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
maze331-May-18 23:06
professionalmaze331-May-18 23:06 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Jacquers31-May-18 23:42
Jacquers31-May-18 23:42 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
kalberts1-Jun-18 3:11
kalberts1-Jun-18 3:11 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Sander Rossel31-May-18 23:45
professionalSander Rossel31-May-18 23:45 
The one problem I have with the everything-on-one-line approach style of programming (which I also do a lot) is that it's impossible to debug.
You don't get intermediate values and you don't get to set breakpoints at specific functions.
The readability aspect is not that big of a deal, I can read it just fine (usually).

However, since you write code only once and read and debug it a gazillion times I prefer to write my code so I can step through it.
Sometimes I put it back together for readability afterwards.
For example:
C#
// Debuggable
var filtered = myList.Where(...);
var ordered = filtered.OrderBy(...);
var result = ordered.ToList();
return result;

// Readable
return myList
   .Where(...)
   .OrderBy(...)
   .ToList();


GeneralRe: Do you Program in Paragraphs or Sentances? Pin
kalberts1-Jun-18 3:01
kalberts1-Jun-18 3:01 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Sander Rossel1-Jun-18 3:09
professionalSander Rossel1-Jun-18 3:09 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
KBZX500031-May-18 23:48
KBZX500031-May-18 23:48 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
kalberts1-Jun-18 2:55
kalberts1-Jun-18 2:55 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
KBZX50001-Jun-18 4:37
KBZX50001-Jun-18 4:37 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
kalberts1-Jun-18 8:07
kalberts1-Jun-18 8:07 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
kalberts1-Jun-18 2:42
kalberts1-Jun-18 2:42 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Bruce Patin1-Jun-18 4:11
Bruce Patin1-Jun-18 4:11 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 4:14
RandyBuchholz1-Jun-18 4:14 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Bruce Patin1-Jun-18 4:43
Bruce Patin1-Jun-18 4:43 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
MSBassSinger1-Jun-18 4:39
professionalMSBassSinger1-Jun-18 4:39 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 6:18
RandyBuchholz1-Jun-18 6:18 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
kalberts1-Jun-18 8:39
kalberts1-Jun-18 8:39 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Kirk 103898211-Jun-18 5:14
Kirk 103898211-Jun-18 5:14 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Gerry Schmitz1-Jun-18 6:03
mveGerry Schmitz1-Jun-18 6:03 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 6:27
RandyBuchholz1-Jun-18 6:27 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Gerry Schmitz1-Jun-18 6:38
mveGerry Schmitz1-Jun-18 6:38 

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.