Ask HN: What are good tips for personal project hygiene?

https://news.ycombinator.com/item?id=33911973
by turkeygizzard • 4 years ago
2 2 4 years ago

I start a lot of seemingly one-off projects that I forget about, and then months later either want to reuse or share with friends. Unfortunately, it ends up being a hassle because I don't remember all the hacks I used to get things off the ground so I have to reread things to figure out what commands to run in what order etc.

I've learned some good tips from my work experience, but I've never really done 0 to 1 in a work setting without there being some previous infrastructure for me to work off of.

Some of things I'm thinking of

- dockerize

- all env vars go in a .env file

- avoid absolute paths

- DDL should be in re-runnable migration files

Are there any other easy wins that people could recommend?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com