Re:Ask HN: Do you use starter/boilerplate code for projects?
by SandroRybarik on Sunday June 20, 2021 @01:57PM
(#27572373)
Thanks for the comment.
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.
Re:Ask HN: Do you use starter/boilerplate code for projects?
by linkdd on Sunday June 20, 2021 @04:34PM
(#27573662)
Each time I set up a new project, I reevaluate the tools I use:
Is there a new major version?
Is my configuration obsolete?
Is there a better tool for the job?
That's how I switched from nyc to c8 for example (test coverage). Or when I upgrade hugo. Or look at new versions of Typescript, Bulma etc...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.
In 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: