News for hackers. Stuff that matters.
Re:A React implementation of Spectrum, Adobe’s design system by tantaman on Wednesday July 22, 2020 @05:04PM (#23921565)
Not sure if its because I've been using React for the last 6 years and I've "fallen out of love" or it is actually starting to show its age but...

React, which was once the greatest thing to happen to UI frameworks, now looks like a very leaky abstraction.

The prevalence of `useMemo` and `useCallback` to get around perf issues, `useEffect` to try to interact with event systems outside of React, and `useRef` to save things that don't quite work when persisted in the component's state.

I'm watching Svelte with interest these days. It seems like we're ~1 year away from Svelte, or a framework very much like it (one that moves concerns into the compiler), taking off and revolutionizing things the way React did 7 years ago.

Re:A React implementation of Spectrum, Adobe’s design system by crubier on Thursday July 23, 2020 @03:34AM (#23925044)
I disagree. So far NO other UI library/framework than react offered the “interface as a function of state” paradigm. All others (Svelte, Vue partially) are based on templates with their ad-hoc syntax for ifs and maps/loops and so on. This is a non starter for me. I will consider other things than react, as long as they use this concept of interface as a function of state. This is non negociable for me at this point.
Re:A React implementation of Spectrum, Adobe’s design system by dbbk on Thursday July 23, 2020 @08:30AM (#23926585)
Can you clarify what you mean by "interface as a function of state"? All the templated-frameworks still fit this definition... they are reactive to the state of your component. In fact, they are more performant than React because their template syntax provides static analysis, so the app can be optimised at compile time.
Re:A React implementation of Spectrum, Adobe’s design system by tantaman on Friday July 24, 2020 @09:55AM (#23939509)
also, it is pretty amazing what you can do without a framework and how simple your code can be if you code in an "interface as a function of state" style.

example: https://github.com/tantaman/fk-your-frameworks-todomvc

Re:A React implementation of Spectrum, Adobe’s design system by tantaman on Friday July 24, 2020 @09:51AM (#23939467)
Svelte is technically "interface as a function of state"

But I do agree, custom template syntax is a non-starter.

Re:A React implementation of Spectrum, Adobe’s design system by atrilumen on Thursday July 23, 2020 @11:02AM (#23928043)
Choo-Choo!

https://choo.io

Re:A React implementation of Spectrum, Adobe’s design system by cheez on Wednesday July 22, 2020 @05:13PM (#23921653)
Interesting, hadn't looked into Svelte. I do agree that something _like_ it can be useful in the future. I currently have my own framework that does this at compile time for non-UI code for performance reasons. Previously, Weblocks did something similar for Lisp IIRC.