Re:I’ve become worse at programming
by problems on Tuesday May 23, 2017 @03:37PM
(#14404494)
This is exactly the way I've gone - I have a "projects" folder full of shit that just solves a problem for me in the quickest and mentally easiest way possible. I go learn new technologies only when they improve my ability to do that.
[ Parent
| on HN ]
I've started doing this as well, and I'm finding often my solutions end up being simpler, better and have less dependencies than the go-to solution anyway.
For example, here's a React 'collapse' component, as people commonly use for accordions.
https://gist.github.com/JonathonAshworth/b401810b965149348d0...
It has 1/10th the code of rc-collapse (the 'go-to' solution it seems), and 4 less dependencies. And it's simple enough that basically any competent Javascript programmer can edit the code if they want slightly different functionality.
Importing NPM modules for this stuff is madness