Halu
TTCTheo's Typesafe Cult
•Created by Halu on 4/22/2023 in #questions
Threw back out and cant get to computer, best way to code from my phone?
^
4 replies
TTCTheo's Typesafe Cult
•Created by Halu on 11/5/2022 in #questions
Will Copilot or other AI Code-Gen solutions *ruin* Advent of Code this year?
^
If not, how far away do you predict that point to be?
35 replies
TTCTheo's Typesafe Cult
•Created by Halu on 11/4/2022 in #questions
Site With Relational DB Schema Refs, Patterns, or Examples For Common Uses?
any good websites out there?
6 replies
TTCTheo's Typesafe Cult
•Created by Halu on 10/5/2022 in #questions
State Frustrations in Desktop Apps
I made an electron app recently that had me question where to handle state. I built a global store using pinia(vue) and it all worked perfectly.
Until someone asked me to pin reactive data on the mac tray.
The data is stored “too far forward” as sending updates to the tray requires calling back to electrons main process, then redirecting data to tray.
Not difficult, but suboptimal spaghetti. This had me realize that it makes more sense to store reactive state in the main process, so data only has to move "forward".
This has three issues tho…
1) how do you patch ui updates now? (qwik? nah nvm)
2) user interaction is now farther from state making some event handling a tad more tedious
3) we usually choose electron for code sharing with websites… this destroys that (unless you mimic context isolation/bridge with an iframe maybe?)
Has anyone tried managing state this way before?
or is there a better paradigm to pass frontend data to native elements that i missed?
2 replies
TTCTheo's Typesafe Cult
•Created by Halu on 10/4/2022 in #questions
Why is Prisma the exception to ORM hate?
I've never used an ORM, but for years have heard mostly negative things across various languages.
People throwing terms like anti-pattern etc.
Yet Prisma touts itself as the "Next-generation Node.js and TypeScript ORM" and people suddenly seem to be more lenient with the idea.
Random example:
https://twitter.com/matteocollina/status/1384900740754386946?lang=en
Why is this? What key criticism did it address to gain such popularity?
17 replies