Click here to Skip to main content
15,902,635 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: Need to vent... Pin
PIEBALDconsult30-Dec-08 9:15
mvePIEBALDconsult30-Dec-08 9:15 
GeneralRe: Need to vent... Pin
GibbleCH30-Dec-08 10:19
GibbleCH30-Dec-08 10:19 
GeneralRe: Need to vent... Pin
PIEBALDconsult30-Dec-08 14:02
mvePIEBALDconsult30-Dec-08 14:02 
GeneralRe: Need to vent... Pin
Timothy Byrd30-Dec-08 10:47
Timothy Byrd30-Dec-08 10:47 
GeneralRe: Need to vent... Pin
Chris Meech30-Dec-08 9:45
Chris Meech30-Dec-08 9:45 
GeneralRe: Need to vent... Pin
Deflinek30-Dec-08 20:45
Deflinek30-Dec-08 20:45 
GeneralRe: Need to vent... PinPopular
kenrentz31-Dec-08 6:06
kenrentz31-Dec-08 6:06 
GeneralRe: Need to vent... Pin
supercat94-Jan-09 8:39
supercat94-Jan-09 8:39 
I've written some code that turned out to be dog slow when given sufficiently-large data sets. Usually I've tried to fix it before the customer could try it and complain. It's not always easy, though, to know what things are going to pose a problem until one actually codes them. Obviously O(n^2) algorithms are likely to cause problems unless 'n' is bounded to a small value, but it may not be possible to recognize an algorithm which takes time c+kn as an obvious bottleneck without testing it on large data sets. For example, if c==1000k the program may seem to take the same amount of time with n=10 and n=100, but be unacceptably slow with n=1,000,000. It may well be that the n=100 case is much more common, but if the n=1,000,000 case could occur the system needs to be able to deal with it without causing timeouts.
GeneralRe: Need to vent... Pin
ToddHileHoffer5-Jan-09 7:04
ToddHileHoffer5-Jan-09 7:04 
GeneralRe: Need to vent... Pin
Douglas Dean7-Jan-09 4:52
Douglas Dean7-Jan-09 4:52 
GeneralRe: Need to vent... Pin
Megidolaon23-Feb-09 23:20
Megidolaon23-Feb-09 23:20 
GeneralRe: Need to vent... Pin
Timothy Byrd24-Feb-09 8:18
Timothy Byrd24-Feb-09 8:18 
Rantgreat way to clear asp.net form fields Pin
freddy rios29-Dec-08 15:05
freddy rios29-Dec-08 15:05 
GeneralGood if paid by number of lines! Pin
Asad Abbasi29-Dec-08 5:11
Asad Abbasi29-Dec-08 5:11 
GeneralRe: Good if paid by number of lines! [modified] Pin
PIEBALDconsult29-Dec-08 5:41
mvePIEBALDconsult29-Dec-08 5:41 
GeneralRe: Good if paid by number of lines! Pin
hammerstein0529-Dec-08 6:28
hammerstein0529-Dec-08 6:28 
GeneralRe: Good if paid by number of lines! Pin
singh.iz.king29-Dec-08 13:34
singh.iz.king29-Dec-08 13:34 
GeneralRe: Good if paid by number of lines! Pin
Megidolaon22-Feb-09 23:21
Megidolaon22-Feb-09 23:21 
GeneralRe: Good if paid by number of lines! Pin
Luc Pattyn29-Dec-08 16:13
sitebuilderLuc Pattyn29-Dec-08 16:13 
GeneralRe: Good if paid by number of lines! Pin
LarryDM1-Jan-09 22:31
LarryDM1-Jan-09 22:31 
GeneralDevil's advocate Pin
supercat94-Jan-09 8:29
supercat94-Jan-09 8:29 
GeneralRe: Good if paid by number of lines! Pin
Rauhotz14-Jan-09 12:55
Rauhotz14-Jan-09 12:55 
GeneralRe: Good if paid by number of lines! Pin
itsravie3-Mar-09 3:18
itsravie3-Mar-09 3:18 
GeneralRe: Good if paid by number of lines! Pin
Divyang Mithaiwala3-Apr-09 23:24
Divyang Mithaiwala3-Apr-09 23:24 
GeneralMaking shortcuts even shorter Pin
gnjunge26-Dec-08 4:45
gnjunge26-Dec-08 4:45 

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.