Your SlideShare is downloading. ×
 Js bad_
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Js bad_

367
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
367
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. *.js === bad ? read_on : browse_the_web;
  • 2. Rob Robbins www.robrobbins.infowww.github.com/robrobbinswww.twitter.com/robrobbins www.jsmag.com (xdisc20) ws. os, and bs oh my!
  • 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. 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. 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. 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. 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. N00b vs Pirate vs NinjaN00b What is OO?Pirate Explain JavaScripts inheritance modelNinja Implement psuedo-classical, prototypal, and functional inheritance
  • 9. Intrinsic FTW!Encapsulation WinDRY WinSeparation of Concerns WinMagical Powers Win