Comment

Comment by _fat_santa

It's almost funny how he starts off the article by saying he doesn't use libraries, then shows you a function for an API call he wrote that is ~100 LOC. Had this guy pulled in something like react-query, he could have written that entire hook in about 5 LOC.

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.

parent _fat_santa 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton