3 ms·
I find it's rather annoying that I specifically made the point that namespace allows grouping things and you just "psst have you heard of ...modules"? Just cre
by nsonha 1y ago
I find it's rather annoying that I specifically made the point that namespace allows grouping things and you just "psst have you heard of ...modules"?
Just create a new file for every group of thing? That's nice, do you create a new file for every function and all its options and error types?
- WorldMaker 1y agoYes, if that's the organization structure that makes the most sense for that project. Arguably that's the most common React organization pattern going a long way back whenever Components are functions you generally have one function per file, plus a bunch of extra types for options/error types.
- nsonha 1y agonot all code is a React component. And enforcing one component per file is just gonna encourage bloated components (because who likes heaps of tiny files?). I would not cite every front-end convention as an inspiration for sensible engineering.