while42 meetup
JavaScript Sucks
How we deal with it
About Me
• Kyle Powers
About Me
• Kyle Powers
• Enterprise Cloud Meteorologist
About Me
• Kyle Powers
• Enterprise Cloud Meteorologist
• Also work on javascript 99% of my time
About Me
• Kyle Powers
• Enterprise Cloud Meteorologist
• Also work on javascript 99% of my time
• I like Sublime Text
JavaScript Quiz
Based on Gary Bernhardt’s “Wat” talk
WAT
WAT
WAT
WAT
WAT
WAT
End Quiz
• So how do we deal with this stuff?
How do we deal with this stuff
• Education
How do we deal with this stuff
• Education
• Testing
How do we deal with this stuff
• Education
• Testing
• Chrome developer console
Other bad things about JS
• Leaving off the “var” keyword makes a
variable global.
How we solve it
• When referencing a global variable “foo”, we
specify “window.foo” to make it clear that it’s
global
Other bad things about JS
• Callback hell
How we solve it
• Refactor – name functions outside of the
scope
• Keep functions shallow – usually no more than
2 levels ...
"Write small modules that each do
one thing, and assemble them into
other modules that do a bigger
thing. You can't get in...
Other useful tools
• type-check.js
• http://gkz.github.io/type-check/
If all else fails, blame it on IE6
Thanks
p.s. we’re hiring
kyle@clearslide.com
@mfkp
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
Upcoming SlideShare
Loading in …5
×

Javascript sucks & frontend challenges @ClearSlide | while42 SF #7

1,213 views

Published on

Presentation by Kyle Powers(@mfkp)‎ & Tyler Davis(@TylerMDavis) for while42 SF #7 hosted by ClearSlide

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,213
On SlideShare
0
From Embeds
0
Number of Embeds
17
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Javascript sucks & frontend challenges @ClearSlide | while42 SF #7

  1. 1. while42 meetup
  2. 2. JavaScript Sucks How we deal with it
  3. 3. About Me • Kyle Powers
  4. 4. About Me • Kyle Powers • Enterprise Cloud Meteorologist
  5. 5. About Me • Kyle Powers • Enterprise Cloud Meteorologist • Also work on javascript 99% of my time
  6. 6. About Me • Kyle Powers • Enterprise Cloud Meteorologist • Also work on javascript 99% of my time • I like Sublime Text
  7. 7. JavaScript Quiz Based on Gary Bernhardt’s “Wat” talk
  8. 8. WAT
  9. 9. WAT
  10. 10. WAT
  11. 11. WAT
  12. 12. WAT
  13. 13. WAT
  14. 14. End Quiz • So how do we deal with this stuff?
  15. 15. How do we deal with this stuff • Education
  16. 16. How do we deal with this stuff • Education • Testing
  17. 17. How do we deal with this stuff • Education • Testing • Chrome developer console
  18. 18. Other bad things about JS • Leaving off the “var” keyword makes a variable global.
  19. 19. How we solve it • When referencing a global variable “foo”, we specify “window.foo” to make it clear that it’s global
  20. 20. Other bad things about JS • Callback hell
  21. 21. How we solve it • Refactor – name functions outside of the scope • Keep functions shallow – usually no more than 2 levels deep • Use the module pattern
  22. 22. "Write small modules that each do one thing, and assemble them into other modules that do a bigger thing. You can't get into callback hell if you don't go there.” -Isaac Schlueter
  23. 23. Other useful tools • type-check.js • http://gkz.github.io/type-check/
  24. 24. If all else fails, blame it on IE6
  25. 25. Thanks p.s. we’re hiring kyle@clearslide.com @mfkp

×