Please don't make websites dark mode only. This is terrible for accessibility. I have astigmatism and can't read more than a few paragraphs. https://medium.com/@h_locke/why-dark-mode-causes-more-access... If the issue is not wanting to spend a bit of effort to implement prefers-color-scheme then light mode is a much better default option.
Building a front end framework – Reactivity, composability with no dependencies
41–50 of 80 posts
Re: Building a front end framework – Reactivity, composability with no dependencies
#42Example, RoR already provides powerful good library like SimpleForm. Now i want to turn this html form into a React form, how ?
Re: Building a front end framework – Reactivity, composability with no dependencies
#43New front end frameworks that claim leaps in simplicity feel like the violate some kind of no free lunch principle to me. If they’re that simple, then I’m willing to bet they make some use cases very difficult or impossible
Re: Building a front end framework – Reactivity, composability with no dependencies
#44New front end frameworks that claim leaps in simplicity feel like the violate some kind of no free lunch principle to me. If they’re that simple, then I’m willing to bet they make some use cases very difficult or impossible
Depends on the definition of simplicity. People say they want simple, but then really want easy. The most easy is always somebody doing the work for you. I got tired of hearing people mention easy when really they probably mean some combination of fearful and/or lazy, so I chose to define easiness: https://github.com/prettydiff/wisdom/blob/master/Easiness.md If developers really wanted simplicity or to be done with w…
Re: Building a front end framework – Reactivity, composability with no dependencies
#45New front end frameworks that claim leaps in simplicity feel like the violate some kind of no free lunch principle to me. If they’re that simple, then I’m willing to bet they make some use cases very difficult or impossible
Using custom elements and shadow DOM like this post is a big part of that. Custom elements give you a built-in component module, shadow DOM gives you compositions and style scoping.
I think using proxies like this post is a challenging because proxies are very hard to get correct when dealing with methods, collections, object identity, privacy, etc. but it turns out that many applications do just fine with a simple Redux-like store / action / subscribe system for data.
I personally think the project I work on (https://lit.dev) hits a sweet-spot of simplicity vs complexity because it also gives component reactivity, declarative templates, embedded CSS, with standard syntax and no build tools required. In more than 400 LoC, but only by ~3x.
Re: Building a front end framework – Reactivity, composability with no dependencies
#46Lost me at web components. What a miserable DX and inconsistent mess that is.
Re: Building a front end framework – Reactivity, composability with no dependencies
#47This is great! I've been looking for a framework with exactly these goals. I've been using vanilla JS and custom elements and feeling like I'm writing too much boilerplate, but all the frameworks I've tried are too heavyweight.
Re: Building a front end framework – Reactivity, composability with no dependencies
#48Nice write-up, I look forward to seeing how Strawberry progresses. I keep a list of JS front end frameworks where no build step is required at https://unsuckjs.com/ . I'll add this there (and a few of the others mentioned in the comments here).
We're actually removing that in the upcoming 3.0 branch though.
Re: Building a front end framework – Reactivity, composability with no dependencies
#49Earlier quoted context omitted.
Not always, some can hit the sweet spot of being simple in all phases of development and quick to learn. They are super rare though and their lessons are forgotten; industry often standardizes on inferior things with better marketing.
What are some examples?
Re: Building a front end framework – Reactivity, composability with no dependencies
#50Please don't make websites dark mode only. This is terrible for accessibility. I have astigmatism and can't read more than a few paragraphs. https://medium.com/@h_locke/why-dark-mode-causes-more-access... If the issue is not wanting to spend a bit of effort to implement prefers-color-scheme then light mode is a much better default option.
So I prefer black letters on light background.