Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on An Ode to Shell Scripts.
It's weird syntax. For plenty of cases you need to store return codes somehow to act on errors etc.
If possible I prefer something like golang, I even prefer writing scripts in PHP.
At least I have a proper debugger, ide, clear functions and can easily handle errors.
Just try to use curl and act on non 2* code in a simple manner... Try to split up the content from potential API errors
It's weird syntax. For plenty of cases you need to store return codes somehow to act on errors etc.
If possible I prefer something like golang, I even prefer writing scripts in PHP.
At least I have a proper debugger, ide, clear functions and can easily handle errors.
Just try to use curl and act on non 2* code in a simple manner... Try to split up the content from potential API errors