London unit test school: test libraries like a boss
In the previous article, we showcased two schools of writing unit tests named from two cities: London and Detroit. They differ in how big (or small) the unit is. Now it’s time to make a deep dive into the first of them. London school assumes that a unit is usually a single class, or a […]
London and Detroit schools of unit tests
London and Detroit schools are two popular ways of writing unit tests for our applications. They differ in several details, notably the answer to the question “what is a unit”. It’s likely that you already know them, just not by their names. We may think that they compete with each other, however each has its […]
On-call duty: prepare your team for unknown
In today’s world, the stability of IT infrastructure becomes more and more critical. The companies must respond to failures at any time of the day. For developers, this means on-call duty. Of course, to make it work, the developer must have enough skills to find the root cause and resolve the problem. In this article, […]
A word on recent Slf4j and Spring incompatibility
Slf4j is a popular logging facade for Java ecosystem. It separates libraries from the logging backend by providing a common logging API. It is the developer who picks up the actual backend. This setup has been working great for years. Many developers have already forgotten, how shattered the world of Java was in its early […]
Zip operator in reactive programming
Today we will see, how to use Zip operator in reactive programming. It is useful when writing microservices. Sometimes, we need to fetch some data from a group of services. Then, we wait for the requests to complete. Finally, we process the results. Making requests one by one would be very inefficient. However, Zip operator […]
Kotlin Native and Raspberry Pi: multiplatform projects
This article concludes the short series about using Kotlin Native for writing Raspberry Pi applications. So far, we have successfully created a sample IoT project in Gradle, and bound a C library into our codebase. Then, we used them to show some content on an SSD1306 monochrome display. Now it’s time to add a HTTP […]
Kotlin Native and Raspberry Pi pt. 2: SSD1306 display
Last week, we started building a Kotlin Native application running on Raspberry Pi. The first part focused on the hardware part and preparing a Gradle build script. Today we are ready to write some actual code. Our goal is programming a monochrome display with SSD1306 chipset to show simple graphics and text. We will learn […]