Click here to Skip to main content
15,911,646 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: variable names - who cares!? Pin
BillW3328-Aug-08 4:33
professionalBillW3328-Aug-08 4:33 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe10-Sep-08 11:02
Steven A. Lowe10-Sep-08 11:02 
GeneralRe: variable names - who cares!? Pin
BillW3310-Sep-08 14:12
professionalBillW3310-Sep-08 14:12 
GeneralRe: variable names - who cares!? Pin
Vasudevan Deepak Kumar28-Aug-08 8:17
Vasudevan Deepak Kumar28-Aug-08 8:17 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe28-Aug-08 8:26
Steven A. Lowe28-Aug-08 8:26 
GeneralRe: variable names - who cares!? Pin
BiscuitTheCat28-Aug-08 8:24
BiscuitTheCat28-Aug-08 8:24 
JokeRe: variable names - who cares!? Pin
leonej_dt18-Sep-08 22:24
leonej_dt18-Sep-08 22:24 
GeneralUpdate 12.03B: There are no longer 16 ounces in a Pound Pin
Netblue22-Aug-08 8:45
Netblue22-Aug-08 8:45 
I am refactoring a project that has basic unit conversion stored in a sql database along with everything else. Each time a business object gets loaded from the database, a separate call to the database is made to get the 3 units that belong to the business object.

When is the last time any of these natural conversion has changed? Are they suddenly going to change the amount of milligrams in a gram, or pounds in a ton?

If there were any conversions that were irregular like grams in a case or something like that, I understand, but for the natural conversions? The worst part is this database is almost always called over a VPN connection, so bandwidth is critical. The previous programmer could have at least cached the data on the client side or something...
GeneralAren't troy pounds a wonderful thing. Pin
Dan Neely22-Aug-08 9:29
Dan Neely22-Aug-08 9:29 
GeneralRe: Aren't troy pounds a wonderful thing. Pin
Netblue22-Aug-08 10:14
Netblue22-Aug-08 10:14 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Adam Maras22-Aug-08 9:29
Adam Maras22-Aug-08 9:29 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Brent Lamborn22-Aug-08 10:44
Brent Lamborn22-Aug-08 10:44 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Netblue22-Aug-08 10:53
Netblue22-Aug-08 10:53 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
leonej_dt18-Sep-08 22:27
leonej_dt18-Sep-08 22:27 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
PIEBALDconsult22-Aug-08 11:37
mvePIEBALDconsult22-Aug-08 11:37 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Netblue25-Aug-08 3:25
Netblue25-Aug-08 3:25 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
PIEBALDconsult26-Aug-08 3:30
mvePIEBALDconsult26-Aug-08 3:30 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Paul Conrad22-Aug-08 18:06
professionalPaul Conrad22-Aug-08 18:06 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Netblue23-Aug-08 3:31
Netblue23-Aug-08 3:31 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Paul Conrad23-Aug-08 7:37
professionalPaul Conrad23-Aug-08 7:37 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
Chris Maunder25-Aug-08 5:22
cofounderChris Maunder25-Aug-08 5:22 
GeneralRe: Update 12.03B: There are no longer 16 ounces in a Pound Pin
CDP180228-Aug-08 4:22
CDP180228-Aug-08 4:22 
GeneralFinding a record by its primary key Pin
Chris Quinn21-Aug-08 5:47
Chris Quinn21-Aug-08 5:47 
GeneralRe: Finding a record by its primary key Pin
MidwestLimey21-Aug-08 7:58
professionalMidwestLimey21-Aug-08 7:58 
GeneralRe: Finding a record by its primary key Pin
leppie21-Aug-08 8:01
leppie21-Aug-08 8:01 

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.