Click here to Skip to main content
15,905,967 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? PinPopular
dbrenth31-May-18 7:31
dbrenth31-May-18 7:31 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Marc Clifton31-May-18 9:05
mvaMarc Clifton31-May-18 9:05 
JokeThat's not the question Pin
CodeWraith31-May-18 7:40
CodeWraith31-May-18 7:40 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
W Balboos, GHB31-May-18 7:40
W Balboos, GHB31-May-18 7:40 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Scott Serl31-May-18 7:43
Scott Serl31-May-18 7:43 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
RandyBuchholz31-May-18 7:55
RandyBuchholz31-May-18 7:55 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Marc Clifton31-May-18 8:40
mvaMarc Clifton31-May-18 8:40 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Marc Clifton31-May-18 9:11
mvaMarc Clifton31-May-18 9:11 
Technically:

list.WhenNotEmpty()?.ForEach(s => s.Prepare(out var r)?.Manipulate(r));

Would work as well as:

list.ForEach(s => s.Prepare(out var r)?.Manipulate(r));

Given that an empty list is, well, empty. But again, to rant more about junior devs vs. experienced devs, IMO (as an experienced dev) a list should never be null. It should be empty or have content. But I see so many "if null" checks because nobody initializes their collections in the constructor, for example. And since the juniors are stuck in the dark ages because they don't get training, even:

list?.ForEach(s => s.Prepare(out var r)?.Manipulate(r));

is unknown to them, though I'd still squawk at them for having a null list.

Then again, I've also seen the null continuation operator abused in ways that tell me the programmer really had no right to be writing code: Code Review - What You Can Learn From a Single Line of Code
Latest Article - Building a Prototype Web-Based Diagramming Tool with SVG and Javascript

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Richard Deeming31-May-18 9:49
mveRichard Deeming31-May-18 9:49 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Marc Clifton1-Jun-18 2:19
mvaMarc Clifton1-Jun-18 2:19 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
RandyBuchholz31-May-18 10:05
RandyBuchholz31-May-18 10:05 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
Munchies_Matt31-May-18 17:56
Munchies_Matt31-May-18 17:56 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
GenJerDan31-May-18 20:15
GenJerDan31-May-18 20:15 
GeneralRe: Do you Program in Paragraphs or Sentances? Pin
kalberts1-Jun-18 6:44
kalberts1-Jun-18 6:44 
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 
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 

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.