Front-end engineer @ Immobiliare.it
Functional programming enthusiast
jsDay 2018 speaker & attendee
" Frameworks are an abstraction. They make a subset of tasks easier to achieve, in a way that's familiar to other users of the framework. The cost is performance - the overhead of the framework. The key is making the cost worth it." Jake Archibald.
Define UI and all it's mutations by using directly the platform
Let's start from building blocks
The native way to define your own elements in HTML
Very reusable (even across frameworks)
Good for generic components (like autocompletes, galleries, maps, moles, ...)
The polyfill can be conditionally loaded!
Simple, lightweight & powerful
Lives: 3 Score: 0
Putting state in closures may duplicate the source of truth
Let's try to use the DOM as state holder
It's better to optimize a small number of cases than everything
An imperative approach may lead to unpredicatble code
Functional Reactive Programming may be a solution
Let's try Callbag!
"A standard for JS callbacks that enables lightweight observables and iterables"
Lives:
This presentation is 100% vanilla js!
Any questions?