Click here to Skip to main content
15,909,953 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: Office politics and sh*tty code. Pin
Jeremy Falcon20-Jun-16 12:06
professionalJeremy Falcon20-Jun-16 12:06 
GeneralRe: Office politics and sh*tty code. Pin
SeattleC++21-Jun-16 5:18
SeattleC++21-Jun-16 5:18 
GeneralRe: Office politics and sh*tty code. Pin
XH558v20-Jun-16 22:13
XH558v20-Jun-16 22:13 
GeneralRe: Office politics and sh*tty code. Pin
pkulek21-Jun-16 2:51
pkulek21-Jun-16 2:51 
GeneralRe: Office politics and sh*tty code. Pin
TheGreatAndPowerfulOz21-Jun-16 8:01
TheGreatAndPowerfulOz21-Jun-16 8:01 
GeneralRe: Office politics and sh*tty code. Pin
Ravi Bhavnani20-Jun-16 11:44
professionalRavi Bhavnani20-Jun-16 11:44 
GeneralRe: Office politics and sh*tty code. Pin
Pete O'Hanlon20-Jun-16 20:52
mvePete O'Hanlon20-Jun-16 20:52 
GeneralRe: Office politics and sh*tty code. Pin
Sander Rossel20-Jun-16 21:01
professionalSander Rossel20-Jun-16 21:01 
Kevin Marois wrote:
I always use regions
I really hate regions! Sigh | :sigh:
They obfuscate the code, you only get to see parts of it, but I want it all!
If your code is really so properly written you shouldn't need regions.
If you have regions in a single function then refactor that function so the regions now become functions.
If you have regions in a single class then refactor that class so the regions now become classes.
The only thing I usually put in a region is the Dispose function. Mostly because that's in the default Visual Studio snippet.
And ordering alphabetically is just tedious and unnecessary, Visual Studio lists everything in an ordered list already. And huge big ass unwieldy functions and classes can still be ordered Roll eyes | :rolleyes:

I'm not complaining, I'm trying to make your code better Poke tongue | ;-P
Also a nice examples how one programmers clean code is another programmers nightmare Smile | :)
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Office politics and sh*tty code. Pin
William Clardy21-Jun-16 2:08
William Clardy21-Jun-16 2:08 
GeneralRe: Office politics and sh*tty code. Pin
Sander Rossel21-Jun-16 5:56
professionalSander Rossel21-Jun-16 5:56 
GeneralRe: Office politics and sh*tty code. Pin
Steve#222-Jun-16 9:34
Steve#222-Jun-16 9:34 
GeneralRe: Office politics and sh*tty code. Pin
Slow Eddie21-Jun-16 3:21
professionalSlow Eddie21-Jun-16 3:21 
GeneralRe: Office politics and sh*tty code. Pin
TheGreatAndPowerfulOz21-Jun-16 8:05
TheGreatAndPowerfulOz21-Jun-16 8:05 
GeneralRe: Office politics and sh*tty code. Pin
Slow Eddie21-Jun-16 8:33
professionalSlow Eddie21-Jun-16 8:33 
GeneralRe: Office politics and sh*tty code. Pin
TheGreatAndPowerfulOz21-Jun-16 8:46
TheGreatAndPowerfulOz21-Jun-16 8:46 
GeneralRe: Office politics and sh*tty code. Pin
Tyson Moore21-Jun-16 6:55
Tyson Moore21-Jun-16 6:55 
GeneralRe: Office politics and sh*tty code. Pin
Mark_Wallace20-Jun-16 11:26
Mark_Wallace20-Jun-16 11:26 
GeneralRe: Office politics and sh*tty code. Pin
Kevin Marois20-Jun-16 11:30
professionalKevin Marois20-Jun-16 11:30 
GeneralRe: Office politics and sh*tty code. Pin
Mark_Wallace20-Jun-16 11:50
Mark_Wallace20-Jun-16 11:50 
GeneralRe: Office politics and sh*tty code. Pin
ZurdoDev20-Jun-16 11:30
professionalZurdoDev20-Jun-16 11:30 
GeneralRe: Office politics and sh*tty code. Pin
Jeremy Falcon20-Jun-16 11:34
professionalJeremy Falcon20-Jun-16 11:34 
GeneralRe: Office politics and sh*tty code. Pin
Mark_Wallace20-Jun-16 11:48
Mark_Wallace20-Jun-16 11:48 
GeneralRe: Office politics and sh*tty code. Pin
Jeremy Falcon20-Jun-16 12:10
professionalJeremy Falcon20-Jun-16 12:10 
GeneralRe: Office politics and sh*tty code. Pin
Mark_Wallace20-Jun-16 12:23
Mark_Wallace20-Jun-16 12:23 
GeneralRe: Office politics and sh*tty code. Pin
Jeremy Falcon20-Jun-16 12:28
professionalJeremy Falcon20-Jun-16 12:28 

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.