Slide 1

Slide 1 text

૑Ә! ੗߄झ௼݀౟ ೞ ۰ݶ ঌইঠ ೡ Ѫٜ Head topics in Javascript, 2020

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

੗߄झ௼݀౟ Javascript

Slide 4

Slide 4 text

One of Most Popular Programming Languages

Slide 5

Slide 5 text

https://octoverse.github.com/

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

TIOBE programming community index is a measure of popularity of programming languages

Slide 8

Slide 8 text

Javascript is running on many where

Slide 9

Slide 9 text

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.

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

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.

Slide 12

Slide 12 text

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.

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Community Driven Language

Slide 19

Slide 19 text

ECMAScript/ES 20XX

Slide 20

Slide 20 text

ECMAScript/ES 20XX == Javascript/JS

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

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

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

Compiling, to Javascript

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

- TypeScript: TypeScript is a superset of JavaScript that compiles to clean JavaScript output - 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 - ClosureScript, Elm ClojureScript

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

- 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 ...

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

࠳ۄ਋੷ Browsers

Slide 40

Slide 40 text

Browser, the platform for Web Applications

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

Blink V8 Webkit Nitro Gecko(Quantum) Spidermonkey Blink V8 Blink V8 Blink V8

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

Web Assembly (aka, WASM)

Slide 48

Slide 48 text

WebAssembly

Slide 49

Slide 49 text

Javascript Source Code Ignition (JS Interpreter) TurboFan (Optimization Compiler) Deoptimize Optimize (Profile Data) Bytecode Optimized Code Collecting Information Profiling Data

Slide 50

Slide 50 text

Liftoff (WebAssembly baseline compiler) Hot Swap Execution Immediately WASM TurboFan (Optimization Compiler) Off-thread Optimization

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

https://developers.google.com/web/updates/2019/02/hotpath-with-wasm

Slide 53

Slide 53 text

SharedArrayBuffer Threads Worker CPU Core WASM Instance Worker CPU Core WASM Instance Worker CPU Core WASM Instance https://www.youtube.com/watch?v=kZrl91SPSpc atomic.wait atomic.notify

Slide 54

Slide 54 text

Threads in C https://github.com/ragingwind/wasm-hello-world/tree/master/clang-thread

Slide 55

Slide 55 text

https://medium.com/google-earth/performance-of-web-assembly-a-thread-on-threading-54f62fd50cf7 Threads

Slide 56

Slide 56 text

SIMD Single Instruction, Multiple Data

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

https://hacks.mozilla.org/2019/08/webassembly-interface-types/

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

Web Audio / Midi https://ryoyakawai.com/blog/2015/07/27/webmusic-hackathon-kyoto-en.html

Slide 62

Slide 62 text

https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API

Slide 63

Slide 63 text

Web Capabilities (aka, Fugu)

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

https://goo.gle/fugu-api-tracker

Slide 66

Slide 66 text

য೒ܻா੉࣌ Applications

Slide 67

Slide 67 text

https://roadmap.sh/frontend

Slide 68

Slide 68 text

Workflow, whole development process of Javascript Application

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

Init Dev Build Deploy

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

Framework, is a starting point, not a goal

Slide 75

Slide 75 text

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

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

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

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

- Best practices built with the framework - Zero configuration tooling - Customizable configs - Exporting static files - PWA supports - Optimized performance - Tutorials, books and videos for learning - Developer Experience

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

Data Management, manage multiple pieces of state scattered across many components

Slide 82

Slide 82 text

https://facebook.github.io/flux/docs/in-depth-overview.html State Management, Flux

Slide 83

Slide 83 text

https://www.jahia.com/about-us/news-events/blog/introduction-to-graphql GraphQL

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

Packages Manager

Slide 87

Slide 87 text

2018

Slide 88

Slide 88 text

2019

Slide 89

Slide 89 text

2020

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

No content

Slide 92

Slide 92 text

No content

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

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

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

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

Slide 97

Slide 97 text

No content

Slide 98

Slide 98 text

Tools, Editing, Debugging, Auditing and Testing

Slide 99

Slide 99 text

No content

Slide 100

Slide 100 text

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

Slide 101

Slide 101 text

LIGHTHOUSE SCORE

Slide 102

Slide 102 text

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

Slide 103

Slide 103 text

No content

Slide 104

Slide 104 text

No content

Slide 105

Slide 105 text

https://twitter.com/malweene/status/1177271711806427136/photo/1

Slide 106

Slide 106 text

ࢲߡ-ࢎ੉٘ Server-Side

Slide 107

Slide 107 text

- 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

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

No content

Slide 110

Slide 110 text

No content

Slide 111

Slide 111 text

No content

Slide 112

Slide 112 text

No content

Slide 113

Slide 113 text

- Deno - Ryan Dahl, Same creator of Node - V8 Engine for running Javascript out of browser - Security, Security - Typescript - Simple Module System - Efficient Performance powered by Rust

Slide 114

Slide 114 text

No content

Slide 115

Slide 115 text

No content

Slide 116

Slide 116 text

JAMStack, serving pre-rendering files directly from a CDN, removing the requirement to run web servers

Slide 117

Slide 117 text

No content

Slide 118

Slide 118 text

Building and deploying modern websites and apps - GitHub Universe 2019 - YouTube

Slide 119

Slide 119 text

Building and deploying modern websites and apps - GitHub Universe 2019 - YouTube

Slide 120

Slide 120 text

1 2 3 4 5 6 https://github.com/sw-yx/smashingconf-ny-2019/blob/master/readme.md

Slide 121

Slide 121 text

https://github.com/ragingwind/next-templates

Slide 122

Slide 122 text

ݽ߄ੌҗ ؘझ௼఑ Mobile and Desktop

Slide 123

Slide 123 text

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

Slide 124

Slide 124 text

- App like - Secure - Installable - Offline working - Notification - Discoverable - Device features Progressive Web Apps

Slide 125

Slide 125 text

No content

Slide 126

Slide 126 text

No content

Slide 127

Slide 127 text

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

Slide 128

Slide 128 text

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

Slide 129

Slide 129 text

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

Slide 130

Slide 130 text

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

Slide 131

Slide 131 text

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

Slide 132

Slide 132 text

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

Slide 133

Slide 133 text

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

Slide 134

Slide 134 text

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

Slide 135

Slide 135 text

- Accelerated Mobile Pages - Cached by a CDN - Optimised for fast loading - Opinionated Components and HTML

Slide 136

Slide 136 text

No content

Slide 137

Slide 137 text

No content

Slide 138

Slide 138 text

No content

Slide 139

Slide 139 text

Native Mobile App, w/ Javascript

Slide 140

Slide 140 text

React Native Native Script Vue Native Ionic (Angular) Flutter (Dart)

Slide 141

Slide 141 text

No content

Slide 142

Slide 142 text

No content

Slide 143

Slide 143 text

No content

Slide 144

Slide 144 text

No content

Slide 145

Slide 145 text

ؘझ௼఑ Desktop

Slide 146

Slide 146 text

Electron Progressive Webapp

Slide 147

Slide 147 text

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

Slide 148

Slide 148 text

No content

Slide 149

Slide 149 text

No content

Slide 150

Slide 150 text

No content

Slide 151

Slide 151 text

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

Slide 152

Slide 152 text

No content

Slide 153

Slide 153 text

PWA for Desktop

Slide 154

Slide 154 text

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

Slide 155

Slide 155 text

No content

Slide 156

Slide 156 text

No content

Slide 157

Slide 157 text

No content

Slide 158

Slide 158 text

No content

Slide 159

Slide 159 text

No content

Slide 160

Slide 160 text

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