Click here to Skip to main content
15,915,764 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
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. 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 
I have to disagree. It makes code easier to read, particularly in the case where someone else wrote the code and you are stuck working on it. For one thing it allows you to focus on just the code you want to see, with out having to sift through, and/or be distracted by hundreds of lines unrelated to the problem you are currently working on.

It is productivity 101... If you are asked to pull the 3 of clubs out of a deck of cards that have been shuffled thoroughly, it will take you much longer to find it and pull it out than from a new deck in which all of the cards are in order by suit and denomination.

It is the same reason databases have indexes.

I will take code organized in this manner over code that is not all day every day.

Finally, "using Regions to collapse groups of related functions" Is what I was/am talking about.
I have no idea how you got "Regions within functions mean that region should probably be a separate function" out of my original reply.
Duty calls.... I wish I was deaf sometimes.

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. 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 
GeneralRe: Office politics and sh*tty code. Pin
Pete O'Hanlon20-Jun-16 21:01
mvePete O'Hanlon20-Jun-16 21:01 
GeneralRe: Office politics and sh*tty code. Pin
Jeremy Falcon22-Jun-16 10:13
professionalJeremy Falcon22-Jun-16 10:13 
GeneralRe: Office politics and sh*tty code. Pin
CDP180220-Jun-16 12:20
CDP180220-Jun-16 12:20 
GeneralRe: Office politics and sh*tty code. Pin
Mark_Wallace20-Jun-16 12:40
Mark_Wallace20-Jun-16 12:40 
GeneralRe: Office politics and sh*tty code. Pin
CDP180220-Jun-16 16:03
CDP180220-Jun-16 16:03 
GeneralRe: Office politics and sh*tty code. Pin
Mark_Wallace20-Jun-16 22:44
Mark_Wallace20-Jun-16 22:44 

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.