Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How would you rewrite what you’re working on?
1 point by withinboredom on Nov 21, 2022 | hide | past | favorite
Every project I work on, as a thought experiment, I like to think about how I might approach the project from scratch, knowing all the things I know today. Sometimes it leads to actual proposals on new features or architectural changes, based on those thought experiments, but rarely. Obviously it’s not a good idea to actually rewrite things, but it’s fun to think about.

For example, one thing that has come up repeatedly in the last year is thinking of ways to remove React/Vue/etc and the “front end” entirely. Not that it’s necessarily a bad thing, but it results in a lot of duplicated effort (validation, business logic, etc) and maintaining multiple presentation logics (API, front end, mobile apps). I’d probably explore using something like htmx combined with switching off of the Accepts header to return a JSON or HTML response. Or maybe rewriting everything in a language that can run (or be compiled to run) in the browser.

Anyway, knowing everything you know today about your current project, how would you rewrite it to avoid or solve your current pain points?



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: