Click here to Skip to main content
15,881,757 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: N-Tier architecture Pin
Nitin20TechBLR15-Mar-12 18:26
Nitin20TechBLR15-Mar-12 18:26 
GeneralMicrosoft "help" Pin
Alan Balkany7-Mar-12 8:28
Alan Balkany7-Mar-12 8:28 
GeneralRe: Microsoft "help" Pin
Stefan_Lang8-Mar-12 3:41
Stefan_Lang8-Mar-12 3:41 
GeneralRe: Microsoft "help" Pin
cruest13-Mar-12 3:23
cruest13-Mar-12 3:23 
GeneralRe: Microsoft "help" Pin
SASS_Shooter1-May-12 6:14
SASS_Shooter1-May-12 6:14 
GeneralRe: Microsoft "help" Pin
Nelek10-Mar-12 15:18
protectorNelek10-Mar-12 15:18 
GeneralRe: Microsoft "help" Pin
Gary Wheeler13-Mar-12 0:35
Gary Wheeler13-Mar-12 0:35 
GeneralRe: Microsoft "help" Pin
BrainiacV13-Mar-12 4:26
BrainiacV13-Mar-12 4:26 
My "favorite" Smile | :) was the documentation for encryption. I was charged with programming the AES 256 encryption of credit card numbers. I don't have the exact code handy but the MS example was virtually this...
C#
Create Key //storing key is beyond the scope of this document
Create Salt //storing salt is beyond the scope of this document
String = "Test" //assign string to encrypt
Encrypt String //string is now encrypted
//storing encrypted string is beyond the scope of this document
Decrypt String
//Decryption works!!

If I hadn't already created an encryption plugin for SQL Server 2000 by ripping the AES guts out of TrueCrypt and encapsulating it in a C++ wrapper, I would have been totally lost.
Psychosis at 10
Film at 11

Those who do not remember the past, are doomed to repeat it.
Those who do not remember the past, cannot build upon it.

GeneralRe: Microsoft "help" Pin
Fabio Franco13-Mar-12 6:42
professionalFabio Franco13-Mar-12 6:42 
GeneralRe: Microsoft "help" Pin
Nunnenkamp13-Mar-12 8:56
Nunnenkamp13-Mar-12 8:56 
GeneralRe: Microsoft "help" Pin
KP Lee13-Mar-12 12:01
KP Lee13-Mar-12 12:01 
GeneralRe: Microsoft "help" Pin
Jwalant Natvarlal Soneji13-Mar-12 18:03
Jwalant Natvarlal Soneji13-Mar-12 18:03 
GeneralRe: Microsoft "help" Pin
Reelix14-Mar-12 1:14
Reelix14-Mar-12 1:14 
GeneralRe: Microsoft "help" Pin
Lutosław15-Mar-12 11:49
Lutosław15-Mar-12 11:49 
GeneralUnsafe locking Pin
Member 20530061-Mar-12 5:02
Member 20530061-Mar-12 5:02 
GeneralRe: Unsafe locking Pin
PIEBALDconsult1-Mar-12 6:00
mvePIEBALDconsult1-Mar-12 6:00 
GeneralRe: Unsafe locking Pin
Robert Rohde1-Mar-12 9:36
Robert Rohde1-Mar-12 9:36 
GeneralRe: Unsafe locking Pin
CDP18026-Mar-12 20:48
CDP18026-Mar-12 20:48 
GeneralRe: Unsafe locking PinPopular
CDP18026-Mar-12 21:08
CDP18026-Mar-12 21:08 
GeneralMy vote of 5 Pin
Julien Villers7-Mar-12 0:05
professionalJulien Villers7-Mar-12 0:05 
GeneralRe: My vote of 5 Pin
greldak12-Mar-12 23:42
greldak12-Mar-12 23:42 
GeneralThousands of links using... Pin
krumia29-Feb-12 23:51
krumia29-Feb-12 23:51 
JokeRe: Thousands of links using... PinPopular
ZurdoDev1-Mar-12 5:58
professionalZurdoDev1-Mar-12 5:58 
GeneralRe: Thousands of links using... Pin
RobCroll2-Mar-12 12:53
RobCroll2-Mar-12 12:53 
GeneralRe: Thousands of links using... Pin
krumia4-Mar-12 16:35
krumia4-Mar-12 16:35 

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.