In addition to that disadvantage JavaScripts single threaded execution model

In addition to that disadvantage javascripts single

This preview shows page 249 - 251 out of 517 pages.

In addition to that disadvantage, JavaScript’s single-threaded execution model, which some feel hampers productivity because it requires event-driven programming, seems unlikely to change anytime soon. Some bemoan the adoption of JavaScript-based server-side frameworks such as Node, a JavaScript library that provides event-driven versions of the same POSIX (Unix-like) operating system facilities used by task-parallel code. Rails core committer Yehuda Katz summarized the opinions of many experienced programmers: when things happen in a deterministic order, such as server-side code handling a controller action in a SaaS app, a sequential and blocking model is easier to program; when things happen in an unpredictable order, such as reacting to external stimuli like user-initiated user interface events, the asynchronous model makes more sense. Your authors firmly believe that the future of software is “cloud+client” apps, and our view is that it’s more important to choose the right language or framework for each job than to obsess about whether a single language or framework will become dominant for both the client and cloud parts of the app. Finally, whereas in the early days of the Web it was common for pages to be hand-authored in HTML and CSS (perhaps using WYSIWYG authoring tools), today the vast majority of HTML is generated by frameworks like Rails. In a similar way, developments such as CoffeeScript suggest that while JavaScript will remain the lingua franca of browser programming, it may increasingly become a target language rather than the one in which most people code directly. 6.11 To Learn More We covered only a small part of the language-independent DOM representation using its JavaScript API. The DOM representation itself has a rich set of data structures and traversal methods, and APIs are available for all major languages, such as the dom4j library for Java and the Nokogiri gem for Ruby. Here are additional useful resources for mastering JavaScript and jQuery:
Image of page 249
A great presentation by Google JavaScript guru Miško Hevery: How JavaScript works: introduction to JavaScript and Browser DOM Yehuda Katz is an active core committer to both Rails and jQuery, among other high-profile projects. His programmer-oriented blog posts discuss tips and techniques ranging from the practical to the esoteric for both Ruby and JavaScript. In particular, he has a nice post on the subtle difference between Ruby blocks and JavaScript anonymous functions and another on why this works the way it does in JavaScript functions . jQuery is an extremely powerful library whose potential we barely tapped. jQuery: Novice to Ninja ( Castledine and Sharkie 2012 ) is an excellent reference with many examples that go far beyond our introduction.
Image of page 250
Image of page 251

You've reached the end of your free preview.

Want to read all 517 pages?

  • Spring '19
  • Dr.Marcos

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors