Click here to Skip to main content
14,766,867 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
Jacquers1-Jun-18 0:42
MemberJacquers1-Jun-18 0:42 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Member 79891221-Jun-18 4:11
MemberMember 79891221-Jun-18 4:11 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Sander Rossel1-Jun-18 0:45
professionalSander Rossel1-Jun-18 0:45 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Member 79891221-Jun-18 4:01
MemberMember 79891221-Jun-18 4:01 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Sander Rossel1-Jun-18 4:09
professionalSander Rossel1-Jun-18 4:09 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
KBZX50001-Jun-18 0:48
MemberKBZX50001-Jun-18 0:48 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Member 79891221-Jun-18 3:55
MemberMember 79891221-Jun-18 3:55 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
KBZX50001-Jun-18 5:37
MemberKBZX50001-Jun-18 5:37 
I can parse it line by line at a normal reading speed. Takes about 3-4 seconds the first time I see it.
The initial style I can parse and verify without having to read a single word. Takes me about 250 milliseconds.

The benefit of having spacious functions is that mistakes become embarrassingly easy to spot.
Likewise, properly written functions become very easy to parse, because they look so damn familiar.

I find "less lines of code" a dubious benefit.
A cramped style is more time-consuming to debug, both in terms of setting breakpoints and retracing logged exceptions.
Also, I definitely agree functions should not grow too big.. but stacking multiple logical steps on a single line only gives you the illusion of small functions.
I say: be spacious, let functions grow, and flag them for refactoring if they don't fit on a single page.

The point is to write code that's self-evident +6 months in the future.
Quick to read, amend and fix if need be.
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Member 79891221-Jun-18 9:07
MemberMember 79891221-Jun-18 9:07 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Member 79891221-Jun-18 3:42
MemberMember 79891221-Jun-18 3:42 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Bruce Patin1-Jun-18 5:11
MemberBruce Patin1-Jun-18 5:11 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 5:14
MemberRandyBuchholz1-Jun-18 5:14 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Bruce Patin1-Jun-18 5:43
MemberBruce Patin1-Jun-18 5:43 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
MSBassSinger1-Jun-18 5:39
professionalMSBassSinger1-Jun-18 5:39 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 7:18
MemberRandyBuchholz1-Jun-18 7:18 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Member 79891221-Jun-18 9:39
MemberMember 79891221-Jun-18 9:39 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Kirk 103898211-Jun-18 6:14
MemberKirk 103898211-Jun-18 6:14 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Gerry Schmitz1-Jun-18 7:03
mveGerry Schmitz1-Jun-18 7:03 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 7:27
MemberRandyBuchholz1-Jun-18 7:27 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Gerry Schmitz1-Jun-18 7:38
mveGerry Schmitz1-Jun-18 7:38 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
RandyBuchholz1-Jun-18 8:08
MemberRandyBuchholz1-Jun-18 8:08 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Gerry Schmitz1-Jun-18 8:44
mveGerry Schmitz1-Jun-18 8:44 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Member 79891221-Jun-18 9:52
MemberMember 79891221-Jun-18 9:52 
GeneralRe: Do you Program in Paragraphs or Sentences? Pin
Vivi Chellappa2-Jun-18 5:21
professionalVivi Chellappa2-Jun-18 5:21 
GeneralThought of the Day Pin
OriginalGriff31-May-18 5:56
mveOriginalGriff31-May-18 5:56 

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.