Welcome Guest, Not a member yet? Register   Sign In
Programming Challenge
#10

[eluser]seanloving[/eluser]
@sophistry- thanks for taking the time to clarify.

The key names in my $regions array are actually extracted from the (arbitrarily predefined) field names of a database table. The name of the table is the name of the template. The field names are the region names. Each table row is a unique page. The naming convention of the field names dictates the hierarchical structure. I can't name MySQL fields with YAML, although I could build a translation layer if it made sense.

I suppose the database I describe could be generated from the same YAML file that would presumably be used to generate the <div> hierarchy. Sounds like a good approach. The pro is that YAML is easy to read. The con is that you need to add one or two extra processing steps.

Anyway, yikes trying to write this recursively is tricky.

-SL


Messages In This Thread
Programming Challenge - by El Forum - 12-09-2009, 08:52 AM
Programming Challenge - by El Forum - 12-09-2009, 09:38 AM
Programming Challenge - by El Forum - 12-09-2009, 09:40 AM
Programming Challenge - by El Forum - 12-09-2009, 10:10 AM
Programming Challenge - by El Forum - 12-09-2009, 02:43 PM
Programming Challenge - by El Forum - 12-09-2009, 03:06 PM
Programming Challenge - by El Forum - 12-09-2009, 03:41 PM
Programming Challenge - by El Forum - 12-10-2009, 03:15 PM
Programming Challenge - by El Forum - 12-10-2009, 07:15 PM
Programming Challenge - by El Forum - 12-10-2009, 10:15 PM
Programming Challenge - by El Forum - 12-11-2009, 07:25 AM
Programming Challenge - by El Forum - 12-13-2009, 02:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB