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

 
GeneralRe: Java Memory Management Pin
dojohansen12-Feb-08 3:10
dojohansen12-Feb-08 3:10 
GeneralRe: Java Memory Management Pin
Mike Dimmick15-Feb-08 1:25
Mike Dimmick15-Feb-08 1:25 
GeneralRe: Java Memory Management Pin
dojohansen15-Feb-08 2:18
dojohansen15-Feb-08 2:18 
GeneralRe: Java Memory Management Pin
TheGreatAndPowerfulOz18-Feb-08 12:02
TheGreatAndPowerfulOz18-Feb-08 12:02 
GeneralRe: Java Memory Management Pin
dojohansen18-Feb-08 21:57
dojohansen18-Feb-08 21:57 
GeneralRe: Java Memory Management Pin
KarstenK13-Feb-08 20:45
mveKarstenK13-Feb-08 20:45 
Generaljavascript-professionals Pin
wickdom8-Feb-08 5:56
wickdom8-Feb-08 5:56 
GeneralRe: javascript-professionals PinPopular
PIEBALDconsult9-Feb-08 17:59
mvePIEBALDconsult9-Feb-08 17:59 
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

(Now I've forgotten who said it; I had to find a post by leppie to get it.)


Need a status? Make one.
Need a second one? Go right ahead.
Need a third? Hey! They don't grow on trees!


It reminds me of a job I used to have... I was assigned the maintenance of the credit card processing part of the system. Each member's account had fields for credit card number, type, and expiration. So far so good.
Then we got a new client who wanted a backup credit card... OK, we added a second set of credit card number, type, and expiration plus a field to indicate which one was used last time to the table.
Then we got another new client who wanted to do EFT and before anyone told me about it, they added account and routing number (or whatever) to the table.
When I went to talk to the DBA and suggest we should have some sort of PaymentSource table that could have any number of sources associated with an account. His response was that, although it was a good idea, the inmates had taken over and there was nothing we could do at that point. Dead | X|
GeneralRe: javascript-professionals Pin
Paul Conrad17-Feb-08 6:49
professionalPaul Conrad17-Feb-08 6:49 
GeneralBool expression?? Pin
Erich Ledesma7-Feb-08 18:41
Erich Ledesma7-Feb-08 18:41 
GeneralRe: Bool expression?? Pin
leppie7-Feb-08 21:32
leppie7-Feb-08 21:32 
GeneralRe: Bool expression?? Pin
AEternal8-Feb-08 2:43
AEternal8-Feb-08 2:43 
GeneralRe: Bool expression?? Pin
PIEBALDconsult8-Feb-08 4:03
mvePIEBALDconsult8-Feb-08 4:03 
JokeRe: Bool expression?? Pin
BadKarma8-Feb-08 4:16
BadKarma8-Feb-08 4:16 
GeneralRe: Bool expression?? Pin
AEternal8-Feb-08 4:34
AEternal8-Feb-08 4:34 
GeneralRe: Bool expression?? PinPopular
PIEBALDconsult8-Feb-08 6:53
mvePIEBALDconsult8-Feb-08 6:53 
GeneralRe: Bool expression?? Pin
Vasudevan Deepak Kumar14-Feb-08 3:39
Vasudevan Deepak Kumar14-Feb-08 3:39 
GeneralRe: Bool expression?? Pin
Michael P. Scherer13-Feb-08 11:05
Michael P. Scherer13-Feb-08 11:05 
GeneralRe: Bool expression?? Pin
BadKarma13-Feb-08 21:19
BadKarma13-Feb-08 21:19 
GeneralRe: Bool expression?? Pin
Vasudevan Deepak Kumar14-Feb-08 3:40
Vasudevan Deepak Kumar14-Feb-08 3:40 
GeneralRe: Bool expression?? Pin
codemunch8-Feb-08 6:49
codemunch8-Feb-08 6:49 
GeneralRe: Bool expression?? Pin
Tristan Rhodes11-Feb-08 22:08
Tristan Rhodes11-Feb-08 22:08 
GeneralRe: Bool expression?? Pin
codemunch12-Feb-08 6:51
codemunch12-Feb-08 6:51 
GeneralRe: Bool expression?? Pin
Erich Ledesma8-Feb-08 8:52
Erich Ledesma8-Feb-08 8:52 
GeneralRe: Bool expression?? Pin
dojohansen12-Feb-08 3:18
dojohansen12-Feb-08 3:18 

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.