Click here to Skip to main content
15,887,135 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: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
asdrog3-Oct-12 6:30
asdrog3-Oct-12 6:30 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
R. Giskard Reventlov3-Oct-12 6:43
R. Giskard Reventlov3-Oct-12 6:43 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
AspDotNetDev3-Oct-12 6:45
protectorAspDotNetDev3-Oct-12 6:45 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
R. Giskard Reventlov3-Oct-12 7:02
R. Giskard Reventlov3-Oct-12 7:02 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
asdrog3-Oct-12 13:21
asdrog3-Oct-12 13:21 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
Sentenryu4-Oct-12 0:50
Sentenryu4-Oct-12 0:50 
GeneralRe: Infinate levels of hierarchal data Pin
Bernhard Hiller4-Oct-12 0:28
Bernhard Hiller4-Oct-12 0:28 
GeneralRe: Infinate levels of hierarchal data Pin
asdrog4-Oct-12 11:35
asdrog4-Oct-12 11:35 
Thenks for the feedback

In many instances hierarchical is totally not worth looking at and can be a nightmare to manage, but there is a place for it, and when used with an interface to meet a functionality requirement it can be a great advantage.

Expearience has shown that hierarchical data in a single table can be very effective when the user interface mimics that of a file management system to manage the data and you proved breadcumb navigation to go back a level or two.

In short - hierarchical data to more than a few levels is not for the faint hearted and even then you realy need to be sure that you understand what you are getting yourself into. (be prepared for developing some prity elaborate loops and/or non pimple coding)

Sitting on my bookshelf are numerious intermediate level books that show how to use hierarchical data to power .net sitemap and menu controls from a database rather than xml files.

So whilst programming languages like MUMPS have dissapeared there is still a requirement for the strategic use of hierarchical data. The key word being STRATEGIC.

For those who want to investigate things further #IHierarchicalDataSource Interface# can be found at http://msdn.microsoft.com/en-us/library/d3ef7363(v=vs.90).aspx ####
ASP.net 3.5 Unleashed by Stephen Walther Chapter 19 gives a blow by blow example with sample code for binding a menu control directly to the database - a Hierarchical table.

Happy coding Smile | :)
GeneralRe: Infinate levels of hierarchal data Pin
AspDotNetDev4-Oct-12 12:24
protectorAspDotNetDev4-Oct-12 12:24 
GeneralRe: Infinate levels of hierarchal data Pin
asdrog4-Oct-12 13:20
asdrog4-Oct-12 13:20 
GeneralCSS selector of the day PinPopular
Chris Maunder2-Oct-12 8:41
cofounderChris Maunder2-Oct-12 8:41 
GeneralRe: CSS selector of the day Pin
Brisingr Aerowing2-Oct-12 9:32
professionalBrisingr Aerowing2-Oct-12 9:32 
GeneralRe: CSS selector of the day Pin
Mike Ortmans2-Oct-12 22:38
Mike Ortmans2-Oct-12 22:38 
GeneralRe: CSS selector of the day Pin
BobJanova2-Oct-12 23:31
BobJanova2-Oct-12 23:31 
GeneralRe: CSS selector of the day Pin
Chris Maunder3-Oct-12 4:19
cofounderChris Maunder3-Oct-12 4:19 
JokeRe: CSS selector of the day Pin
fjdiewornncalwe3-Oct-12 4:23
professionalfjdiewornncalwe3-Oct-12 4:23 
GeneralRe: CSS selector of the day Pin
Sentenryu3-Oct-12 1:11
Sentenryu3-Oct-12 1:11 
GeneralRe: CSS selector of the day Pin
Yvan Rodrigues3-Oct-12 3:55
professionalYvan Rodrigues3-Oct-12 3:55 
GeneralRe: CSS selector of the day Pin
jayson lorenzen3-Oct-12 5:03
jayson lorenzen3-Oct-12 5:03 
GeneralRe: CSS selector of the day Pin
César de Souza3-Oct-12 5:13
professionalCésar de Souza3-Oct-12 5:13 
GeneralRe: CSS selector of the day Pin
Chris Maunder3-Oct-12 8:20
cofounderChris Maunder3-Oct-12 8:20 
GeneralRe: CSS selector of the day Pin
jsc4211-Oct-12 0:43
professionaljsc4211-Oct-12 0:43 
GeneralRe: CSS selector of the day Pin
Chris Maunder11-Oct-12 4:34
cofounderChris Maunder11-Oct-12 4:34 
GeneralCoded insults PinPopular
dojohansen28-Sep-12 4:14
dojohansen28-Sep-12 4:14 
GeneralRe: Coded insults PinPopular
Mike Winiberg30-Sep-12 20:29
professionalMike Winiberg30-Sep-12 20:29 

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.