Click here to Skip to main content
15,910,009 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: Code analysis Pin
Super Lloyd19-Nov-19 2:37
Super Lloyd19-Nov-19 2:37 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 5:37
professionalSander Rossel19-Nov-19 5:37 
GeneralRe: Code analysis Pin
obermd20-Nov-19 4:02
obermd20-Nov-19 4:02 
GeneralRe: Code analysis Pin
Super Lloyd20-Nov-19 11:25
Super Lloyd20-Nov-19 11:25 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 2:56
CodeWraith19-Nov-19 2:56 
JokeRe: Code analysis Pin
lopatir19-Nov-19 4:09
lopatir19-Nov-19 4:09 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 4:22
CodeWraith19-Nov-19 4:22 
GeneralRe: Code analysis PinPopular
Sander Rossel19-Nov-19 5:33
professionalSander Rossel19-Nov-19 5:33 
CodeWraith wrote:
Style is not important because you're writing code for compiler to read, not for developers.
I think probably 80% of a developer's job is reading code.
The compiler can read long sentences, short sentences, clear variable names and garbage variable names.
The compiler could read an entire multi million line C# application condensed in a single line.
Humans cannot.
Luckily, we have plenty of people who make our job really very hard so we won't get bored.
CodeWraith wrote:
How do you think I feel about someone who screams bloody murder over something that's obviously not important to me. Smile | :)
A programmer who doesn't care about his code is like an author who doesn't care about his book.

To be clear, I don't really mind an extra white space, or an underscore.
But I've had code like this:
C#
public class someClass
{
    Int32 _someVariable;
    int AnotherVariable;
    Point Some_Point;
    private string privateVariable;
}

class AnotherClass
{
}
I wish I was joking or overreacting, but that's what I got.
We have inconsistency in PascalCase, camelCase, underscores, access modifiers and even the class names for built-in types like int.
And when it's everywhere, in 1000 line classes, it becomes difficult to even just read let alone understand what it does.
CodeWraith wrote:
He reformats every XAML so that every attribute in a tag gets its own line and indents everything with just two spaces.
I do that with my C# code too.
Or rather, Visual Studio does it for me when I ctrl + k, d.
And with this cool plugin I have it happens automatically on save, because I care about my code Smile | :)

GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 5:58
Super Lloyd19-Nov-19 5:58 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:43
professionalSander Rossel19-Nov-19 8:43 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 6:54
CodeWraith19-Nov-19 6:54 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:33
professionalSander Rossel19-Nov-19 8:33 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 9:31
CodeWraith19-Nov-19 9:31 
GeneralRe: Code analysis Pin
AFell219-Nov-19 5:42
AFell219-Nov-19 5:42 
GeneralRe: Code analysis Pin
lopatir19-Nov-19 4:19
lopatir19-Nov-19 4:19 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:46
professionalSander Rossel19-Nov-19 8:46 
GeneralRe: Code analysis Pin
User 1106097919-Nov-19 7:09
User 1106097919-Nov-19 7:09 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:46
professionalSander Rossel19-Nov-19 8:46 
GeneralRe: Code analysis - STYLE Pin
Semorád Jan20-Nov-19 23:53
Semorád Jan20-Nov-19 23:53 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 3:35
CodeWraith19-Nov-19 3:35 
GeneralRe: Code analysis Pin
Eddy Vluggen19-Nov-19 14:57
professionalEddy Vluggen19-Nov-19 14:57 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 21:13
CodeWraith19-Nov-19 21:13 
GeneralRe: Code analysis Pin
Marc Clifton19-Nov-19 4:34
mvaMarc Clifton19-Nov-19 4:34 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 5:47
Super Lloyd19-Nov-19 5:47 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 5:31
CodeWraith19-Nov-19 5:31 

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.