Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What the JavaScript?

What the JavaScript?

You've heard years of complaints about JavaScript and how many WTFs it has. It's certainly popular to be in the "I use JS but it's a crazy language" camp. But is it really riddled with bad design?

There are definitely some legitimate WTFs, but they're most likely not the things you think. We're going to meander through of bunch of the weird corners of the language -- not the usual suspects -- and then look FORWARD to the new WTFs that ES6 (or ES2015 or whatever) has in store for us.

If you're looking for the "bad parts" to avoid, ditch everything you've heard before and "let" these dance in your nightmares.

Kyle Simpson

February 12, 2015
Tweet

More Decks by Kyle Simpson

Other Decks in Programming

Transcript

  1. what
    the...
    JavaScript?
    kyle simpson
    http://getify.me
    @getify
    http://www.waxoil.com/art/alternative/strange-art-leaf.gif

    View full-size slide

  2. defend, hate

    View full-size slide

  3. wtf:
    not just funny

    View full-size slide

  4. wtf:
    not a bug, not just ugly

    View full-size slide

  5. wtf:
    not cross browser quirks

    View full-size slide

  6. wtf:
    inconsistent, incoherent,
    unreasonable

    View full-size slide

  7. TC39: great!

    View full-size slide

  8. JavaScript: great...
    and getting better!

    View full-size slide

  9. most wtfs...not

    View full-size slide

  10. moar coercion

    View full-size slide

  11. switch default break

    View full-size slide

  12. tdz: temporal dead zone

    View full-size slide

  13. object destructuring

    View full-size slide

  14. default param values

    View full-size slide

  15. I'm being generous --> not wtf

    View full-size slide

  16. I'm being generous --> not wtf

    View full-size slide

  17. haters gonna hate
    still gonna JavaScript

    View full-size slide

  18. always bet on
    JavaScript
    ...and its wtfs

    View full-size slide

  19. thanks!
    kyle simpson
    http://getify.me
    @getify

    View full-size slide