Category: Featured

Node.js / Express app generator: with ES.next, API validation, documentation, logging, and more

[Take me to the app generator] I’m at work on a new project. My team and I are building a highly scalable service platform and have elected to build it using the microservices architecture pattern. The platform consists of many microservices, each of which is typically owned by a collaborating team. Teams are empowered to make decisions and choose technologies that best fit the need. This means that services may...

Create a baseball-themed app powered by Weather Company Data for IBM Bluemix and DBpedia

Last summer, I wrote an article on developerWorks describing how to use the IBM Bluemix Weather Data service in combination with DbPedia to render a variety of information about Major League Baseball parks. The article takes you through the process of building a baseball-theme application on IBM Bluemix using the IBM Weather Data service, DbPedia, SPARQL, React.js, and Node.js. Check it out here and let me know your thoughts You...

Adapt jQuery.getJSON to an Rx.Observable with RxJs

Rx provides an incredible and fluent API to help untangle your asynchronous JavaScript code. Here we’ll see how to adapt jQuery’s getJSON method to an Rx Observable with only a small bit of code. Now that $.getJSON has been adapted to an Observable, we can full take advantage of all the goodness that Rx provides. For example, let’s ask Rx to automatically retry the request if it fails! I’ve also...

Asynchronous programming with Async / Await and the Scala Play Framework

Asynchronous programming has a number of advantages, most notably is its well touted ability to improve responsiveness. Asynchronous events occur independently of the main program flow and asynchronous actions are executed in a non-blocking, lock-free manner. This, ultimately, allows the main program flow to continue unimpeded, without blocking. On the flips side, asynchronous programming can be difficult to reason about. Many actions are often run simultaneously which can lead to complex semantics and...

Play Framework – Adapting Java 8 CompletableFutures to Play F.Promises

Recently, I have been playing around with Java 8 and the Play Framework (2.4RC1) – bad pun intended :P. As I worked to develop the codebase, I found the need to integrate with Java 8 CompletableFuture‘s. No big deal, right? At first, it didn’t seem to be, but as I continued coding, I quickly became very unhappy with how my code was turning out. The Play Framework for Java introduces...