5 JavaScript Tips
to make your code better

Khang Nguyen - khang@cogini.com
http://nguyenkhangrmit.blogspot.com/
http://twitter.com/khangnamnguyen

Rendering Readable HTML

Modify the DOM, with care

Event delegation

<table id="myTable">
    <tr>
        <td> Box 1 </td>
        <!--  censored -->
        <td class="classA"> Box 10 </td>
    </tr>
    <!--  censored -->
    <tr>
        <td> Box 90 </td>
        <!--  censored -->
        <td> Box 100 </td>
    </tr>
</table>
            

jQuery Kool-Aid

Be careful with jQuery
(or why shouldn't one drink too much kool-aid)

Do your homework, learn you some design patterns

Thank you!