The death of JavaScript

Table of contents

  1. Why do we use JS for backend apps ?
  2. The state of frontend frameworks
  3. The future of frontend frameworks
  4. So the next question is...

 

Why do we use JS for backend apps ?

. . .

Why do we use JS for backend apps ?

+

=

Why do we use JS for backend apps ?

Why do we use JS for backend apps ?

Why do we use JS for backend apps ?

  • CoffeeScript (2009)
  • JS++ (2011)
  • TypeScript (2012)
  • PureScript (2013)
  • Flow (2014)
  • JSDoc (1999 mais revient à la mode)
  • etc.

Why do we use JS for backend apps ?

...because of enterprise challenges, frontend/fullstack developers,

etc.

The state of frontend frameworks 

The state of frontend frameworks 

const Example = () => {
  const [label, setLabel] = useState("")

  const updateLabel = (event) => {
    setLabel(event.target.value)
  }

  return (
    <div>
      <input type="text" value={label} onChange={updateLabel} />
      <p>{label}</p>
    </div>
  )
}

The state of frontend frameworks 

The hooks you have to use:                                   

  • useCallback
  • useMemo
  • useRef
  • useImperativeHandle
  • ...

The hooks you kind of want to use:

  • useState
  • useEffect

 

The state of frontend frameworks

  • Static Site Generators (Gatsby, ...)
  • Server Side Rendering (Next, ...)

The state of frontend frameworks

The state of frontend frameworks

...is too much on the frontend side and not strict enough.

The futur of frontend frameworks

The futur of frontend frameworks

The futur of frontend frameworks

// Example.svelte
<script>
  let label;
</script>

<div>
  <input bind:value={label} />
  <p>{label}</p>
</div>

The futur of frontend frameworks

The futur of frontend frameworks

...is compiled or run in the backend.

So the next question is...

In summary:

  • We compile to JavaScript anyway
  • We want more language features and types
  • We want less work done on the browser

So the next question is...

...is JavaScript the right language?

Source

What do you think ?

The death of JavaScript

By Franck Boucher

The death of JavaScript

  • 192