Click here to Skip to main content
15,505,438 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: Windows Explorer - Useful feature Pin
Gustaf A14-Sep-22 22:09
Gustaf A14-Sep-22 22:09 
GeneralRe: Windows Explorer - Useful feature Pin
MrChug15-Sep-22 4:43
MrChug15-Sep-22 4:43 
GeneralRe: Windows Explorer - Useful feature Pin
kholsinger15-Sep-22 10:50
kholsinger15-Sep-22 10:50 
GeneralRe: Windows Explorer - Useful feature Pin
Dan Neely23-Sep-22 11:22
Dan Neely23-Sep-22 11:22 
GeneralRe: Windows Explorer - Useful feature Pin
Richard Deeming25-Sep-22 22:47
mveRichard Deeming25-Sep-22 22:47 
GeneralRe: Windows Explorer - Useful feature Pin
Dan Neely26-Sep-22 5:52
Dan Neely26-Sep-22 5:52 
GeneralRe: Windows Explorer - Useful feature Pin
Richard Deeming26-Sep-22 6:26
mveRichard Deeming26-Sep-22 6:26 
GeneralEmbarrassing newbie mistake PinPopular
bill fleming 202212-Sep-22 10:02
bill fleming 202212-Sep-22 10:02 
Once upon a time in a galaxy far, far away… When I was a new (less than 1 year) programmer and working on an IBM 1401 with no math co-processor, I noticed a program that took a long time to do percent calculations (divide). In those days a divide was a software subroutine (a.k.a. function) provided by the vendor to achieve desired results. I had the bright idea improving on it and figured that if you multiplied the numerator by 100 and then looped through a routine that subtracted the denominator you could get there faster. And it worked. Spectacularly. Until… When a numerator came through that was much larger than the denominator the machine virtually locked up. Lessons to new programmers, always test all use cases and never assume your data will be good – always assume the worst where data is concerned. Or as I heard somewhere: no matter how good the validation, some idiot will find a way to get bad data past it.
GeneralRe: Embarrassing newbie mistake Pin
Marc Clifton12-Sep-22 13:54
mvaMarc Clifton12-Sep-22 13:54 
GeneralRe: Embarrassing newbie mistake Pin
Rick York19-Sep-22 22:50
mveRick York19-Sep-22 22:50 
GeneralRe: Embarrassing newbie mistake Pin
trønderen20-Sep-22 18:37
trønderen20-Sep-22 18:37 
GeneralRe: Embarrassing newbie mistake Pin
Rick York30-Sep-22 6:25
mveRick York30-Sep-22 6:25 
GeneralAnother ancient oddity in .net Pin
PIEBALDconsult10-Sep-22 7:54
professionalPIEBALDconsult10-Sep-22 7:54 
GeneralRe: Another ancient oddity in .net Pin
honey the codewitch11-Sep-22 9:13
mvahoney the codewitch11-Sep-22 9:13 
GeneralRe: Another ancient oddity in .net Pin
BillWoodruff11-Sep-22 21:14
mveBillWoodruff11-Sep-22 21:14 
GeneralRe: Another ancient oddity in .net Pin
Thornik12-Sep-22 3:44
Thornik12-Sep-22 3:44 
GeneralRe: Another ancient oddity in .net Pin
F Margueirat12-Sep-22 5:37
F Margueirat12-Sep-22 5:37 
GeneralRe: Another ancient oddity in .net Pin
Thornik12-Sep-22 6:10
Thornik12-Sep-22 6:10 
GeneralRe: Another ancient oddity in .net Pin
F Margueirat12-Sep-22 7:41
F Margueirat12-Sep-22 7:41 
GeneralRe: Another ancient oddity in .net Pin
Thornik12-Sep-22 8:04
Thornik12-Sep-22 8:04 
GeneralRe: Another ancient oddity in .net Pin
Dan Sutton12-Sep-22 9:11
Dan Sutton12-Sep-22 9:11 
GeneralRe: Another ancient oddity in .net Pin
Thornik12-Sep-22 9:25
Thornik12-Sep-22 9:25 
GeneralRe: Another ancient oddity in .net Pin
Dan Sutton12-Sep-22 9:40
Dan Sutton12-Sep-22 9:40 
GeneralRe: Another ancient oddity in .net Pin
Dave DD12-Sep-22 9:16
Dave DD12-Sep-22 9:16 
GeneralRe: Another ancient oddity in .net Pin
Thornik12-Sep-22 9:26
Thornik12-Sep-22 9: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.