Best of Fluent 2012: Maintainable JavaScript

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024
  • 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: • Best of Fluent 2012: M...
    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! goo.gl/szEauh
    Stay Connected to O'Reilly Media by Email - goo.gl/YZSWbO
    Follow O'Reilly Media:
    plus.google.com/+oreillymedia
    / oreilly
    / oreillymedia
  • НаукаНаука

Комментарии • 49

  • @Wingerlang
    @Wingerlang 10 лет назад +1

    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.

  • @ajgubi19
    @ajgubi19 10 лет назад +1

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

  • @madhurgarg8866
    @madhurgarg8866 6 лет назад +2

    Keeping HTML markup separate from JavaScript is contrary to the today's component era (ReactJS particularly), which is basically mixing JavaScript and HTML (JSX)

  • @AnamAhmeds
    @AnamAhmeds 9 лет назад +11

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

  • @NicolasEmbleton
    @NicolasEmbleton 10 лет назад

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

  • @franciscobecker159
    @franciscobecker159 2 года назад

    This is a great talk, I always share it and reference in my own presentations.

  • @khalilzhang5953
    @khalilzhang5953 11 лет назад

    very useful stuffs. thanks, nicholas.

  • @FizerKhan
    @FizerKhan 11 лет назад

    Very Userful Talk.

  • @himanshukesarvani8004
    @himanshukesarvani8004 9 лет назад +1

    Great video. Very helpful. Thanks :)

  • @lennyhome
    @lennyhome 11 лет назад

    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.

  • @handsome_man69
    @handsome_man69 10 лет назад

    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.

  • @brianvu648
    @brianvu648 11 лет назад

    So simple. Thanks dude!

  • @greenspand
    @greenspand 10 лет назад

    Great great talk, witty funny. Thx.

  • @moofymoo
    @moofymoo 10 лет назад +2

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

  • @EtherasFox
    @EtherasFox 11 лет назад

    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.

  • @wWvWwWvWw
    @wWvWwWvWw 11 лет назад

    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?

  • @DerekRies
    @DerekRies 11 лет назад

    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).

  • @JoshuaBambrick
    @JoshuaBambrick 11 лет назад

    /watch?v=nZihjH6_Qns
    I have no idea why they uploaded it twice but this one has 720p

  • @paulodeleo
    @paulodeleo 11 лет назад

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

  • @brianvu648
    @brianvu648 11 лет назад

    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.

  • @Tarulia
    @Tarulia 11 лет назад

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

  • @standup75
    @standup75 11 лет назад

    24:00, what about Math.PI ?

  • @demee11
    @demee11 11 лет назад

    getElementById & innerHTML is not JavaScript but DOM API !

  • @toddstlsmiths
    @toddstlsmiths 11 лет назад

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

  • @whatawaster1989
    @whatawaster1989 11 лет назад

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

  • @naveedhassan7399
    @naveedhassan7399 10 лет назад

    Use class name to change the style;

  • @MrSupervillin
    @MrSupervillin 4 года назад +1

    15:50

  • @webformssuck
    @webformssuck 9 лет назад +3

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

  • @ianman6
    @ianman6 11 лет назад

    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.

  • @vitezkoja6949
    @vitezkoja6949 8 лет назад

    He looks like Steve Jobs, junger JavaScript genious!

  • @RO2player
    @RO2player 11 лет назад

    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.

  • @cballe2288
    @cballe2288 9 лет назад

    lol "Knuth is my homeboy"

  • @DanielLamb
    @DanielLamb 11 лет назад

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

  • @abyssoftus
    @abyssoftus 11 лет назад

    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.

  • @SheikhHeera
    @SheikhHeera 11 лет назад

    Wow! "Just because JavaScript is classless you don't become". :-)

  • @TheRealNotary
    @TheRealNotary 11 лет назад

    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.

  • @carlos.arenas
    @carlos.arenas 10 лет назад

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

    • @matuser00
      @matuser00 10 лет назад

      ???.... porque?

    • @carlos.arenas
      @carlos.arenas 10 лет назад

      Tu buscando bugs en javascript, no? si viste el minuto que te dije? xD

  • @loupax
    @loupax 10 лет назад

    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!

    • @F00dTube
      @F00dTube 10 лет назад

      There was a rule used for a while that abbreviations are capitalised until 3 and after that only the first letter is capitalised. I guess Http is more acceptable than Xml.
      The whole point of camel casing is to emphasise word boundaries. You can see that XML and Http are separate words because 'H' must be the first letter in a word. Of course this is totally dependant on luck, because een XML NTP request would be XMLNTPRequest.
      It's now widely the norm to just capitalise the first letter: XmlHttpRequest. Maybe it feels crappy to capitalise one letter, but at least it serves its purpose consistenly.

    • @bartomiejoryszak6645
      @bartomiejoryszak6645 9 лет назад +4

      Κώστας Λουπασάκης There is a way to win this :) => ExtensibleMarkupLanguageHyperTextTransferProtocolRequest

  • @JohnMasseria
    @JohnMasseria 11 лет назад

    My bet is that it was a joke ...