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

 
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 
GeneralRe: Office politics and sh*tty code. PinPopular
William Clardy21-Jun-16 2:08
William Clardy21-Jun-16 2:08 
Sander Rossel wrote:
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.


I fundamentally disagree, Sander.

First of all, regions do not hide anything -- nobody holds a gun to your head and forces you to collapse them. Instead, they only allow you the option of not having to look at it every time you scroll up or down. Working in SQL all day long, I consider anything which makes navigating between key sections code faster or simpler to be A Really Good Thing.

Second, regions are a purely for organizing your code, and outside of a Microsoft demonstration there is no class too small to benefit from a little functional structure (e.g., these functions are for the customer UI, these are for the auditors, and those are for the order-fulfillment folks). If a single-page essay can be more readable by being divided into 3 regions (introduction, body, and conclusion), then what makes you think that a 6- or 7-function class couldn't?

Lastly, I question whether code is really any better when you take a 12-step chunk of linear (a.k.a. "spaghetti") code and refactor it into a 3-step process with each step having 4 layers of abstraction in the form of calls to other functions. I would say that there are many occasions where spaghetti code is more readable to both the human and the compiler.
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. PinPopular
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. PinPopular
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 
GeneralRe: Office politics and sh*tty code. Pin
Pete O'Hanlon20-Jun-16 21:01
mvePete O'Hanlon20-Jun-16 21:01 

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.