Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Today, The Actions in Javascript

Jimmy Moon
October 05, 2018

Today, The Actions in Javascript

지금! 자바스크립트로 할수 있는 것 들.

Jimmy Moon

October 05, 2018
Tweet

More Decks by Jimmy Moon

Other Decks in Programming

Transcript

  1. ૑Ә! ੗߄झ௼݀౟۽
    ೡ ࣻ ੓ח Ѫٜ
    Today, The Actions in Javascript

    View full-size slide

  2. ੗߄झ௼݀౟
    Javascript

    View full-size slide

  3. One of Most Popular Programming
    Languages

    View full-size slide

  4. Running Javascript Application
    Manywhere

    View full-size slide

  5. https://en.wikipedia.org/wiki/JavaScript
    Initially only implemented client-side in web
    browsers, JavaScript engines are now
    embedded in many other types of host
    software, including server-side, databases,
    and in non-web programs, mobile and
    desktop applications.

    View full-size slide

  6. https://en.wikipedia.org/wiki/JavaScript
    Initially only implemented client-side in web
    browsers, JavaScript engines are now
    embedded in many other types of host
    software, including server-side, databases,
    and in non-web programs, mobile and
    desktop applications.

    View full-size slide

  7. Browsers Server Desktop IoT
    Mobile

    View full-size slide

  8. Community Driven Language

    View full-size slide

  9. ECMAScript/ES 20XX

    View full-size slide

  10. ECMAScript/ES 20XX
    ==
    Javascript/JS

    View full-size slide

  11. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript 5.1
    was released to fully align with the third edition of the ISO/IEC 16262 international standard.
    ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in June 2016.
    The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  12. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in
    December 1999, by 2003, the original ECMAScript 4 work was mothballed. The development
    of ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript 5.1
    was released to fully align with the third edition of the ISO/IEC 16262 international standard.
    ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in June 2016.
    The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  13. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript 5.1
    was released to fully align with the third edition of the ISO/IEC 16262 international standard.
    ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in June 2016.
    The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  14. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript 5.1
    was released to fully align with the third edition of the ISO/IEC 16262 international standard.
    ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in June 2016.
    The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  15. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set
    to work to revolutionize what could be done with JavaScript, in early 2009 to rename
    ECMAScript 3.1 to ECMAScript 5 and drive the language forward using an agenda that is
    known as Harmony. ECMAScript 5 was finally released in December 2009. In June 2011,
    ECMAScript 5.1 was released to fully align with the third edition of the ISO/IEC 16262
    international standard. ECMAScript 2015 was released in June 2015. ECMAScript 2016 was
    released in June 2016. The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  16. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename
    ECMAScript 3.1 to ECMAScript 5 and drive the language forward using an agenda that is
    known as Harmony. ECMAScript 5 was finally released in December 2009. In June 2011,
    ECMAScript 5.1 was released to fully align with the third edition of the ISO/IEC 16262
    international standard. ECMAScript 2015 was released in June 2015. ECMAScript 2016 was
    released in June 2016. The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  17. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript
    5.1 was released to fully align with the third edition of the ISO/IEC 16262 international
    standard. ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in
    June 2016. The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  18. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript
    5.1 was released to fully align with the third edition of the ISO/IEC 16262 international
    standard. ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in
    June 2016. The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  19. https://en.wikipedia.org/wiki/JavaScript
    In November 1996, Netscape submitted JavaScript to ECMA International to carve out a
    standard specification, ... ECMAScript published in the first edition of the ECMA-262 standard
    in June 1997, ECMAScript 2 in June 1998, The release of ECMAScript 3 followed in December
    1999, by 2003, the original ECMAScript 4 work was mothballed. The development of
    ECMAScript 4 was never completed. ... Alas, there was still turmoil between the various
    players ... While all of this was happening, the open source and developer communities set to
    work to revolutionize what could be done with JavaScript, in early 2009 to rename ECMAScript
    3.1 to ECMAScript 5 and drive the language forward using an agenda that is known as
    Harmony. ECMAScript 5 was finally released in December 2009. In June 2011, ECMAScript 5.1
    was released to fully align with the third edition of the ISO/IEC 16262 international standard.
    ECMAScript 2015 was released in June 2015. ECMAScript 2016 was released in June
    2016. The current version is ECMAScript 2017, released in June 2017

    View full-size slide

  20. Stage 0: Strawman, submitting ideas and review
    Stage 1: Proposal, formal proposal for the feature

    Stage 2: Draft, first version of what will be in the specification
    Stage 3: Candidate, the proposal is mostly finished

    Stage 4: Finished, the proposal is ready to be included in the standard
    ECMAScript/ES 20XX

    View full-size slide

  21. Compiling, to Javascript

    View full-size slide

  22. - TypeScript: TypeScript is a superset of
    JavaScript that compiles to clean JavaScript
    output
    - Flow: Flow is a static typechecker for JavaScript
    - ReasonML: Simple, fast & type safe code that
    leverages the JavaScript & OCaml ecosystems
    - PureScript: A strongly-typed language that
    compiles to Javascript, written in and inspired by
    Haskell
    https://hackernoon.com/the-status-of-javascript-libraries-frameworks-2018-beyond-3a5a7cae7513

    View full-size slide

  23. - Superset of JavaScript that brings users
    optional static types and solid tooling
    - Designed for development of large
    applications and transcompiles to JavaScript
    - Maintained by Microsoft, Backed by Google
    (Angular and other project)
    - Support in many mature IDEs
    - Annotations and Compile-time type
    checking, Interfaces, Enumerated, Generics,
    Namespaces, Tuples, Async/await, Classes
    Modules ...

    View full-size slide

  24. https://hyunseob.github.io/2018/08/12/do-you-need-to-use-ts/

    View full-size slide

  25. ࠳ۄ਋੷
    Browsers

    View full-size slide

  26. Browser, platform for Web
    Applications

    View full-size slide

  27. Engine, composing layout and
    running Javascript

    View full-size slide

  28. Blink
    V8
    Webkit
    Nitro
    Gecko(Quantum)
    Spidermonkey
    EdgeHTML
    Chakra
    Blink
    V8
    Blink
    V8

    View full-size slide

  29. - Chrome, Chromium, Opera and Samsung
    Mobile Browser
    - Developed for The Chromium Project for
    Google Chrome and Chromium web browsers
    - Used Node.js that are used server-side and
    CLI (terminal)
    - Enabling Ignition and TurboFan pipeline

    View full-size slide

  30. Quantum
    - Firefox Browser
    - Builded for the next-generation web engine
    for Firefox users
    - Written in Rust Programming Language for
    better memory safety, concurrency, and
    parallelism on multiple CPU core than
    compiled C++ code

    View full-size slide

  31. Chakra
    Core
    - Edge Browser
    - High-performance JavaScript engine that
    powers Microsoft Edge
    - Open-sourced
    - Microsoft created a PR in the Node.js GitHub
    repo to use ChakraCore instead of V8

    View full-size slide

  32. - Web Components
    - Web Assembly
    - Web Worker, Worklet
    - Web Payment
    - WebVR / AR

    View full-size slide

  33. https://blog.logrocket.com/webassembly-how-and-why-559b7f96cd71

    View full-size slide

  34. https://blog.logrocket.com/webassembly-how-and-why-559b7f96cd71

    View full-size slide

  35. য೒ܻா੉࣌
    Applications

    View full-size slide

  36. Workflow, whole development
    process of Javascript Application

    View full-size slide

  37. https://github.com/kamranahmedse/developer-roadmap

    View full-size slide

  38. Init Dev Build Deploy

    View full-size slide

  39. Init
    Scaffolding application
    that already work with
    solutions

    View full-size slide

  40. Dev
    Iterated development
    with compile, linting,
    and reloading on dev
    server

    View full-size slide

  41. Build
    Build production ready
    application

    View full-size slide

  42. Deploy
    One command deploy to
    your server

    View full-size slide

  43. REACT
    NEXT.JS
    VUE.JS
    NUXT.JS
    PREACT ANGULAR POLYMER EMBER
    (GLIMMER)
    GOOD OPTIONS WITH WORKFLOW

    View full-size slide

  44. https://npmcharts.com/compare/react,angular,@angular/core,ember-cli,vue,@polymer/polymer,next,nuxt,preact

    View full-size slide

  45. https://2017.stateofjs.com/

    View full-size slide

  46. Framework, is a starting point, not a
    goal

    View full-size slide

  47. - Best practices built with framework
    - Zero configuration tooling
    - Customizable configs
    - Exporting static files
    - PWA supports
    - Build with optimized performance like code-
    splitting
    - Good tutorials, books and videos for learning
    - Developer Ergonomics

    View full-size slide

  48. Packages, reliability pattern is a
    design that result in reliable for
    production-ready application

    View full-size slide

  49. CSS in JS, JavaScript as a language
    to describe and update styles

    View full-size slide

  50. State Management, manage multiple
    pieces of state scattered across
    many components

    View full-size slide

  51. https://facebook.github.io/flux/docs/in-depth-overview.html

    View full-size slide

  52. Bundling, tighten up your application
    for serving in production-ready
    version

    View full-size slide

  53. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  54. Tools, Editing, Debugging, Auditing
    and Testing

    View full-size slide

  55. https://next-hnpwa.now.sh/
    LIGHTHOUSE

    View full-size slide

  56. LIGHTHOUSE SCORE

    View full-size slide

  57. SOURCE EDITING

    View full-size slide

  58. EAGER EVALUATION

    View full-size slide

  59. - Unit testing
    - E2E testing
    - UI Testing (Component)
    - Browser-side testing

    View full-size slide

  60. ࢲߡ-ࢎ੉٘
    Server-Side

    View full-size slide

  61. Node, one of popular solutions in
    front-end server

    View full-size slide

  62. - Node(node, Node.js)
    - V8 Engine for running Javascript out of
    browser
    - Light, fast, running on cross-platforms
    - Asynchronous I/O via libuv
    - Event-driven and Non-blocking I/O
    - Strong community, Node foundation and npm
    - Isomorphic (Universal) JavaScript Application

    View full-size slide

  63. https://www.youtube.com/watch?v=PNa9OMajw9w

    View full-size slide

  64. https://medium.com/airbnb-engineering/isomorphic-javascript-the-future-of-web-apps-10882b7a2ebc

    View full-size slide

  65. https://medium.com/@addyosmani/progressive-web-apps-with-react-js-part-4-site-is-progressively-enhanced-
    b5ad7cf7a447

    View full-size slide

  66. 2018 Node.js User Survey Report - https://nodejs.org/en/user-survey-report/#profile2

    View full-size slide

  67. Deno, secure TypeScript run-time on
    V8

    View full-size slide

  68. https://www.youtube.com/watch?v=M3BM9TB-8yA
    10 Things I Regret About Node.js
    - Ryan Dahl - JSConf EU 2018

    View full-size slide

  69. - Bitcoin
    - Messaging server, MQTT
    - Bot Server
    - Game Server
    - Front-end app, auth server


    - AWS Lambda

    View full-size slide

  70. ݽ߄ੌ
    Mobile

    View full-size slide

  71. Native app
    w/
    Javascript
    Mobile
    Web App
    vs

    View full-size slide

  72. Mobile Web Application, web
    application with a first-class mobile
    experience

    View full-size slide

  73. - App like

    - Secure
    - Installable
    - Offline working

    - Notification
    - Discoverable
    - Device features
    Progressive
    Web Apps

    View full-size slide

  74. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  75. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  76. Usecase, @Pinterest

    View full-size slide

  77. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  78. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  79. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  80. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  81. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  82. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  83. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  84. https://speakerdeck.com/addyosmani/fast-by-default-modern-loading-best-practices

    View full-size slide

  85. Native Mobile App, w/ Javascript

    View full-size slide

  86. React
    Native
    Native
    Script
    Vue
    Native
    Ionic
    (Angular)

    View full-size slide

  87. https://2017.stateofjs.com/2017/mobile/results

    View full-size slide

  88. ؘझ௼఑
    Desktop

    View full-size slide

  89. Electron Nw.Js
    Progressive
    Webapp

    View full-size slide

  90. Electron, the best way to make a
    desktop app in web technologies on
    multi-platform

    View full-size slide

  91. Practice on embedding Node.js into Atom Editor // Speaker Deck - https://goo.gl/ENyzp9

    View full-size slide

  92. PWA for Desktop

    View full-size slide

  93. https://developers.google.com/web/updates/2018/05/dpwa

    View full-size slide

  94. ই੉য়౭
    IoT

    View full-size slide

  95. - Not OS, runtime based
    - Using rich Javascript ecosystem, messaging
    protocols is already ready-for-production
    - Many of SDKs already support Javascript
    - Universal service for IoT, node based Server
    , and webapp, and device client
    - Support Native Interface
    JavaScript: The Perfect
    Language for the Internet
    of Things (IoT)

    View full-size slide

  96. ੗߄झ௼݀౟ ೠߣ ೧
    ࠁࣁਃ
    Try it! Now!

    View full-size slide