Solenya: Micro-framework in TypeScript
github.com
github.com
Main page w/ links to other resources: https://www.solenya.org/
Fun example app built w/ solenya: deep learning to recognize digits in your browser: https://www.solenya.org/deep-learning
Real world app built w/ solenya: code music in your browser: https://www.motifn.com/
In the composition sample code [1] I see two counters in the code, but only one shows up in the rendered view. Am I missing something? I would have expected two independent counters.
[1] https://stackblitz.com/edit/solenya-samples?file=app%2Fcompo...
Spot on. That describes a majority of mainstream libraries in JS today.
Note the inclusion of a state management library for an apples-to-apples comparison, since Solenya has intrinsic state management. Also note that I'm firmly NOT in the "all you need is the V in MVC" camp. Dealing with state is one of the trickiest aspects of writing scalable code that I've sought to address. There's an excellent video that discusses state management in large applications here (in the context of Angular, but the principles apply generally): https://www.youtube.com/watch?v=eBLTz8QRg4Q
My goal has been to deal with these issues in a way that works for both small and big apps. Previously, I dreaded having to make the decision at the start of an app: "is this app complex enough that I have to pay the tax of using a state manager?", where there's two very different ways of writing the application and I had to cross my fingers whether I'd made the right choice. The solution to this dilemma with Solenya, has been to make the tax of having state management so low that it's always on, whether the application is big or small.