|
|
|
Ask HN: How do you start new projects?
|
|
3 points
by josepmdc
1971 days ago
|
|
I often find myself wanting to start a new project but I always find the initial setup to be overwhelming. I start asking questions like "What project structure should I use?" or "Is this library the best one for my needs?". I waste a lot of time on that initial research up to a point I get tired and abandon the project. So, what process do you follow when starting new projects? |
|
Clone a project that you respect a lot; it could be a library, a framework, or a database. Anything.
Go into that directory and type:
Then, for the first ten to fifteen commits' HASH, do: Do it for many projects that matter and that are useful and popular. You'll find one thing in common: the structures in the "initial commit" are most likely long gone.Obsessing about getting things right in order to get started makes prevents you from getting started and getting things done. This is a malady.
None of what you are obsessing about matters or will survive.
You want to start? Write a text file where you explain what your code does, then write the code that does it. If you are writing a library, give usage examples of the API. Shop it around if you're building it for others [does this make sense to you?]. Then write the backend to make that API real.
But, a great way to start is to write code snippets and functions that do what you want, put them in a utils file, add to it, and then refactor it.