Hacker News new | ask | show | jobs
by TZubiri 2 hours ago
>No, you can't write 10 lines of code, you have to import a 100k LOC dependency

Common misconception, if you want to replace a dependency on a swiss knife you don't need to implement a swiss knife, sometimes you can just implement the last helix of the corkscrew.

1 comments

it's curious what you'd be building where you think you can hit the reliability of curl with a bash script.
a script ten lines long perhaps?
health check, check that website/webapp returns 4xx and some known keyword

api, GET url, content-type aplication/json, parse json

you can even invert it and make a server