• Thursday , 13 August 2020

Google I/O 2011: JavaScript Programming in the Large with Closure Tools

Code Canyon



Michael Bolin

Most developers who have tinkered with JavaScript could not imagine writing 1,000 lines of code in such a language, let alone 100,000. Yet that is exactly what Google engineers have done using a suite of JavaScript tools named “Closure” to produce many of the most popular and sophisticated applications on the Web, such as Gmail and Google Maps.

Original source

3d Ocean

Related Posts

27 Comments

  1. Roney Thomas
    October 3, 2017 at 22:52

    +1 for watching in 2017

  2. 馬赫特
    October 3, 2017 at 22:52

    Using the classification for a large application (2:30) I would put the one I'm working on as medium.
    ~10,000 LOC ( so far )
    1 Person
    3 months ( so far )

  3. Tung Nguyen
    October 3, 2017 at 22:52

    Great, I'm seeking those things for my awesome project >.<

  4. lennyhome
    October 3, 2017 at 22:52

    Javascript exists only because it was capable of opening popups faster than Java.

  5. k3nny111
    October 3, 2017 at 22:52

    "there's no good way to ensure that calculations involving people's money comes out right."

    How about that?
    money*=100;
    /* making calculations */
    money/=100;

  6. xzaz2
    October 3, 2017 at 22:52

    It does scare me, but not anymore with Javascript 🙂 Does it make it good? No, does it makes it wrong? I don't know..

  7. xzaz2
    October 3, 2017 at 22:52

    And this is not a issue in javascript, seeing the history of Javascript.

  8. redsoxyeargmail
    October 3, 2017 at 22:52

    I think you upset Steve Bergman !

  9. methodinsane
    October 3, 2017 at 22:52

    The Triforce – Great Zelda reference!! And great presenter!

  10. clenard
    October 3, 2017 at 22:52

    Learned a lot. Great vid!

  11. Rodrigo Coutinho
    October 3, 2017 at 22:52

    very nice

  12. Samar Panda
    October 3, 2017 at 22:52

    Looking forward to work in a project using closure library. Pretty impressed by its advanced mode compiler and the way it minifies the code.

  13. bondservant4Him
    October 3, 2017 at 22:52

    hate js

  14. Pangea Minor
    October 3, 2017 at 22:52

    I would actually like my code to NOT be obfuscated or illegible (up yours, "intellectual property") , so I guess I'll just not use parts of the compiler? Is that easy enough?

  15. TheMonk72
    October 3, 2017 at 22:52

    And C# doesn't satisfy YOUR definition either:

    string.Join(", ", new int[] { 1, 2, 3 }) == "1, 2, 3"

    Implicit type conversion or type promotion does not mean a language IS NOT strongly typed, any more than explicit denial of specific operations DOES mean that a language IS strongly typed.

    So cherry-picking specific definitions to say 'Language X is strongly typed' is not sufficient.

  16. HardShooter76
    October 3, 2017 at 22:52

    BTW Java doesn't satisfy all of the definitions

  17. HardShooter76
    October 3, 2017 at 22:52

    Once again you are free to remove Python from the example list, and change it's wikipedia page

  18. TheMonk72
    October 3, 2017 at 22:52

    Nice – and blatant – quote mining. Just as valid as my sarcastic response.

    Of course it's not that simple… it seldom is. Restricting operations on disparate types already happens in Javascript, just at a level that doesn't apparently satisfy your threshold.

    Now go look at "strong typing" in Wikipedia. Does Python satisfy all of the definitions given there? No, it doesn't.

    Given a narrow enough focus you can justify many things. But broaden the scope and Python is NOT strongly typed.

  19. HardShooter76
    October 3, 2017 at 22:52

    In javascript

    "" == 0
    true

    This is not strongly typed

    "5" + 4
    54

    This isn't either.

    You can't do this type of stuff in Python, that's what makes it strongly-typed.

    Wikipedia defines strongly typed as : "a type system is said to feature strong typing when it specifies one or more restrictions on how operations involving values of different data types can be intermixed. The opposite of strong typing is weak typing." You're free to change the definition if you're not happy with it

  20. TheMonk72
    October 3, 2017 at 22:52

    From the python wiki: "Python is strongly typed as the interpreter keeps track of all variables types."

    Since every programming language I use (including Javascript) does this, then by this logic EVERY programming language is strongly typed.

    Definitions are important, don't you think?

  21. TheMonk72
    October 3, 2017 at 22:52

    Depends on your definition. Saying that Python is strongly-typed because it doesn't allow operations that some 'weakly-typed' languages do isn't really enough.

    For most, 'strongly-typed' is virtually equivalent to 'statically-typed' in most usages. A strongly-typed language SHOULD allow specification of parameter types for functions, which reduces the code required to validate parameters.

    Can Python do that? No? Not strongly typed enough then.

  22. heyhelloallpeople
    October 3, 2017 at 22:52

    Thanks!

  23. Qiang Lu
    October 3, 2017 at 22:52

    Really useful video for javascript closure newbie.

  24. John Smith
    October 3, 2017 at 22:52

    Not really convinced. The pitch was excellent, but the practice, the development cycle, seems as if it would be a pain in the ass.

  25. Evgeny Fadeev
    October 3, 2017 at 22:52

    f you.

  26. Adam Ghanem
    October 3, 2017 at 22:52

    @ 07:10 People find it annoying because "things" like internet explorer. HAHAH!

  27. Jmac217
    October 3, 2017 at 22:52

    I see you're using Ubuntu 😛

Leave A Comment

You must be logged in to post a comment.