View Single Post
Old 07-01-2008, 01:16 AM  
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
#1 - I don't necessarily agree with that. In this day and age, adding script to a page does not mean it has to be .php. In fact, some hosts already have .html set to effectively be php pages. IMO "scripts" should be .php.. Sites themselves should be .html even if they're basically generated via scripts. Directory type sites could be php, but nowadays everyone is using mod_rewrite so that the underlying code can be php but what the surfer sees is .html.
This is true, however .html is often output from a dynamic system as a cached version so you would be firing up the php interpreter needlessly, increasing server overhead and slowing down the site if it had a lot of traffic. If you look at the Ruby on Rails .htaccess you will see that if it's .html or .jpg or some other static file it serves it up instantly (especially useful if you use a fast http server like nginx) and if it's not then it runs it through it's routing rules and does the dynamic part.

Quote:
#3, having the domain in urls on the page has some benifits. The coder should have an initialization module that gets called for every page that sets a variable to something like "baseurl".. Then all the links on the page can insert that variable. A good coder will be able to swap out hardcoded domains within a few minutes to an hour depending on the qty.
I use baseurl in my code, problem is you need to substitute what you are given and add it. Problem is you have to change it. If it was done right, there wouldn't be a need to change anything at all.

Quote:
But overall it's a decent list. #6 is so common it's scary.. Always see that with real noobs. The other thing I really hate is all the files, images etc. that gets put on sites that are no longer used and no one purges them.. Takes a long time to figure out whether they're really required or not.
I've seen it here and there, surprising that you say it's common. Definitely scary then.

Yes, purging old stuff is definitely nice. Nothing like taking 8 hours to download a site when in reality it should only take 20 minutes if you delete all the old crap that nobody knows what it is and that's not doing anything. lol
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote