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

 
GeneralC# code styling Pin
Super Lloyd16-Aug-21 16:44
MemberSuper Lloyd16-Aug-21 16:44 
GeneralRe: C# code styling Pin
PIEBALDconsult16-Aug-21 16:57
professionalPIEBALDconsult16-Aug-21 16:57 
GeneralRe: C# code styling Pin
obermd16-Aug-21 17:21
Memberobermd16-Aug-21 17:21 
GeneralRe: C# code styling Pin
Super Lloyd16-Aug-21 17:36
MemberSuper Lloyd16-Aug-21 17:36 
GeneralRe: C# code styling Pin
lmoelleb16-Aug-21 22:36
Memberlmoelleb16-Aug-21 22:36 
GeneralRe: C# code styling Pin
#realJSOP16-Aug-21 23:28
mva#realJSOP16-Aug-21 23:28 
GeneralRe: C# code styling Pin
lmoelleb17-Aug-21 3:15
Memberlmoelleb17-Aug-21 3:15 
GeneralRe: C# code styling Pin
Sander Rossel16-Aug-21 19:02
professionalSander Rossel16-Aug-21 19:02 
Super Lloyd wrote:
apart from method, field and property casing, which I will be the first to admit is purely cosmetic
Not completely, it helps you make assumptions about your code so you don't have to think about every little detail.
Not constantly having to check whether something is a method or variable or whatever, because it's consistently cased, lowers the cognitive load while reading code.
Most code is already hard enough to read without you having to worry whether something is a field, variable or property.
For example, you could make assumptions about the following code:
C#
public ReturnTheValue(int a) => a + b + C;
a is a variable passed to the method, b is probably a private field and C is probably a public property.

You'd be surprised if b was the property and C was the field, it'd be a WTF, and as we all know there's only one good metric for code quality... WTFs per minute.
So just a little more than cosmetics, I'd argue Smile | :)

GeneralRe: C# code styling Pin
Super Lloyd16-Aug-21 19:47
MemberSuper Lloyd16-Aug-21 19:47 
JokeRe: C# code styling Pin
Jacquers16-Aug-21 19:22
MemberJacquers16-Aug-21 19:22 
GeneralRe: C# code styling Pin
Super Lloyd16-Aug-21 19:46
MemberSuper Lloyd16-Aug-21 19:46 
GeneralRe: C# code styling Pin
obermd17-Aug-21 6:21
Memberobermd17-Aug-21 6:21 
GeneralRe: C# code styling Pin
Jacquers16-Aug-21 19:25
MemberJacquers16-Aug-21 19:25 
GeneralRe: C# code styling Pin
lmoelleb16-Aug-21 21:57
Memberlmoelleb16-Aug-21 21:57 
GeneralRe: C# code styling Pin
#realJSOP16-Aug-21 23:33
mva#realJSOP16-Aug-21 23:33 
GeneralRe: C# code styling Pin
lmoelleb17-Aug-21 3:03
Memberlmoelleb17-Aug-21 3:03 
GeneralRe: C# code styling Pin
#realJSOP17-Aug-21 23:10
mva#realJSOP17-Aug-21 23:10 
GeneralRe: C# code styling Pin
lmoelleb17-Aug-21 23:23
Memberlmoelleb17-Aug-21 23:23 
GeneralCP handy for lots of stuff (even programming info) Pin
theoldfool16-Aug-21 7:28
professionaltheoldfool16-Aug-21 7:28 
GeneralRe: CP handy for lots of stuff (even programming info) Pin
OriginalGriff16-Aug-21 8:15
mveOriginalGriff16-Aug-21 8:15 
GeneralRe: CP handy for lots of stuff (even programming info) Pin
theoldfool16-Aug-21 8:48
professionaltheoldfool16-Aug-21 8:48 
GeneralRe: CP handy for lots of stuff (even programming info) Pin
Slow Eddie16-Aug-21 11:54
professionalSlow Eddie16-Aug-21 11:54 
GeneralRe: CP handy for lots of stuff (even programming info) Pin
theoldfool16-Aug-21 12:36
professionaltheoldfool16-Aug-21 12:36 
GeneralRe: CP handy for lots of stuff (even programming info) Pin
Slow Eddie17-Aug-21 2:07
professionalSlow Eddie17-Aug-21 2:07 
GeneralRe: CP handy for lots of stuff (even programming info) Pin
theoldfool17-Aug-21 2:17
professionaltheoldfool17-Aug-21 2:17 

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.