|
|
Choosing A Webhost: |
Re: How many page scripts do we need?: msg#00029cms.phpslash.devel
Hey, Still thinking about this... nathan r. hruby wrote: I don't understand why this needs to be an object. It'll get used I don't think URLs should stay in the templates because then changing GET variable names means having to change the templates and that seems like a breach of the design/logic barrier. I still think a class is the best way to allow different implementations of the URL, or just to have all in one place the functions which put it together. Perhaps global wrapper functions could be used for the most common url creation methods for coding ease. // Set the inital URL we want But if you want to add other GET variables conditionally, you'll have to manipulate $url['args']. What about removing a GET variable? Even uglier. It just naturally looks like members and methods to me. Easier to grok, less creation/teardown costs, etc.. (I've been working on Is the procedural model definitely faster than OO? We already use lots of classes. If we're reorganizing the whole project architecture then I think introducing new stuff is not a bad idea after all. --Matt -- ---------------------------------------------------------------- Matthew Leingang http://www.math.rutgers.edu/~leingang Rutgers University leingang-6qgHfRFg60h+CIkdHa1UOg@xxxxxxxxxxxxxxxx Department of Mathematics "This signature needs no quote." ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How many page scripts do we need?, nathan r. hruby |
|---|---|
| Next by Date: | Re: How many page scripts do we need?, nathan r. hruby |
| Previous by Thread: | Re: How many page scripts do we need?, nathan r. hruby |
| Next by Thread: | Re: How many page scripts do we need?, nathan r. hruby |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|