4 points · by SandroRybarik · 5y ago · 8 comments
How much time do you spend on researching frameworks/stacks before coding?
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:
- Typescript
- Apollo server/client
- Mocha, Sinon, Chai
- Vue, Vuex with Bulma
For Python, it's: - Poetry
- Pytest
- Pyright (type checking)
For Elixir, it's: - Phoenix if needed (not using the generators)
- ExDoc
- Whatever lib I needYeah 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.
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.
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.