Click here to Skip to main content
15,907,687 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: Immutables and indexers and finalizers, oh my! Pin
Nagy Vilmos24-Oct-11 22:24
professionalNagy Vilmos24-Oct-11 22:24 
GeneralRe: Immutables and indexers and finalizers, oh my! Pin
Member 205300624-Oct-11 22:49
Member 205300624-Oct-11 22:49 
GeneralRe: Immutables and indexers and finalizers, oh my! Pin
Nagy Vilmos24-Oct-11 23:21
professionalNagy Vilmos24-Oct-11 23:21 
GeneralRe: Immutables and indexers and finalizers, oh my! Pin
Freak3028-Oct-11 1:30
Freak3028-Oct-11 1:30 
GeneralRe: Immutables and indexers and finalizers, oh my! Pin
BobJanova25-Oct-11 23:21
BobJanova25-Oct-11 23:21 
GeneralRe: Immutables and indexers and finalizers, oh my! Pin
Member 205300626-Oct-11 1:53
Member 205300626-Oct-11 1:53 
GeneralRe: Immutables and indexers and finalizers, oh my! Pin
BobJanova28-Oct-11 0:15
BobJanova28-Oct-11 0:15 
GeneralWe need more keys! Pin
Sander Rossel19-Oct-11 7:21
professionalSander Rossel19-Oct-11 7:21 
I just came across an SQL table with 10 columns of which 7 formed the Primary Key... WTF | :WTF:
No further indexing/unique contraints applied. No Foreign Key Relationships (at all) where they were very obviously necessary. Redundant information that was already stored in the table that this table should have related too (and almost inevitably were part of the PK)... This was just a small table that held some additional information on invoices (the table which it should have related to) Sigh | :sigh:

Appearently this is how the table was described in the specifications of the customer... Well, I've got news for them! We don't work that way! A shame this table came to be at all... Cry | :((
What has been seen can't be unseen. I will undoubtedly have some nightmares about this Frown | :(

Edit:
To give a small indication of how bad things really are, one of the PK columns was a varchar(50) Dead | X|
It's an OO world.
C#
public class Naerling : Lazy<Person>{}

GeneralRe: We need more keys! Pin
fjdiewornncalwe19-Oct-11 7:30
professionalfjdiewornncalwe19-Oct-11 7:30 
GeneralRe: We need more keys! PinPopular
Sander Rossel19-Oct-11 7:45
professionalSander Rossel19-Oct-11 7:45 
GeneralRe: We need more keys! Pin
fjdiewornncalwe19-Oct-11 8:47
professionalfjdiewornncalwe19-Oct-11 8:47 
GeneralRe: We need more keys! Pin
Sander Rossel19-Oct-11 10:04
professionalSander Rossel19-Oct-11 10:04 
GeneralRe: We need more keys! Pin
BobJanova19-Oct-11 23:44
BobJanova19-Oct-11 23:44 
GeneralRe: We need more keys! Pin
Sander Rossel20-Oct-11 8:22
professionalSander Rossel20-Oct-11 8:22 
GeneralRe: We need more keys! Pin
fjdiewornncalwe20-Oct-11 9:33
professionalfjdiewornncalwe20-Oct-11 9:33 
GeneralRe: We need more keys! Pin
Hermanito7226-Oct-11 5:47
Hermanito7226-Oct-11 5:47 
GeneralRe: We need more keys! Pin
Paul Conrad20-Oct-11 7:51
professionalPaul Conrad20-Oct-11 7:51 
GeneralRe: We need more keys! Pin
Sander Rossel20-Oct-11 8:25
professionalSander Rossel20-Oct-11 8:25 
GeneralRe: We need more keys! Pin
prasun.r7-Dec-11 2:21
prasun.r7-Dec-11 2:21 
JokeRe: We need more keys! Pin
Super Lloyd22-Oct-11 0:52
Super Lloyd22-Oct-11 0:52 
GeneralDouble salvo function Pin
red_moon17-Oct-11 18:20
red_moon17-Oct-11 18:20 
GeneralRe: Double salvo function Pin
Bernhard Hiller17-Oct-11 22:46
Bernhard Hiller17-Oct-11 22:46 
GeneralRe: Double salvo function Pin
red_moon17-Oct-11 23:30
red_moon17-Oct-11 23:30 
GeneralRe: Double salvo function Pin
BobJanova17-Oct-11 23:13
BobJanova17-Oct-11 23:13 
GeneralRe: Double salvo function Pin
ekolis18-Oct-11 10:57
ekolis18-Oct-11 10:57 

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.