
Dev Angular ☄️ & Mécanicien du sommeil 🛠️ Je partage mes découvertes et mon expérience en programmation ainsi que sur le sommeil. 🐕🦮🐈⬛🐈🐢
Joined March 2012
- Tweets1.8K
- Following489
- Followers86
- Likes6.9K
Replying to @devinjameson
@devinjameson 1/7 First of all, I really appreciate what you're doing with Foldkit. It feels like a genuine attempt to raise the bar in frontend development, both technically and architecturally. I do have a few reservations, though.
2
78
6/7 I could be wrong about some of these points. These are just my initial impressions from reading the documentation, without having actually built anything with Foldkit yet. I'm curious to see how these architectural choices play out in practice.
1
7
Hi @RyanCarniato
I came across a really interesting pattern in Solid.js v2 that I think is pretty amazing.
With the help of AI, I quickly implemented a similar mechanism, probably less mature, but with one aspect I really like: stronger type safety around computed values that
1
1
96
depend on async state.
If I try to use one of those computed values outside the block that handles the fallback while the async state is unresolved, I get a compile-time error.
I don’t think Solid.js covers this case today, but I might be wrong,
1
40
I haven’t tested it thoroughly yet.
Sharing an example here:
stackblitz.com/github/ng-ang…
stackblitz.com/github/ng-ang…
18
As you can see in the screenshot below, I’ve set up my craftService utility.
Its purpose is to replace my store (called craft).
What’s its goal?
1 - Stay based on Angular’s injection system
2 - Easily pass inputs
3 - Track dependencies between services
...
1
130
But by going through this system, I know that ApiService is a dependency of my current service.
And the best part is that I went much, much further by integrating most of the features I’ve been presenting in my recent posts.
It’s still experimental, but the result is insane!
1
56
Here is my (experimental) state management library
Handles server state
Handles business exceptions
100% declarative and reactive
Designed for composing logic at multiple levels
100% type-safe, with types inferred whenever possible
ng-angular-stack.github.io/c…
1
1
60
The idea: each “primitive” has its own responsibility and encapsulates its logic. This logic can be composed through insertions at multiple levels. A store is available to orchestrate these primitives, and can itself be composed of other stores.
1
42
craft-ng — Type-Safe Reactive State Management for Angular
𝐏𝐫𝐨𝐦𝐨𝐭𝐞𝐬 𝐝𝐞𝐜𝐥𝐚𝐫𝐚𝐭𝐢𝐯𝐞 𝐚𝐧𝐝 𝐜𝐨𝐦𝐩𝐨𝐬𝐚𝐛𝐥𝐞 𝐜𝐨𝐝𝐞 𝐰𝐢𝐭𝐡 𝐥𝐨𝐠𝐢𝐜 𝐦𝐚𝐧𝐚𝐠𝐞𝐦𝐞𝐧𝐭 𝐮𝐭𝐢𝐥𝐢𝐭𝐢𝐞𝐬
ng-angular-stack.github.io/c…
#angular
1
62
Romain Dev🅰️ & Sommeil retweeted
🔴⚠️ [URGENT]
Comprenant l’ampleur de la mobilisation agricole qui vient, le gouvernement français a fait pression pour censurer notre compte.
Help @elonmusk (svp identifiez-le massivement en commentaire pour qu’il empêche ça)
Romain Dev🅰️ & Sommeil retweeted
Replying to @superkevin54
🔄 407 mensonges documentés de Macron.
Ce n'est pourtant que la pointe de l'iceberg : à un par jour depuis 2017, le dossier ferait 3000 pages.
Voici l'autopsie de la mort de Vᵉ République. 👇
giak.substack.com/p/407-mens…





