Plus I had to be done in ten days or something worse than JavaScript would have

Plus i had to be done in ten days or something worse

This preview shows page 204 - 206 out of 517 pages.

JavaScript had to “look like Java” only less so—be Java’s dumb kid brother or boy-hostage sidekick. Plus, I had to be done in ten days or something worse than JavaScript would have happened. Brendan Eich, creator of JavaScript Brendan Eich proposed embedding the Scheme language in the browser ( Seibel 2009 ). Although pressure to create a Java-like syntax prevailed, many Scheme ideas survive in JavaScript. Despite its name, JavaScript is unrelated to Java: LiveScript, the original name chosen by Netscape Communications Corp., was changed to JavaScript to capitalize on Java’s popularity. In fact, as a language JavaScript inherits almost nothing from Java except superficial syntax. It has higher-order functions, which come from the Scheme dialect of Lisp and figure prominently in AJAX programming and in the Jasmine TDD tool. Its dynamic type system is similar to Ruby’s and plays a similarly prominent role in how the language is used. If you have a solid grasp of these concepts from Chapters 3 and 8 , and are comfortable using CSS selectors as you did in Chapters 2 and 7 , learning and using JavaScript productively will be easy. JavaScript, Microsoft JScript, and Adobe ActionScript are dialects of ECMAScript , the 1997 standard that codifies the language. We follow standard usage and use “JavaScript” to refer to the language generically. There are four major uses of JavaScript in today’s SaaS ecosystem, which we list in order of “least JavaScript-intensive” to “most JavaScript-intensive”: 1. Using JavaScript to enhance the user experience of server-centric SaaS apps that follow the Model–View–Controller architectural pattern. In this case, JavaScript is combined with HTML and CSS to form the “three-legged stool” of client-side SaaS programming. This case is called client- side JavaScript to clarify that JavaScript is “embedded” in the browser in a way that lets it interact with Web pages. In this scenario, the server typically sends pre-rendered HTML in response to JavaScript requests, and the browser uses these HTML chunks to replace existing page elements. 2. Creating single-page applications (SPAs) that fit on a single web page, optionally enhanced by connectivity with the server. The user experience is that once the initial page is loaded, no further page reloads or redraws occur, although elements on the page are updated continuously in response to communication with the server. In this scenario, the server appears to the app as one or several Service-Oriented Architecture endpoints that return data encoded in XML or JSON (JavaScript Object Notation) to the client-side JavaScript code, which parses the data and updates various page elements accordingly. 3. Creating client-side applications such as Google Docs, comparable in complexity to desktop apps and possibly able to operate while disconnected from the Internet. Like all complex software, such apps must be built on some underlying architecture; for example, the Angular framework for JavaScript supports Model–View–Controller.
Image of page 204
4. Creating full server-side apps similar to those we’ve been building using Rails, but using JavaScript frameworks such as Node.js.
Image of page 205
Image of page 206

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