by _fat_santa · 4y ago · 0 comments
I'd rather write 5 lines of code using a library that I might have to replace later than write 100 line of code to future proof my function from the start.
I think there is a lot of merit to not using libraries. It might be a bit too strong to have a principle to never use libraries, but there are many libraries that provide way more than most projects need.
Also, who cares about future proofing for some unknow future. Write what solved the problem and then if another problem arises in the future - solve it then.
For example, the migration guide for react-query: https://tanstack.com/query/v4/docs/guides/migrating-to-react...