Live data from Hacker News

Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

github.com

21–30 of 74 posts

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#21

If you want something that is similar but looks better and more mature, check out Mint (mint-lang.com - I'm the author)

Surprised I haven't seen this before. This looks quite good! I love the store, router and batteries default inclusion!

8 years and haven't hit 1.0, that's a bit of torture, no?

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#23
post #10

Since this is marked as a departure from HTML and has it's own syntax, I think this is a good point to improve upon JSX. - Remove curly braces from props and children canBeInParanthesis()) /> userName "Text contents" - Add punning (like how { age: age } becomes { age } in JS) const age = 40; / // explicit boolean attributes

Or (hear me out) we don’t need any DSL that doesn’t add anything while making code just more verbose compared to Js/ts.

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#24

Looks quite nice, I'm not 100% sold on having flow exposed (for, if) and plain text always escaped (wrapped in {''}), I suppose at least it encourages not having magic strings everywhere. There's some other details that look interesting like the @use feature. I like the reactive prefix concept but having had so many reactive headaches I'm interested in how this plays out. Overall it's a wait and see project for me wi…

I really like having to escape all the plain text. I think all the React-like code I’ve written has been at least 90% code and tags, not plain text, and the lack of escaping occasionally causes bugs (usually printing the name of a variable instead of its value).

Fair enough, on reflection I think I would lean towards escaping both as a principle of least surprise. There's something a bit 'doing magic' about the way it reads at the moment.

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#25

Earlier quoted context omitted.

This isn't proposing a standard, it's a new framework which takes inspiration from the other mentioned projects, while choosing a different set of trade-offs. This is just what it looks like when people try new stuff, and I don't think the snark of the comic is appropriate.

if frameworks are specifications, then a new framework is definitionally a new standard. it’s not an ISO or ANSI standard. but the point of the comic is, there are 10 web frameworks, we need one to be the best of all of them! there are 11 frameworks.

The comic works because the people creating the standard want to solve the problem of too many competing standards, but instead they just make it worse.

JS framework creators are not trying to solve the problem of too many JS frameworks.

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#26
I don't mean to sound reductive, but there's something exhausting about the conceptual approach that necessitates importing array primitives from a package. The react meets svelte concept seems cool, but maybe this particular syntax is just not for me.

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#27
It's great people experiment. Yet, after a quick glance the framework seems to break expected semantics for no gain? For example: the "component" construct auto-renders the JSX within the brackets instead of being a function that "returns a view as value" (if I understood correctly). I'm cool with breaking the "f(x)=>UI" but what for? The TS and VS Code integration is all fine and good but what's the gain of using JSX (again) instead of the beloved HTML-like Svelte markup? Have people ever loved JSX? Nostalgia maybe? Again, I'm all for tearing down the house but shouldn't we get more elegance or expressive semantics in return?

Still, great he did it I just hope he'll be bolder next time! Of the 7 mentioned features 3-4 are not actually about the language but minor tooling hook ins (prettier, VSCode,) ... maybe that's the wrong focus.

Either way, the strong similarity with other JS/TS frameworks (semantics & syntax) suggests that for really new ideas the community should look elsewhere? Perhaps Clojurescript or Laravel (PhP) ...

Re: Ripple – A TypeScript UI framework that takes the best of React, Solid, Svelte

#28

I feel like these functional GUI renderers are all trying to make JS something it is simply not. I want to render my view with instances of classes as a model.

Please keep OO away from web dev. The mess is bad enough and adding OO will only increase coupling.
Post reply on HN