Click here to Skip to main content
15,914,452 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
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 Pin
Sander Rossel19-Nov-19 5:33
professionalSander Rossel19-Nov-19 5:33 
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 
CodeWraith wrote:
I hope I sucessfully fooled you into coming over and expecting a beer.
I'm at your door, why won't you open!? Laugh | :laugh:
CodeWraith wrote:
you must see that your one and only style may be just as problematic or misleading for the next guy
Never in the current team because they all know and recognize the style.
And I hope the next guy (or girl) needs a few minutes to get used to it and then says, "alright this code seems tidy which makes it easier for me to read it and understand it".
CodeWraith wrote:
when someone writes something upper-, lower, camel- or even briefcase?
When I see a variable in PascalCase I assume it's either a constant, a method or a property.
Likewise, when something is camelCased I assume it's a private variable, scoped to the current method or class.
When I see an underscore prefix I assume something's a field (and that the programmer is a little older).
I'm fine with a different styles, it's not my way or the highway, but this is something a lot of (.NET) programmers can relate to and sticking to that style will make things easier to read for many programmers after me.
Of course, when I'm doing JavaScript I never use PascalCase and use camelCase instead.
Again, I've seen PascalCase JavaScript and I'm fine with that, as long as it's consistent (although the first sight of PascalCase in JavaScript does trigger me a bit because it's unexpected).

In the end, however you write your code, I will be able to understand it and to change it, but your code style (or lack thereof) may be the difference between a "that wasn't so bad" and a "wtf was that idiot thinking!?" Smile | :)
Style will never make up for lack of skills and if I had to pick between a skilled and sloppy developer or an unskilled and tidy developer, I'd go for the skilled one.
But why not skilled and tidy? Wink | ;)

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 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 5:50
Super Lloyd19-Nov-19 5:50 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 8:17
CodeWraith19-Nov-19 8:17 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 12:14
Super Lloyd19-Nov-19 12:14 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 22:19
CodeWraith19-Nov-19 22:19 

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.