Click here to Skip to main content
15,887,596 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
JokeRe: DRY, SoC, IoC, KISS... (NOT) Pin
Yusuf15-Sep-10 16:13
Yusuf15-Sep-10 16:13 
GeneralRe: DRY, SoC, IoC, KISS... (NOT) Pin
OriginalGriff15-Sep-10 21:32
mveOriginalGriff15-Sep-10 21:32 
JokeRe: DRY, SoC, IoC, KISS... (NOT) Pin
Palladino15-Sep-10 23:13
Palladino15-Sep-10 23:13 
GeneralRe: DRY, SoC, IoC, KISS... (NOT) Pin
makumazan8415-Sep-10 23:23
makumazan8415-Sep-10 23:23 
JokeRe: DRY, SoC, IoC, KISS... (NOT) Pin
Palladino15-Sep-10 23:45
Palladino15-Sep-10 23:45 
GeneralRe: DRY, SoC, IoC, KISS... (NOT) Pin
cpkilekofp20-Sep-10 7:25
cpkilekofp20-Sep-10 7:25 
JokeRe: DRY, SoC, IoC, KISS... (NOT) Pin
Palladino22-Sep-10 3:42
Palladino22-Sep-10 3:42 
GeneralRe: DRY, SoC, IoC, KISS... (NOT) Pin
cpkilekofp22-Sep-10 5:22
cpkilekofp22-Sep-10 5:22 
Palladino wrote:
Dammit!


Yeah, I had the same reaction the first time I wanted to use it, some time about two years ago. I dislike large function bodies, but realistically there are a number of situation-specific algorithms that depend on a long sequence of unrepeated operations. To reduce the size, one is left with the option of breaking them into smaller chunks as subroutines, then calling each subroutine in sequence. I've seen differences in how well that approach works when maintenance is being performed by novices to the software. I've seen genuinely intense frustration expressed by some developers when they have to nest down through two or more levels of subroutine that were simply put in to eliminate very lengthy code sequences, where the developer in question felt it would have been much easier to follow the sequence in its original lengthy form. Allowing collapsible regions within a subroutine brings the best of both techniques to bear on the problem.
GeneralOld time horror Pin
lemur14-Sep-10 8:13
lemur14-Sep-10 8:13 
GeneralRe: Old time horror Pin
BillW3314-Sep-10 11:27
professionalBillW3314-Sep-10 11:27 
GeneralRe: Old time horror Pin
PIEBALDconsult14-Sep-10 14:59
mvePIEBALDconsult14-Sep-10 14:59 
GeneralRe: Old time horror Pin
lemur14-Sep-10 23:20
lemur14-Sep-10 23:20 
GeneralRe: Old time horror Pin
YSLGuru22-Sep-10 6:02
YSLGuru22-Sep-10 6:02 
GeneralRe: Old time horror [modified] Pin
Simone Serponi16-Sep-10 6:07
Simone Serponi16-Sep-10 6:07 
GeneralRe: Old time horror Pin
CDP180217-Sep-10 2:43
CDP180217-Sep-10 2:43 
GeneralRe: Old time horror Pin
Simone Serponi17-Sep-10 6:08
Simone Serponi17-Sep-10 6:08 
GeneralRe: Old time horror Pin
CDP180219-Sep-10 3:58
CDP180219-Sep-10 3:58 
GeneralRe: Old time horror Pin
tom144317-Sep-10 1:47
tom144317-Sep-10 1:47 
GeneralRe: Old time horror Pin
CDP180217-Sep-10 2:47
CDP180217-Sep-10 2:47 
GeneralRe: Old time horror Pin
Stefan_Lang17-Sep-10 3:50
Stefan_Lang17-Sep-10 3:50 
GeneralRe: Old time horror Pin
tom144317-Sep-10 4:35
tom144317-Sep-10 4:35 
GeneralRe: Old time horror Pin
JFDR_0217-Sep-10 5:54
JFDR_0217-Sep-10 5:54 
JokeRe: Old time horror Pin
Stefan_Lang17-Sep-10 3:58
Stefan_Lang17-Sep-10 3:58 
GeneralRe: Old time horror Pin
BrainiacV17-Sep-10 8:15
BrainiacV17-Sep-10 8:15 
GeneralRe: Old time horror Pin
BillW3322-Sep-10 1:26
professionalBillW3322-Sep-10 1:26 

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.