1 / 7

JavaScript is Awesome!

JavaScript is Awesome!. Also… it’s kinda strange and generally very scary. The WAT talk. [] + [] = "“ [] + {} = [object Object ] {} + [] = 0 {} + {} = NaN Array(16).join(" wat " - 1) + " Batman !“ = NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!. The highlights. WAT.

vidal
Download Presentation

JavaScript is Awesome!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JavaScript is Awesome! Also… it’s kinda strange and generally very scary

  2. The WAT talk • [] + [] = "“ • [] + {} = [object Object] • {} + [] = 0 • {} + {} = NaN • Array(16).join("wat" - 1) + " Batman!“ = • NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman! The highlights

  3. WAT

  4. Ok… so JavaScript is a little strange • Then I found this talk: Stop Using Native HTML5! by Kyle Simpson (search it on YouTube) • Here are the good parts

  5. Facades • Wrap native HTML5 APIs in a light Facade • Example-driven development • WRAP ALL THE THINGS! • H5ive on GitHub

  6. But then it got me thinking… What else could we wrap?

  7. Wrap everything • jQuery Ajax • Wrap a server accessor around ajax • Workspeed created a Ajax Queue Manager that does exactly this • Make a better wrapper around browser storage • Workspeed made a wrapper called Adirondack • Like this? storage.save({key: value}, somefunctioncallback) • Use example-driven development • How do you want to write code? • Write it that way and then back-fill a Facade wrapper

More Related