21 points · by fi_investor · 2y ago · 52 comments
Please help by sharing the tools you're using or the tools that you recommend so I can check them out. Thank you!
For example, I built an experimental beat-aware video player in less than a day. And this was while I was first teaching myself Svelte. (This was before SvelteKit was even a thing.)
My freelance clients are often surprised how fast I can get them results. And I keep getting faster as I gain more experience.
- The SvelteKit starter template is like a collection of best practices for web development.
- The Svelte community is pretty helpful, too. (Both core maintainers and regular users.)
Here's one of the apps I'm currently working on:
- Vercel hired the founder as well as a few core-maintainers to just work on Svelte(Kit) full-time. So Vercel tends to have the best class support for SvelteKit.
- Other platforms like Netlify and Cloudflare have officially maintained adapters too.
- SvelteKit was designed as serverless-first, but Node and even static deployments (like Github pages) are supported, too
For everything else I use Laravel.
For web apps, I still use Astro/Cloudflare for the frontend. For the backend, I use Django Ninja, hosted as one of the many services I run on a Hetzner instance using CapRover.
Obviously deploying is manual right now since I have to SSH in and then pull and `docker compose up -d` but I could probably find something to bridge that gap.
Id be interested in seeing how CapRover can simplify all that for me...
Coming from Netlify/Vercel/etc this seems like it could be a better option.
I've been using it on a nights/weekends project. It's axum + some rails-esque QOL features.
Because it's rust the time to make a given feature might be slightly slower (10-20%?) than in python/js, but I've found you gain that time back almost immediately from things just working nicely the first time. Also refactors/feature rework are super easy.
The UI <-> DB flow for almost anything is very intuitive and quick to implement.
It’s not “quickly”, and I’d like to learn about faster ways too.
But the thing gp suggested looks much better, at least here: https://github.com/danawoodman/bun-htmx (see src/components, they use react-dom/server renderer to template-render tsx (also note that “tsx” I’m using is not a file format, but `npm i -d tsx`)). I guess I can try that in node too.
That said, I don’t see the “quicker” part here tbh, imagining my mithril code in htmx templating code doesn’t make a big difference, unless I am missing something. It’s the same parametrized html but on server. Not even a glimpse of RAD-like paradigm shift.
I guess htmx looks better if you’re using react but never allowed yourself a thought that it’s a useless esoteric bullshit everyone agrees to out of fear of being ostracized, which htmx removes silently (and it’s server-side). Mithril is just a vdom-based templater with simple autoredraw and doesn’t implement esoteric bs already.
I somewhat agree with gp’s “unpack json” part, although it’s not a big deal with types shared across ends. I just re-new Date’s after fetch and that’s it.
You send a request to a server from frontend, the backend responds with html and places it on the page where specified. Its much more intuitive and lower mental load than something like react or vue.
// go:embed frontend/*
Just plain HTML/CSS/JS. I’ve been trying out templ but I still prefer having static files I can host separately.