edit-article
Home
Up
Delete
Article Name:
Article Description:
[00:00]VIDEO -Crockford discusses javascript programming styles @HTML Developer Conference 201?
Chapter ID/Name:
Status:
Write
Writing
Written
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">title</h1> <h2>[WHAT]</h2> <ol> <li><strong>] brackets always on the right</strong></li> <li> function(){</li> <li> </li> <li> function()</li> <li> {</li> <li> it's not necessarily a better style , its different, BUT an error in the JS language can cause problems with brackets on the left!!!</li> <li>***</li> <li><strong>] switch statements can fall through</strong></li> <li>- almost never happens but </li> <li>- example of when he was told about this, </li> <li>***</li> <li><strong>] a good style can help produce better programs</strong></li> <li>- style should NOT be about personal preference</li> <li>- style IS ABOUT communicating clearly</li> <li>- example of </li> <li>***</li> <li><strong>] programs must communicate clearly with people, not just the machine</strong></li> <li>- when other developers work on the same code OR</li> <li>- when you come back to the same code in 6 months ... </li> <li><strong>***</strong></li> <li><strong>] with statement = confusion</strong></li> <li>- useful, but seems it is always 'confusing', </li> <li>- confusion </li> <li>***</li> <li><strong>] transitivity === NOT ==</strong></li> </ol> <h2>[WHY]</h2> <ol> <li>] </li> </ol> <h2>[WHERE]</h2> <ol> <li>]</li> </ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>]</li> </ol> <h2>[HOW-TO]</h2> <ol> <li>]</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>] </li> </ol> <h1 style="text-align: center;"> </h1>