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

 
AnswerRe: Finding a record by its primary key Pin
Pete O'Hanlon26-Aug-08 1:58
mvePete O'Hanlon26-Aug-08 1:58 
QuestionRe: Finding a record by its primary key Pin
developer626-Aug-08 2:07
developer626-Aug-08 2:07 
AnswerRe: Finding a record by its primary key Pin
Dan Neely26-Aug-08 2:19
Dan Neely26-Aug-08 2:19 
GeneralRe: Finding a record by its primary key Pin
Paul Conrad22-Aug-08 9:36
professionalPaul Conrad22-Aug-08 9:36 
GeneralRe: Finding a record by its primary key Pin
SilimSayo25-Aug-08 3:52
SilimSayo25-Aug-08 3:52 
GeneralRe: Finding a record by its primary key Pin
Nathan Tuggy25-Aug-08 8:45
Nathan Tuggy25-Aug-08 8:45 
GeneralRe: Finding a record by its primary key Pin
Nathan Tuggy25-Aug-08 8:46
Nathan Tuggy25-Aug-08 8:46 
GeneralRe: Finding a record by its primary key Pin
CDP180228-Aug-08 4:37
CDP180228-Aug-08 4:37 
Transactions are a blessing. Writing code to undo all changes after an error is no fun at all. And how do you proceed when even more errors pop up while undoing things?

Unfortunately you don't always have transactions. I'm working on a larger project that uses a MySql database for both low cost and speed. Using another table format would make transactions available, but also slow everything down in an unacceptable manner. So I guess, the only choice is dealing with some tight spots in the buisiness logic.

A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.

I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

Generali cant believe its not butter...or that i wrote this Pin
SomeGuyThatIsMe18-Aug-08 3:42
SomeGuyThatIsMe18-Aug-08 3:42 
Generalwho wrote wrote this C program? Pin
Steven A. Lowe17-Aug-08 18:22
Steven A. Lowe17-Aug-08 18:22 
JokeRe: who wrote wrote this C program? Pin
darkelv17-Aug-08 19:47
darkelv17-Aug-08 19:47 
GeneralRe: who wrote wrote this C program? Pin
Vimalsoft(Pty) Ltd24-Aug-08 4:01
professionalVimalsoft(Pty) Ltd24-Aug-08 4:01 
GeneralRe: who wrote wrote this C program? Pin
QuiJohn19-Aug-08 3:03
QuiJohn19-Aug-08 3:03 
GeneralRe: who wrote wrote this C program? Pin
Mladen Janković19-Aug-08 3:09
Mladen Janković19-Aug-08 3:09 
GeneralRe: who wrote wrote this C program? Pin
Dan Neely19-Aug-08 7:25
Dan Neely19-Aug-08 7:25 
GeneralRe: who wrote wrote this C program? Pin
Yusuf19-Aug-08 8:48
Yusuf19-Aug-08 8:48 
GeneralRe: who wrote wrote this C program? Pin
mattraffel22-Aug-08 8:36
mattraffel22-Aug-08 8:36 
GeneralRe: who wrote wrote this C program? Pin
BillW333-Sep-08 11:21
professionalBillW333-Sep-08 11:21 
GeneralRe: who wrote wrote this C program? Pin
Paul Conrad21-Aug-08 16:50
professionalPaul Conrad21-Aug-08 16:50 
JokeRan across this sql the other day. Pin
Austin Harris15-Aug-08 8:44
Austin Harris15-Aug-08 8:44 
GeneralRe: Ran across this sql the other day. Pin
Pete O'Hanlon15-Aug-08 8:54
mvePete O'Hanlon15-Aug-08 8:54 
GeneralRe: Ran across this sql the other day. Pin
PIEBALDconsult15-Aug-08 12:06
mvePIEBALDconsult15-Aug-08 12:06 
GeneralRe: Ran across this sql the other day. Pin
Brent Lamborn15-Aug-08 9:32
Brent Lamborn15-Aug-08 9:32 
GeneralRe: Ran across this sql the other day. Pin
Paul Conrad16-Aug-08 5:52
professionalPaul Conrad16-Aug-08 5:52 
GeneralRe: Ran across this sql the other day. Pin
Yusuf16-Aug-08 17:27
Yusuf16-Aug-08 17:27 

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.