The death of JavaScript
![](https://i.imgflip.com/558k2q.jpg)
Table of contents
- Why do we use JS for backend apps ?
- The state of frontend frameworks
- The future of frontend frameworks
- So the next question is...
Why do we use JS for backend apps ?
![](https://logos-marques.com/wp-content/uploads/2021/03/Java-Logo.png)
![](https://seeklogo.com/images/C/c-sharp-c-logo-02F17714BA-seeklogo.com.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/27/PHP-logo.svg/1280px-PHP-logo.svg.png)
![](http://pngimg.com/uploads/ruby/ruby_PNG29.png)
![](https://i.imgur.com/ATHSciT.png)
. . .
Why do we use JS for backend apps ?
![](https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/V8_JavaScript_engine_logo_2.svg/1280px-V8_JavaScript_engine_logo_2.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/480px-Unofficial_JavaScript_logo_2.svg.png)
+
=
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Node.js_logo_2015.svg/1024px-Node.js_logo_2015.svg.png)
Why do we use JS for backend apps ?
![](https://i.imgflip.com/558nr3.jpg)
Why do we use JS for backend apps ?
![](https://i.imgflip.com/558obx.jpg)
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
![](https://i.imgur.com/K9hbPLJ.png)
![](https://i.imgur.com/PMPLFM5.png)
![](https://i.imgur.com/ma0olqi.png)
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
![](https://i.imgflip.com/5595mf.jpg)
The state of frontend frameworks
...is too much on the frontend side and not strict enough.
The futur of frontend frameworks
![](https://i.imgur.com/EFwZ3sn.png)
The futur of frontend frameworks
![](https://i.imgur.com/VfOrT0f.png)
The futur of frontend frameworks
// Example.svelte
<script>
let label;
</script>
<div>
<input bind:value={label} />
<p>{label}</p>
</div>
![](http://blog.ippon.fr/content/images/2020/11/svelte-logo.png)
The futur of frontend frameworks
![](https://i.imgur.com/KpjJ0eV.png)
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
![](https://i.imgur.com/uX8k43j.png)
What do you think ?
The death of JavaScript
By Franck Boucher
The death of JavaScript
- 192