APIful Blog We're obsessed with Web APIs




Feb

13

Statically Checking Web API Requests in JavaScript

Programming in the Stone-age

Writing JavaScript applications that perform HTTP requests to web APIs relies on the request URL, HTTP method, and request data to be constructed corrected via string operations. This can feel like going back to the stone-age, especially if you are a fan of statically-typed languages: you often ask “where is my beloved compiler”? Traditional compile-time error checking, such as calling a non-existent method in Java, is not available for checking whether such requests in JavaScript code. In this blog post, I am sharing with you our research prototype that can potentially rescue us from this situation, a static checker on web API requests in JavaScript. Thanks to the amazing co-authors Erik Wittern, Yunhui Zheng, Julian Dolby, and Jim Laredo, this work (see the full paper) has been accepted to the International Conference in Software Engineering (ICSE) this year.

Read More → Tags: , ,


Dec

24

Node JS Learning Curve

Reflecting on 2016, one of the life-changing events for me is joining the API Harmony team as a Research Staff Member. API Harmony uses a polygot micro-service architecture with various components in Node JS, Ruby, Java, and Python. My background is in Java, so it has been incredibly exciting to get to use these dynamically typed languages, learning a lot from my awesome colleagues. In particular, I got to work quite a bit in Node JS. As the year is closing, here’s a bit of a personal, light-hearted joke on Node and JavaScript.

Read More → Tags: , , ,