Live data from Hacker News

Ask HN: What is your preferred light weight stack for personal projects?

news.ycombinator.com

21–29 of 29 posts

Re: Ask HN: What is your preferred light weight stack for personal projects?

#22
Generally for side projects I start with a simple PoC and then iterate into a better fit for the projects needs. Most projects start out with the following PoC stack.

PoC: 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?

#23
I typically make a REST backend and client in Vue with all code in one repo that auto-deploys to a cloud VM and/or Nelify with a CDN for app and sometimes also the API.

For 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?

#25
This will be unpopular. For simple PoC stuff that require a GUI and SQL I'll reach for MS Access. It's so quick at getting something up and running pretty much immediately.

Obviously 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?

#28
post #5

I 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.

I havent had projects with auth, so i wont know if php or js is a good fit.
Post reply on HN