Slide 1

Slide 1 text

A DIY Guide To Building Your Own Rendering Engine

Slide 2

Slide 2 text

Francesco Strazzullo (AKA Strazz) @TheStrazz86 (Follow me on Twitter!) Ego Slide

Slide 3

Slide 3 text

WE DEVELOP DIGITAL PROJECT TOGETHER WITH YOU.

Slide 4

Slide 4 text

Start With Why

Slide 5

Slide 5 text

Why should you learn to build a Rendering Engine?

Slide 6

Slide 6 text

Let me tell you a story...

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Some years ago, we had to create a new front-end application on top of an old Java Framework...

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

We couldn’t add new dependencies...

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

The only available libraries were jQuery and underscore

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

We delivered the project, but our team was unhappy

Slide 15

Slide 15 text

Photo by George Bonev on Unsplash

Slide 16

Slide 16 text

Microwave spaghetti bolognese by BBC Food

Slide 17

Slide 17 text

We panicked

Slide 18

Slide 18 text

“Never Manipulate the DOM” Every JavaScript Developer

Slide 19

Slide 19 text

Manipulating DOM is hard

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Manipulating DOM is important for a frontend developer

Slide 22

Slide 22 text

We should be able to “own” rendering code

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Principles

Slide 25

Slide 25 text

Choose a simple Architecture

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

YAGNI (You aren't gonna need it)

Slide 28

Slide 28 text

“Premature optimization is the root of all evil” Donald Knuth

Slide 29

Slide 29 text

Performance is UX

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

stats.js http://mrdoob.github.io/stats.js/

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Eat The Frog

Slide 34

Slide 34 text

https://github.com/francesco-strazzullo/jdsay-talk-2019

Slide 35

Slide 35 text

What's next?

Slide 36

Slide 36 text

Event Handlers

Slide 37

Slide 37 text

Web Components

Slide 38

Slide 38 text

What I learned

Slide 39

Slide 39 text

Manipulating DOM is (not so) hard

Slide 40

Slide 40 text

A custom Rendering Engine can live in harmony with frameworks

Slide 41

Slide 41 text

It’s not a black or white solution

Slide 42

Slide 42 text

How to decide if it’s a good solution?

Slide 43

Slide 43 text

To be continued... https://medium.com/@TheStrazz86/framework-compass-chart-d3851c25b45d

Slide 44

Slide 44 text

One last thing...

Slide 45

Slide 45 text

https://www.apress.com/it/book/9781484249666

Slide 46

Slide 46 text

http://frameworklessmovement.org/

Slide 47

Slide 47 text

Thanks! Francesco Strazzullo [email protected]