• Saturday , 18 November 2017

Best of Fluent 2012: Maintainable JavaScript

Code Canyon



Video of Nicholas Zakas from his Fluent Conference 2012 Presentation

Maintainable JavaScript tackles the difficult problem of writing code as part of a large team. When you’re writing code that only you will change, there aren’t any issues. As soon as you’re writing code that someone else is going to also be changing, you need to think harder about the decisions you make. Will another developer be able to understand what you did? Did you organize your code in such a way that it’s easy to adapt and extend? Long after you’re gone, will others be able to continue using the same code, or will it need to be rewritten because no one understands it? This session shows the best practices used by teams to ensure their JavaScript is as maintainable as possible.

NOTE: To view an HD version go to: http://youtu.be/nZihjH6_Qns

About Nicholas Zakas

Nicholas C. Zakas worked at Yahoo! for almost five years, building and defining front-end strategy for some of Yahoo’s largest sites. Nicholas is also the author of several books, including High Performance JavaScript, Professional JavaScript for Web Developers, and Professional Ajax.

Don’t miss an upload! Subscribe! http://goo.gl/szEauh
Stay Connected to O’Reilly Media by Email – http://goo.gl/YZSWbO

Follow O’Reilly Media:
http://plus.google.com/+oreillymedia
https://www.facebook.com/OReilly


Original source

3d Ocean

Related Posts

42 Comments

  1. anomaly19851
    November 4, 2017 at 23:57

    Bitch.

  2. Vitez Koja
    November 4, 2017 at 23:57

    He looks like Steve Jobs, junger JavaScript genious!

  3. Mike Trigo
    November 4, 2017 at 23:57

    lol "Knuth is my homeboy"

  4. Himanshu Kesarvani
    November 4, 2017 at 23:57

    Great video. Very helpful. Thanks 🙂

  5. webformssuck
    November 4, 2017 at 23:57

    Just because JavaScript is classless, doesn't mean you have to be ))))

  6. Anam Ahmed
    November 4, 2017 at 23:57

    did he said IE when he coughed? :p one of the few videos I re-watch frequently. This man is awesome. 

  7. Κώστας Λουπασάκης
    November 4, 2017 at 23:57

    The XMLHttpRequest name feels wrong no matter how you write it.

    Xml? Who capitalizes Xml? Ok, all caps then, like in the wild
    But how about the Http part then? If we put it all caps the reader will lookup for the new XMLHTTP protocol. We need to separate it somehow. Underscore? Well yes, but we use underscore for separating words in variable names. 

    There is absolutely no way to win this. Only by completely changing the object name. But how could you name the object of an XML HTTP request? ARGH!

  8. Waliur Rahman
    November 4, 2017 at 23:57

    Interesting enough to stick to till the end,
    resourceful enough to take away some great tips.

  9. Sorin Irimies
    November 4, 2017 at 23:57

    Great great talk, witty funny. Thx.

  10. Felix T-Rex
    November 4, 2017 at 23:57

    Thats one thing that makes Java and class based languages better than Javascript. If someone overrides a method in Javascript it can take days to figure out the bug. However in Java its only a matter of seconds to find incompatible overrides due to compile time checking.

  11. Carlos Martinez
    November 4, 2017 at 23:57

    +Tomás Martínez check this out xD 28:10 me recordó a ti xD

  12. moofymoo
    November 4, 2017 at 23:57

    don't be afraid of long names and name things logicaly: AbstractSingletonProxyFactoryBean

  13. Johannes Winger-Lang
    November 4, 2017 at 23:57

    I too like Nicholas Zakas, both his writing and speaking. No pun intended, but I find his speech very fluent, and the combination with his profound knowledge makes it awesome.

  14. Nicolas Embleton
    November 4, 2017 at 23:57

    Awesome talk. Tools are not as up-to-date anymore, but generally awesome.

  15. Naveed Hassan
    November 4, 2017 at 23:57

    Use class name to change the style;

  16. Sheikh Heera
    November 4, 2017 at 23:57

    Wow! "Just because JavaScript is classless you don't become". 🙂

  17. Daniel Stopp
    November 4, 2017 at 23:57

    I like Nicolas Zakas’ talks a lot, because they are densely informational and I always take a lot out of them. What I don’t like about them is N. Zakas’ often embarassing attempts at humor (which – admittedly – mostly suffer from the moody reactions of the respective ,crowd’ he’s speaking to).
    In this one however, he seems much more relaxed and does not try to enforce laughs, which made the whole talk not only informative, but also very entertaining and even funny.

  18. vsathishcs
    November 4, 2017 at 23:57

    Yes i mean it. we must kill the bad fat and belly first to get the 6 pack.

    Listen to this I saw an interview with body building champion where he talks about 7 odd foods he eats to keep his abs hard.

    have a look here bit.ly/19cFq2R?=plrwo

  19. Tarulia
    November 4, 2017 at 23:57

    There's a HD version in the description, no?

  20. ianman6
    November 4, 2017 at 23:57

    Hey RO2player, why don't you join the rest of us in the wonderful world of 'check the description for the HD link' before posting a comment that already has been addressed? Go on, try it, you might like it.

  21. Josh Bambrick
    November 4, 2017 at 23:57

    /watch?v=nZihjH6_Qns

    I have no idea why they uploaded it twice but this one has 720p

  22. lennyhome
    November 4, 2017 at 23:57

    Try to maintain the size of your Javascript to zero bytes. It's the best choice unless you want popups on your site, you don't need and/or want it.

  23. Aaghaaz Madan
    November 4, 2017 at 23:57

    Sylvester.jcmmm888724444441212545840000s0s0s0s52w26999995845459595f56f565fe56f565e6e565tu56454666566556659898

  24. Aaghaaz Madan
    November 4, 2017 at 23:57

    okthoajjavaentetrwhatwmownmaniowomwei0j3923i39082948384384934902048902q8+(4093mipwjofeiof)(fijckjkljdjwweofmariojwiojfiojewwahowhwfiowejfeijeiorjocldjkljahamenteryhahepjwpjsjwijiwj3i9eiji3j4ioj34j3wejt-t=e.

  25. Brian Vu
    November 4, 2017 at 23:57

    So simple. Thanks dude!

  26. whatawaster1989
    November 4, 2017 at 23:57

    Add a CSS class instead – that's what they're for, updated your jsFiddle: jsfiddle.net/5Ba2u/3/

  27. Brian Vu
    November 4, 2017 at 23:57

    I am new to Javascript coding and thought this was a great video!

    I have a question though.

    At 30:00 it says to keep css style out of Javascript. How would one manipulate the css style of an html element then?

    Example code:
    jsfiddle.net/5Ba2u/

    How would the above be done for better coding practice?
    Thanks in advanced.

  28. Derek Ries
    November 4, 2017 at 23:57

    I assume you're referring to the fact that Pi is all caps? All of the Math constants are capitalized, following the general practice of capitalizing constants (the slide following camel casing).

  29. John Masseria
    November 4, 2017 at 23:57

    My bet is that it was a joke …

  30. EtherasFox
    November 4, 2017 at 23:57

    I'd just like to state for the record that "Id" is not an acronym, its an abbreviation. It means "Identification" or "Identifier", not like "I-Dentifier". So capitalizing both letters would be incorrect.

  31. Stanislas Duprey
    November 4, 2017 at 23:57

    24:00, what about Math.PI ?

  32. Sławomir Demichowicz
    November 4, 2017 at 23:57

    getElementById & innerHTML is not JavaScript but DOM API !

  33. RO2player
    November 4, 2017 at 23:57

    Hey Oreilly Media, why don't you join the rest of the us in the wonderful world of 'at least' 720p? Go on, try it, you might like it.

  34. Travis
    November 4, 2017 at 23:57

    I once had a 45 minute argument about whether or not JSLINT errors should break our jenkins build. Though the style itself doesn't effect the program, it was a good way to enforce our style guide. Any thoughts?

  35. Fizer Khan
    November 4, 2017 at 23:57

    Very Userful Talk.

  36. Khalil Zhang
    November 4, 2017 at 23:57

    very useful stuffs. thanks, nicholas.

  37. George Weilenmann
    November 4, 2017 at 23:57

    Harshed word I heard was crap and I don't view that as an expletive. I do however view IE as an expletive if it refers to any version before 10.

  38. TheRealNotary
    November 4, 2017 at 23:57

    LOL, 9:25 "Debuggable… which is not a real word… btw… According to M$ word anyway." I can't tell if he was telling a joke there or not.

  39. Todd Smith
    November 4, 2017 at 23:57

    Wow, the only expletive I heard was "Internet Explorer"

  40. Paulo Henrique Deléo
    November 4, 2017 at 23:57

    The slides: slideshare. net/nzakas/maintainable-javascript-2012

  41. Daniel Lamb
    November 4, 2017 at 23:57

    Great talk, could have done without all the expletives, had ask my four year old leave the room.

  42. UffieM
    November 4, 2017 at 23:57

    This is a great video. JavaScript doesn't allow you to really split your programming patterns but this video gives you simple tips on how to understand and maintain JavaScript code better.

Leave A Comment

You must be logged in to post a comment.