Click here to Skip to main content
12,631,923 members (29,238 online)

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: .NET is Hell (subtitle: An error message from Microsoft) Pin
Richard Deeming15-Oct-12 4:57
memberRichard Deeming15-Oct-12 4:57 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Thornik11-Oct-12 2:27
memberThornik11-Oct-12 2:27 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Stefan_Lang15-Oct-12 5:49
memberStefan_Lang15-Oct-12 5:49 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Thornik16-Oct-12 4:20
memberThornik16-Oct-12 4:20 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
alexander ypema11-Oct-12 4:06
memberalexander ypema11-Oct-12 4:06 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Brendon123413-Oct-12 20:09
memberBrendon123413-Oct-12 20:09 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Stefan_Lang15-Oct-12 5:53
memberStefan_Lang15-Oct-12 5:53 
GeneralInfinate levels of hierarchal data Pin
asdrog3-Oct-12 2:30
memberasdrog3-Oct-12 2:30 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
mark merrens3-Oct-12 6:22
membermark merrens3-Oct-12 6:22 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
asdrog3-Oct-12 7:30
memberasdrog3-Oct-12 7:30 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
mark merrens3-Oct-12 7:43
membermark merrens3-Oct-12 7:43 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
AspDotNetDev3-Oct-12 7:45
protectorAspDotNetDev3-Oct-12 7:45 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
mark merrens3-Oct-12 8:02
membermark merrens3-Oct-12 8:02 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
asdrog3-Oct-12 14:21
memberasdrog3-Oct-12 14:21 
The illustrated structure is not the normal approach to db design and not tought to everyone, It wasn't in my day. But is now given in some hard back publications, for the intermediate skilled person, as an example of how to use a database to run the .net menu control.

Some folk prefer to code XML files to run the .net menu controls, but others prefer a database. Thus allowing one to standardise on using datbases for everything rather than a mix of db and xml on a website.Thumbs Up | :thumbsup:

The structure is also great for managing lists as one does not need one table for the list name and one for the list items, less overheadThumbs Up | :thumbsup:
For example it is great for the storage of dropdown list values as one can basically use the same sql for all dropdown controls - just passing a different 'ParentID' to get a different data set for the control.
This simplifies life in some areas when buildiong a N-Tier Application -
Select field1, field2 From table Where ParentID = @ParentID
is all you would ever need to code against/use to retrieve any list!Thumbs Up | :thumbsup:

It all boils down to preference, what you need to do and how you have been tought!
The structure is not for everyone and everyone should always use what they are happiest using.
Happy coding Smile | :)
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
Sentenryu4-Oct-12 1:50
memberSentenryu4-Oct-12 1:50 
GeneralRe: Infinate levels of hierarchal data Pin
Bernhard Hiller4-Oct-12 1:28
memberBernhard Hiller4-Oct-12 1:28 
GeneralRe: Infinate levels of hierarchal data Pin
asdrog4-Oct-12 12:35
memberasdrog4-Oct-12 12:35 
GeneralRe: Infinate levels of hierarchal data Pin
AspDotNetDev4-Oct-12 13:24
protectorAspDotNetDev4-Oct-12 13:24 
GeneralRe: Infinate levels of hierarchal data Pin
asdrog4-Oct-12 14:20
memberasdrog4-Oct-12 14:20 
GeneralCSS selector of the day Pin
Chris Maunder2-Oct-12 9:41
adminChris Maunder2-Oct-12 9:41 
GeneralRe: CSS selector of the day Pin
Zac Greve2-Oct-12 10:32
memberZac Greve2-Oct-12 10:32 
GeneralRe: CSS selector of the day Pin
Mike Ortmans2-Oct-12 23:38
memberMike Ortmans2-Oct-12 23:38 
GeneralRe: CSS selector of the day Pin
BobJanova3-Oct-12 0:31
memberBobJanova3-Oct-12 0:31 
GeneralRe: CSS selector of the day Pin
Chris Maunder3-Oct-12 5:19
adminChris Maunder3-Oct-12 5:19 
JokeRe: CSS selector of the day Pin
Marcus Kramer3-Oct-12 5:23
memberMarcus Kramer3-Oct-12 5:23 
GeneralRe: CSS selector of the day Pin
Sentenryu3-Oct-12 2:11
memberSentenryu3-Oct-12 2:11 
GeneralRe: CSS selector of the day Pin
Yvan Rodrigues3-Oct-12 4:55
memberYvan Rodrigues3-Oct-12 4:55 
GeneralRe: CSS selector of the day Pin
jayson lorenzen3-Oct-12 6:03
memberjayson lorenzen3-Oct-12 6:03 
GeneralRe: CSS selector of the day Pin
César de Souza3-Oct-12 6:13
memberCésar de Souza3-Oct-12 6:13 
GeneralRe: CSS selector of the day Pin
Chris Maunder3-Oct-12 9:20
adminChris Maunder3-Oct-12 9:20 
GeneralRe: CSS selector of the day Pin
jsc4211-Oct-12 1:43
memberjsc4211-Oct-12 1:43 
GeneralRe: CSS selector of the day Pin
Chris Maunder11-Oct-12 5:34
adminChris Maunder11-Oct-12 5:34 
GeneralCoded insults Pin
dojohansen28-Sep-12 5:14
memberdojohansen28-Sep-12 5:14 
GeneralRe: Coded insults Pin
Mike Winiberg30-Sep-12 21:29
memberMike Winiberg30-Sep-12 21:29 
AnswerRe: Coded insults Pin
Mark Springsteen30-Sep-12 22:07
memberMark Springsteen30-Sep-12 22:07 
GeneralRe: Coded insults Pin
Mike Winiberg30-Sep-12 22:16
memberMike Winiberg30-Sep-12 22:16 
GeneralRe: Coded insults Pin
Eddy Vluggen3-Oct-12 3:33
memberEddy Vluggen3-Oct-12 3:33 
GeneralRe: Coded insults Pin
Marco Bertschi10-Oct-12 3:09
memberMarco Bertschi10-Oct-12 3:09 
GeneralRe: Coded insults Pin
krubach21-Oct-12 1:42
memberkrubach21-Oct-12 1:42 
GeneralRe: Coded insults Pin
Bob10003-Oct-12 6:56
memberBob10003-Oct-12 6:56 
GeneralRe: Coded insults Pin
JohnLBevan30-Sep-12 23:46
memberJohnLBevan30-Sep-12 23:46 
GeneralRe: Coded insults Pin
Timothy J Sygitowicz1-Oct-12 6:10
memberTimothy J Sygitowicz1-Oct-12 6:10 
GeneralRe: Coded insults Pin
VallarasuS1-Oct-12 6:55
memberVallarasuS1-Oct-12 6:55 
GeneralRe: Coded insults Pin
patbob1-Oct-12 6:27
memberpatbob1-Oct-12 6:27 
GeneralRe: Coded insults Pin
BobJanova1-Oct-12 7:06
memberBobJanova1-Oct-12 7:06 
GeneralRe: Coded insults Pin
erzengel.des.lichtes1-Oct-12 7:58
membererzengel.des.lichtes1-Oct-12 7:58 
GeneralRe: Coded insults Pin
BobJanova2-Oct-12 1:02
memberBobJanova2-Oct-12 1:02 
GeneralRe: Coded insults Pin
Stefan_Lang2-Oct-12 5:30
memberStefan_Lang2-Oct-12 5:30 
GeneralRe: Coded insults Pin
emajyn1-Oct-12 7:25
memberemajyn1-Oct-12 7:25 
GeneralRe: Coded insults Pin
patbob1-Oct-12 8:02
memberpatbob1-Oct-12 8:02 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 8 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid