RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Opinions? javascript/php/etc and programming standards

Join Date: Jan 2007
Posts: 2,640
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 118
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Opinions? javascript/php/etc and programming standards

  #32  
Apr 26th, 2007
My thoughts:

- How much whitespace you use depends on how much content you want, vs how much you have to pay for server memory and download bandwidth.

- I use only one space for each indent in tight memory situations. But I use a monospace editor font.

- I have only one level of indentation for each table:

<table><tr>
  <td>contents</td>
  <td>contents</td>
  <td>contents</td>
</tr><tr>
  <td>contents</td>
  <td>contents</td>
  <td>contents</td>
</tr></table>

- I base my decision of whether to use tables or divs to format the page by how I want the page to fail it the browser window is too small:

-- When div is used with Mozilla, it overlaps the elements (especially images) on the screen when the browser window is too narrow.
-- When div is used with IE, it collapses the horizontally spaced elements into a vertical column when the browser window is too narrow.
-- When tables are used with either Mozilla or IE, a horizontal slide bar appears at the bottom of the screen, and the display is wider than than the window.

- I totally can't stand the variable name standards which originated with c (probably because I think C is one of the third worst programming language). I string together enough characters to do the job, e.g. digindx for digit index.

- I usually choose code to reflect the mix of browsers I expect to be using it, but I also realize that if I use deprecated code, I will have a big job to do later.
Last edited by MidiMagic : Apr 26th, 2007 at 3:24 am.
Daylight-saving time uses more gasoline
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:42 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC