Slashdot Mirror


Best Programming Practices For Web Developers

An anonymous reader writes "Web pages have become a major functional component of the daily lives of millions of people. Web developers are in a position to make that part of everyone's lives better. Why not try using traditional computer programming and best practices of software engineering?"

2 of 210 comments (clear)

  1. Re:More than one side to this one... by Isofarro · · Score: 5, Informative

    Then there's Digg; Digg's pages are such a load on the visitor's CPU that I have to click "script not responding, continue?" three times on a page with 800 or so comments with Firefox and a dual-core 2 GHz CPU just to get the page to completely render.

    Sounds like Digg is attaching events to every show/hide link instead of using event delegation and using only one event listener. Browsers can't really handle hundreds of attached event listeners, it is a known performance issue.

    Now using event delegation instead of attaching hundreds of events should definitely be in a set of web development best practices.

  2. Re:More than one side to this one... by tajmahall · · Score: 5, Informative

    Actually when /. articles have 700 comments or so I need to answer the "script not responding" error message several times.