Travis CI is a sophisticated continuous integration and deployment service. It integrates with GitHub and runs tests on events like commits or pull requests. At this point, we published two hapi plugins. Testing both plugins is an essential part of our development flow to know they are mature and solid. […]
Tags Tutorials
Retrofit is an excellent library to load data from an API or website. In a previous tutorial, you’ve learned how to load data from Wikipedia with jspoon. However, we didn’t cover displaying that data. In this tutorial, you’ll use a RecyclerView to display the section titles of a parsed Wikipedia […]
Returning the result of a long-running function at a later time is an important aspect of programming. A lot of high-level programming languages have the asynchronousity build in (e.g. C# with delegates) or it’s part of the language nature that it even leads to a callback hell (Node.js). Java/Android doesn’t […]
While implementing the first routes of your REST API, you noticed that requesting all shows returns ALL shows. With a growing set of TV shows, your API response will grow respectively. To reduce the amount of outgoing JSON data, implement pagination and let users fetch data when needed. To continue […]
Testing in hapi builds on top of a single method: server.inject. Injecting requests is a core element in testing your hapi app. A previous tutorial walked you through the basics of injecting requests to test route handlers. What we didn’t cover there is the ability to inject requests with payload, […]
Gson is awesome in making conversion from JSON to Java classes easy for us developers. With a few lines of code, you can pass JSON and get fully-mapped Java objects back. However, one pain point of using Gson is setting up appropriate Java POJO classes. Creating a POJO class based […]
A lot of readers on our Retrofit series are just starting out with developing software or are new to Java/Android. We’re really happy to welcome all new developers! We’ve received many questions, which were caused by implementing apps with Retrofit, but not actually specific to Retrofit. Consequently, we decided to […]
While creating the Futureflix API, you noticed that the JSON representation of documents contains the _id and version key __v. The _id field feels wrong due to the underscore prefix, so let’s remove it and keep only the id field. The version key __v isn’t necessary in the response at […]
One day, my friend sent me some images to test my algorithm on. The algorithm worked just fine, and I got everything running through. When analyzing the results, however, I saw that some images had been rotated! I really couldn’t understand the reason. Nothing in my algorithm performed any rotations, […]
Higher-Order Components (HOCs) are an interesting technique in React used to refactor similar components that share almost the same logic. I know that it sounds abstract and advanced. However, it is an architectural pattern that isn’t specific to React, and hence you can use the approach to do lots of […]