Ask HN: What is your preferred light weight stack for personal projects?
21–29 of 29 posts
Re: Ask HN: What is your preferred light weight stack for personal projects?
#22PoC: Python + file system as a database
If I actually use it a lot or performance is bad then I tweak the stack. Usually persistence is the first thing upgraded to SQLite. Then, if it's an HTTP project, I usually throw in jinja2 templates to make editing the layout is easier. Finally, if it's something I expect to always be up I'll rewrite it in Rust.
PoC w/ web front end: Python + file system as a database + fastAPI/Flask + HTML/JS/CSS as python strings
Rust doesn't have everything under the sun, so sometimes I'll split the service into two: one which handles requests over a named pipe or unix socket in python and the front end in rust.
Rust Services w/ web front end: Rust + axum + askama + SQLite via tokio-rusqlite Python Services: Python + asyncio using asyncio.loop.add_reader and file descriptors to attach to the named pipe or unix socket.
Re: Ask HN: What is your preferred light weight stack for personal projects?
#23For the backend I'll use MySQL or PostgreSQL and language/framework I'm interested in, e.g. Go+libs, F#/Giraffe, Elixir/Phoenix, Kotlin/Javalin+JDBI, etc. Even Python/Web2py or Php/Yii2 or Ruby/Rails works alright sometimes.
I'm not much of a fan of ORMs that have a dsl that differs from SQL query composition patterns, JPQL/Hibernate is pretty bad.
Edit: If I were to make a typical/bland mobile app, I'd probably use Dart/Flutter rather than native (and certainly not React-native).
Re: Ask HN: What is your preferred light weight stack for personal projects?
#24Python for things related to libraries, etc.
Re: Ask HN: What is your preferred light weight stack for personal projects?
#25Obviously you move on from it, but Im unaware of anything with pretty much everything in one place like it.
Recently I've been using Dart and Flutter. I can't complain at all.
Re: Ask HN: What is your preferred light weight stack for personal projects?
#26Re: Ask HN: What is your preferred light weight stack for personal projects?
#27Re: Ask HN: What is your preferred light weight stack for personal projects?
#28I am using old school php like this: ``` And tags of course, with vanilla JS. Super quick and reliable. No layers.
This seems great for ultra lightweight applications. Do you ever lean into a framework for more advanced functionality? I don't think I'd ever want to handle user 2fa authentication in a tag for example.