Ask HN: Do you use starter/boilerplate code for projects?
Do you have favorite stack ready for any application?
How much time do you spend on researching frameworks/stacks before coding?
How much time do you spend on researching frameworks/stacks before coding?
8 comments
[ 1.7 ms ] story [ 29.0 ms ] threadIn general, I don't like code generators, I like to understand what I'm doing from the beginning and add stuff when I need them.
But I do have a set of tools that I know and that I end up setting up in my projects.
For Javascript, it's:
For Python, it's: For Elixir, it's:Yeah I also dislike too many batteries included before actual development, but I like the idea of creating own starter template that is usable in every situation for given set of usecases.
If I had a template (which is a fancy word for copy-pasting), I wouldn't do that and slowly but surely my stack would be out of date.
Starting a new project is the moment when you reconsider your previous choices.
Pre-existing templates may be more powerful and less buggy but I prefer to keep unneeded dependencies out of my projects. Writing my own templates also forces me to learn how everything fits together (and how sometimes it doesn’t).
The trade-off has been worth it for me so far.
When is a project for myself I’m personally more interested in understanding how my code works (I mean, I don’t need to know the internals of sqlite…)
For personal project, I wouldn't find them that useful unless they are clean enough that I can understand what they are, what are they doing and how they are doing it, instead of me starting from scratch.