js-nutshell.pdf - JavaScript Deian Stefan(adopted from my...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
JavaScript Deian Stefan (adopted from my & Edward Yang’s CSE242 slides)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Why JavaScript? Linga franca of the Internet Used in the browsers, used server-side, used for IoT Still evolving to address growing needs (EcmaScript) Interesting goals and design trade-offs Illustrates many core concepts of CSE 130
Image of page 2
The great ideas [JavaScript] Expressive power (say more with less) First-class functions Type inference Monads Pattern matching Exception handling Continuations Reliability and reuse Type polymorphism Modules Objects & inheritance Type classes Cross-cutting concerns Memory management Concurrency
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
The great ideas [Haskell] Expressive power (say more with less) First-class functions Type inference Monads Pattern matching Exception handling Continuations Reliability and reuse Type polymorphism Modules Objects & inheritance Type classes Cross-cutting concerns Memory management Concurrency
Image of page 4
The great ideas [C++] Expressive power (say more with less) First-class functions Type inference Monads Pattern matching Exception handling Continuations Reliability and reuse Type polymorphism Modules Objects & inheritance Type classes Cross-cutting concerns Memory management Concurrency
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Today A little bit of history Concepts from JavaScript First-class functions Objects Language flexibility
Image of page 6
May 1995 Can I use Scheme? We need a scripting language for the browser! Ha? No! Make it look like Java!
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
One week later… Here is a hacked up prototype! Great! Let’s ship it! (It really took another year to embed it in the browser)
Image of page 8
JavaScript’s design goals [Eich, ICFP 2005] Make it easy to copy/paste snippets of code Tolerate “minor” errors — e.g., missing semicolons
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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