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

I see the JavaScript has all the async and callbacks while the Python is simple procedural. What are the benefits of the JavaScript version? It's definitely harder to grok for this newbie.

I also wonder what a plain ole RESTful API would look like. Why does everything need an SDK/library?

Ex:

  import requests //wish this was built in

  token = '07a3e79a-c34c-4603-9a87-3fa47678d37c'
  db = '51e71cb3-a40d-46bc-af3a-7bb77fde04a9'
  key = 'myKey'
  r = requests.get(f'https://easydb.io/{db}/{key}', auth=(token, ''))


I've open sourced the Python and JavaScript clients (https://github.com/EasyDB-io).

I'm also writing up a cURL section to throw on the main page. If you want to implement a client, have at err!

I'll even put a bounty of $5 (Paid in Stellar) for each client implemented.


I appreciate that, don't get me wrong.

Mine was more of a general rant on why every API seems to think it needs its own client. Simply passing JSON back and forth. What could be simpler? What do the clients do?




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

Search: