Click here to Skip to main content
15,892,005 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.

 
QuestionLess / Neater code vs Readability / Understanding Pin
Jacquers30-Jul-20 23:53
Jacquers30-Jul-20 23:53 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
F-ES Sitecore31-Jul-20 0:02
professionalF-ES Sitecore31-Jul-20 0:02 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Nelek31-Jul-20 0:08
protectorNelek31-Jul-20 0:08 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 0:13
Jacquers31-Jul-20 0:13 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Nelek31-Jul-20 0:31
protectorNelek31-Jul-20 0:31 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Daniel Pfeffer31-Jul-20 0:10
professionalDaniel Pfeffer31-Jul-20 0:10 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 0:14
Jacquers31-Jul-20 0:14 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
OriginalGriff31-Jul-20 0:22
mveOriginalGriff31-Jul-20 0:22 
I don't like it: I don't think it's as obvious what the precise scope of the variable is and where it gets disposed.
For me, it gets "swallowed" by the other code and is harder to work with.

It's a bit like "always use curly braces" even when you don't really have to - they can save a lot of grief when you do this:
C#
if (a == b)
   c;
   d;
And don't notice.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 0:24
Jacquers31-Jul-20 0:24 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
dandy7231-Jul-20 2:59
dandy7231-Jul-20 2:59 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Marc Clifton31-Jul-20 1:22
mvaMarc Clifton31-Jul-20 1:22 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 1:57
Jacquers31-Jul-20 1:57 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Marc Clifton31-Jul-20 2:26
mvaMarc Clifton31-Jul-20 2:26 
AnswerRe: Less / Neater code vs Readability / Understanding PinPopular
ZurdoDev31-Jul-20 1:29
professionalZurdoDev31-Jul-20 1:29 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
User 1106097931-Jul-20 1:41
User 1106097931-Jul-20 1:41 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 1:58
Jacquers31-Jul-20 1:58 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
User 1106097931-Jul-20 2:42
User 1106097931-Jul-20 2:42 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
obermd31-Jul-20 3:38
obermd31-Jul-20 3:38 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
dandy7231-Jul-20 3:43
dandy7231-Jul-20 3:43 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Sander Rossel31-Jul-20 1:35
professionalSander Rossel31-Jul-20 1:35 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Eddy Vluggen31-Jul-20 2:15
professionalEddy Vluggen31-Jul-20 2:15 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
obermd31-Jul-20 3:37
obermd31-Jul-20 3:37 
GeneralCCC OTD 2020-07-31 - SOLVED Pin
Randor 30-Jul-20 22:46
professional Randor 30-Jul-20 22:46 
GeneralRe: CCC OTD 2020-07-31 Pin
Richard MacCutchan30-Jul-20 23:12
mveRichard MacCutchan30-Jul-20 23:12 
GeneralRe: CCC OTD 2020-07-31 Pin
Randor 30-Jul-20 23:25
professional Randor 30-Jul-20 23:25 

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.