Click here to Skip to main content
15,909,829 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
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. 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 
William Clardy wrote:
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.


If it's code that works on only one layer of abstraction that's a bit longer, maybe like a stupid init routine for some hardware device in an embedded project, okay.
If that routine jumps between different levels, breaking it down into small functions will make it more understandable, because that untangles complexity which would otherwise have to go into your head all at once / you'll have to orient yourself in that complexity first. Whereas breaking it down into smaller chunks, you're basically outlining a graph of how things work.
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 
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 

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.