From: Justin F. <je...@ey...> - 2001-07-08 03:00:24
|
alex black wrote: [== snip, snip ==] > > Yes, I do respect Alex's "law" that he wants globals to be held to > > a minimum. What is the sweet compromise here???? > > Try and put your data in a class var in the module that gets the stuff from > mysql, then have your other module(s) get that class var. > > The reason I mentioned the naming thing above is because we instantiate > modules inside Page->modules[position_in_load_order] - so you'd be using the > load order which is page specific (i.e. that won't work well at all) > > I can see potentially wanting to add the "unique name" concept to > $bc_page['modules']['group'][x] because you might want to have the ability > to address modules individually (even if there are multiple instances of a > module on a page. > > That last thing needs quite a bit of thoght, because it can cause problems: > -unnecessary amount of work if you don't need to address modules > individually > -could potentially be easier to just assume that the import path is the > unique name and reference the module that way (though this has other > problems) > -egh, need to think about that one. [=======================] This is true, it is something else that I have "wondered" about, namely I already "use" multiple loads of the same module, even if it is a place holder called Blank.php. I wondered if name mapping was possible, but I am always asking... I really find programming with BC a, er, what, paradigm change in thinking. The nice problem with BC is, you are smothered with a plethora of riches, you can do things in several different ways, but you wish to retain generality, and all that good stuff. It is taking me some time to "feel" how to adjust things like module granularity, module functionality. Like do you create "thin" lookup tables, do you break out that huge data structure previously referred to as a module in itself, ad infinitum. But, it is fun. BC is a cafeteria with 52 kinds of cheesecake... I hope we discover as early as possible what we really "need". This does not imply that BC is bloated, on the contrary. Again, good job, Alex. _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |