VDOM vs lit-html - HTTP203

  Рет қаралды 41,911

Chrome for Developers

Chrome for Developers

Күн бұрын

Пікірлер: 54
@MaxArt2501
@MaxArt2501 7 жыл бұрын
If HyperHTML is so similar to lit-html, and predates lit-html, and had some traction already, and it's actively maintained, and it's currently more powerful, and has Node and NativeScript implementations... Why didn't you guys promote HyperHTML right away? What's the reason for lit-html?
@adiorthotos
@adiorthotos 7 жыл бұрын
Asking the right questions.
@dassurma
@dassurma 7 жыл бұрын
I am not sure what you are accusing us of. Neither of us wrote lit-html. I have been playing around with lit-html and Jake has been playing around with HyperHTML. I don’t think we made one appear better than the other. Feel free to take a look at both (or any other library that takes a similar approach) and form your own opinion.
@MaxArt2501
@MaxArt2501 7 жыл бұрын
Surma Nah, I'm not accusing anyone of anything. It was a legit question, asking was the rationale behind lit-html. I know the author is Justin Fagnani, he's a great guy and of course he's free to do whatever he wants, but I was hoping some of you guys could know something more about it. The matter is that HyperHTML has been showing some degree of maturity for a while, where, of course, lit-html is still in its infancy. One of the most common saying in development is to not reinvent the wheel (something that I actually like to do from time to time), so if lit-html isn't "reinventing the wheel" what's its purpose that HyperHTML isn't targetting or just doing differently?
@punio4
@punio4 7 жыл бұрын
I also kinda got this feeling that people are actively avoiding talking about hyperHTML for some time now. And it's not like Andrea hasn't been promoting the library to the best of his ability. But as soon as the guys on polymer summit have shown lit-html as a proof-of-concept lib, the whole dev world has been acting like it's the second coming of Christ. While HyperHTML, which has been actively developed and used in production for a year now, hasn't been covered by _anyone_. This is the first time I've actually seen anyone mention it. Just feels like there's a bit of politics and tension going around it.
@MaxArt2501
@MaxArt2501 7 жыл бұрын
Ivan Čurić Eh, it's understandable to think that way and I really hope it's not a matter of politics indeed. Hopefully, this video relieved me a bit about that since Surma and Jake explicitely mentioned hyperHTML and acknowledged its value, so it's not like a taboo word among Googlers. So, in the end I'm just hoping there will be something about lit-html that we just can't see right now because it's still in an early development stage. Wondering what the future will reserve for us.
@billwindsor4224
@billwindsor4224 6 жыл бұрын
@Surma and @Jake Archibald - great job on this; an excellent focused highlights on key concepts for lit-html, HyperHTML, and VDOM data binding. *Thank you* for doing this.
@xseman
@xseman Жыл бұрын
Lit-element is a fantastic leap towards a web framework that follows web standards and represents the future.
@MajorBreakfast
@MajorBreakfast 7 жыл бұрын
I'm curious whether lit-html will be able to replace the current data binding system of Polymer. For that it must bring similar performance and features to the table. The library is super tiny, but that's of course only an advantage once you're able to drop the current solution. I really like that people like Justin are trying new things. The directives API seems to be powerful enough to be used as a target for Polymer's current data binding system.
@justintaddei
@justintaddei 7 жыл бұрын
hyperHTML . . . Hyper Hyper Text Markup Language. Just seems funny to me.
@Textras
@Textras 7 жыл бұрын
Good video guys. Rare to see such an advanced conversation on DOM principles. Was looking at lit yesterday. Would love more content specifically like this and deep diving into other DOM related material
@jimfoley2690
@jimfoley2690 3 жыл бұрын
What does Surma say to watch in the beginning of the video?
@justinoneill2837
@justinoneill2837 6 жыл бұрын
Am I right in assuming that Lit HTML and/or Hyper HTML is "kind of" a replacement for libraries like Redux? Sorry if that question is irrelevant, but from some of the points you made @Surma, it sounds like that might be the case?
@anthonyarostegui409
@anthonyarostegui409 6 жыл бұрын
Actually, demos made with litHtml works with redux. LitHtml doesn't replace redux but the VDOM
@justinoneill2837
@justinoneill2837 6 жыл бұрын
Gotcha. Can't wait to sink my teeth into P3.0!
@anthonyarostegui409
@anthonyarostegui409 6 жыл бұрын
Polymer is already out, check it out
@nibmz7
@nibmz7 3 жыл бұрын
I've used lit-element and react and I'm glad I've found this video. Always wondered how they both work differently under the hood. If lit-element has an official hooks way of writing components, it'd be really awesome 😎.
@TheSlarkInn
@TheSlarkInn 7 жыл бұрын
Dear Surma and Jake, This is exactly how Vue works (hoists out static templating content also)
@andreagiammarchi6110
@andreagiammarchi6110 7 жыл бұрын
the main difference is that no tooling, nor build time, is needed/added to use hyperHTML. A quick comparison of get-started examples Vue vs hyperHTML here: viperhtml.js.org/hyperhtml/examples/#!fw=Vue.js&example=Todos%20Component
@gokatz
@gokatz 7 жыл бұрын
Hey Surma , I'm not a polymer guy ;) I understand this as handlebars of javascript. Is it so??
@dassurma
@dassurma 7 жыл бұрын
It’s a bit more than that. So “JavaScript Template Strings Literals” are like Handlebars, but built into the language. Both HyperHTML and lit-html are using Template Strings, but are much smarter when you render the same template *a 2nd time*. Those libraries figure out which parts could have changed in between renders and only update those instead of the entire thing. Hope this helps
@gokatz
@gokatz 7 жыл бұрын
Thanks for the time Surma :)
@DenisTRUFFAUT
@DenisTRUFFAUT 6 жыл бұрын
Is lit-html basically a cache solution for "JavaScript Template Strings Literals" ?
@jackninja1
@jackninja1 7 жыл бұрын
Didnt know you guys had a podcast, im gonna check it out!
@RakshakHegde
@RakshakHegde 7 жыл бұрын
What's the podcast called?
@code4chaosmobile
@code4chaosmobile 7 жыл бұрын
I have a quick question. Could we run the browser in frames per second? It would be interesting to see a website with each element refreshing to its own Accord. Just something about the idea of thinking of it in frames per second that could bring interesting style ideas unattainable in the way it is now
@mszado15
@mszado15 5 жыл бұрын
the browser works like this
@fazalhussain1599
@fazalhussain1599 2 жыл бұрын
And this link in my price payment for you but not this is the crime for my mind
@RevvItBham
@RevvItBham 7 жыл бұрын
I literally just "got" the name of the show HTTP203. #hilarious #clever
@dassurma
@dassurma 7 жыл бұрын
Some people call it HTTP204 :'(
@RevvItBham
@RevvItBham 7 жыл бұрын
BWAHAHAHAHAHAHAHA!!!! You're too much!!! And that is totally not true! Maybe HTTP206 that takes HTTP402 to be HTTP202
@JamesKelley1
@JamesKelley1 7 жыл бұрын
You should edit a version of the video containing only the giggles and put that on a 204 channel.
@samwight
@samwight 4 жыл бұрын
GlimmerJS has been doing this for a looong time.
@pwarelis
@pwarelis 7 жыл бұрын
Surma Interruptus
@martixy2
@martixy2 5 жыл бұрын
Wait... so HyperHTML is Hyper-Hyper-Text-Markup-Language... huh?
@JaihindhReddy
@JaihindhReddy 7 жыл бұрын
ECMAScript Tagged Template Literals.
@ColinRichardson
@ColinRichardson 7 жыл бұрын
What? No Webworker or Serviceworker ?
@jeffesoncosta14
@jeffesoncosta14 4 жыл бұрын
nice video
@BeingCreatives
@BeingCreatives 7 жыл бұрын
How to Join Google? I'm Adwords Certified.
@LarsRyeJeppesen
@LarsRyeJeppesen 7 жыл бұрын
2-way binding is evil.
@aammssaamm
@aammssaamm 5 жыл бұрын
They just do it in a wrong way.
@Nonenone-rj9yp
@Nonenone-rj9yp Жыл бұрын
I use lit I don't enjoy it. You end up writing way more code, its untidy and doesn't give you massive performance improvements.
@LarsRyeJeppesen
@LarsRyeJeppesen 7 жыл бұрын
React react react ... zzzzzzzzz
@AkshayAradhya
@AkshayAradhya 7 жыл бұрын
I think one of the guys here has a uninbrow and decided to shave it off right down the node ?
@billwindsor4224
@billwindsor4224 6 жыл бұрын
@Akshay Aradhya - do you have a comment on the lit-html software engineering concepts? (which is actually the topic of this KZbin post - just so you know)
@carloseliososasposito1276
@carloseliososasposito1276 7 жыл бұрын
COMO VAMOS A ENTENDER SINO HABLAN EN ESPAÑOL
@dassurma
@dassurma 7 жыл бұрын
Dann müssten wir ja auch Deutsch sprechen. Das wäre doch unfair ;)
@danielmejia7804
@danielmejia7804 7 жыл бұрын
Hahaha! :p
@fronbasal
@fronbasal 7 жыл бұрын
Surma Recht hast du!
@adiorthotos
@adiorthotos 7 жыл бұрын
Donde estas la biblioteca?
@miguelangelbastidasenrique6161
@miguelangelbastidasenrique6161 7 жыл бұрын
KZbin tiene traducción automática a los subtítulos...... así si se entiende
lit-HTML (Chrome Dev Summit 2017)
29:44
Chrome for Developers
Рет қаралды 47 М.
Class-based Tree Shaking - HTTP203
12:16
Chrome for Developers
Рет қаралды 26 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 9 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 30 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 9 МЛН
Page Lifecycle API - HTTP203
11:32
Chrome for Developers
Рет қаралды 14 М.
WeakMaps - HTTP203
6:31
Chrome for Developers
Рет қаралды 19 М.
120fps - HTTP203
7:39
Chrome for Developers
Рет қаралды 16 М.
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
ThePrimeTime
Рет қаралды 116 М.
Designing Modern UI with Lit Web Components
9:59
GitKraken
Рет қаралды 1,9 М.
Old vs New JavaScript - HTTP203
15:33
Chrome for Developers
Рет қаралды 41 М.
Polyfills - HTTP203
9:47
Chrome for Developers
Рет қаралды 21 М.
How to build your first Lit component
11:59
Lit: Simple. Fast. Web Components.
Рет қаралды 38 М.
Loop Tiling - HTTP 203
25:36
Chrome for Developers
Рет қаралды 28 М.
JavaScript for-loops are… complicated - HTTP203
14:17
Chrome for Developers
Рет қаралды 106 М.