Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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.



it's curious what you'd be building where you think you can hit the reliability of curl with a bash script.


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


a script ten lines long perhaps?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: