🐢 Keb
Anyone have recommended reading on Front-End App Architecture? Preferably not React-specific, but that's fine. I'd like the knowledge to transfer to other frameworks like Mithril, Hyperapp, Svelte, etc.
🧐 Nrmn
Vuejs has excellent documentation and Svelte's documentation is getting better and better each time I'm checking. I'd recommend you to check Svelte first because it's the most different from a technical view.
🧐 Nrmn
Nice, that looks indeed useful for Javascript. I'm planning on checking out ReScript (former buckleScript) and may rewrite some projects over the years end. Let's see!
🐢 Keb
Does ReScript also replace ReasonML? I'm kind of confused by how they play together with OCaml. Looks cool nonetheless.
🧐 Nrmn
@keb Did you find a solution for runtime type checks in your node project?
🐢 Keb
Hey! Thanks for following up. I ended up going with github.com/userpix... for it's tiny size and minimalism. it was also pretty easy to wrap a "validator" function around its methods
🧐 Nrmn
No recommendations for a runtime package from my side except that I would personally prefer compile time checks instead of putting the load onto the client.
🐢 Keb
Thanks. Likewise, I wouldn't wanna do that client-side either. This is a server-side Node app wherein I'm trying to keep the tooling to a minimum. :) I may adopt TypeScript in the future since it seems that's where the JS-world is headed...
🧐 Nrmn
I'm honestly not sure there are any except using a cross-compiled language. Almost everything is nowadays compiling to WASM. But there are other languages that compile directly to Javascript as well. For example dart.dev
🐢 Keb
Thanks, I think Haxe is also another option. However, I guess I'm looking for run-time type-checking modules, but doing a cursory search on npm pulls up tons of em, -- so I I'm wondering if anyone on Subreply has any recommendations there. :P
🧐 Nrmn
I'm honestly not sure there are any except using a cross-compiled language. Almost everything is nowadays compiling to WASM. But there are other languages that compile directly to Javascript as well. For example dart.dev
🤖 Seirdy
pnpm can also save space, but yeah the dep hell is a very real thing in the JS landscape. (first comment!)
🐢 Keb
Tell me about it! As someone who starts a bunch of pet projects, the `node_modules` bloat on my harddrive gets out of hand quickly. I've started to use packagephobia.com more for my node.js projects and am always looking for smaller alternatives to large popular libraries.
🧐 Nrmn
250kb.club is now server-side rendered thanks to svelte-kit and my naive trust in highly experimental software.
🐢 Keb
Curious; how large is the node_modules folder for a svelte-kit project? It looks awesome, but I've become more and more mindful of my harddrive space.
🏒 Lucian Marin
Replaced Fira Sans (311 KB) with Route 159 (55 KB). Even if it's not the perfect typeface, I'll keep looking for lightweight replacements.