Js bad_

489 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
489
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Js bad_

  1. 1. *.js === bad ? read_on : browse_the_web;
  2. 2. Rob Robbins www.robrobbins.infowww.github.com/robrobbinswww.twitter.com/robrobbins www.jsmag.com (xdisc20) ws. os, and bs oh my!
  3. 3. Bullets for presenters who ramble: (re-reads synopsis)The global namespace. Or not?Closure? How many are googling now?OO? Where did your training go?-- next time --CS.I? O(n) is not a new text message shorthand!
  4. 4. N00b vs Pirate vs NinjaN00b What is the global? Whats in there already?Pirate What is a naming collision? How to best avoid them?Ninja Explain this form: (function() {} ())
  5. 5. The Global and youThis? Number 1 errorFunction soup? Examples EVERYWHEREFunction scope Versus block scopeCallbacks Often point to window, oopsSite hierarchy How do you spell hierarchy?Namespaces Can we use them?
  6. 6. N00b vs Pirate vs NinjaNoob What is a closure? Use a var referenced viaPirate closureNinja Create a function that, given an int, returns a functor which when called increments or decrements the original int
  7. 7. Now you see it. Now you do.Revealing module Yahoo, Douglas CrockfordThis = that; Handy scope referenceFUNCTOR Best. Word. Ever.call() and apply() Allow scope manipulation
  8. 8. N00b vs Pirate vs NinjaN00b What is OO?Pirate Explain JavaScripts inheritance modelNinja Implement psuedo-classical, prototypal, and functional inheritance
  9. 9. Intrinsic FTW!Encapsulation WinDRY WinSeparation of Concerns WinMagical Powers Win

×