Let’s say you are doing some refactoring. You have a big class that is doing too many things, and you want to carve a piece out into its own class doing its own thing. Following the responsibility pattern. A class should be defined around its ...
Deploying a package on the GitHub Package Repository (GPR) have already been covered. Now let’s have a deeper look at how to use that published package in your project. This time I’ll use the Kotlin package randomK which is a package that takes...
Avro Apache Avro is an open source data serialization system. You can also find documentation on confluent which may be more user-friendly. Avro is a schema format created and used with Kafka. Maps to JSON (works with many programming langu...
For this article I created an example gem sylhare/Vermelinho, obviously based on the Make your own gem from the ruby gem guide. Let’s check the set up, tests, and how to deploy the gem Create Gem You don’t need much to create a gem, only create...
Postman 📬 is a tool to easily send Rest, SOAP and GraphQL queries. It is one of the popular tool in its category among some alternative like Insomnia or paw (for Mac). Postman is using and sharing open source libraries, you can also contribute to...
Let’s talk about GraphQL which is a query language for an API. Meaning that contrary to normal REST APIS, with GraphQL APIs you can discover and query only the data you need form a single call. To implement a GraphQL API, let’s use Apollo server ...
In this article we’ll look at a Kotlin springboot project using a generated API from a “swagger file”. As usual, find the code in GitHub at sylhare/Petshop 🐶🛒. Code generation Using the petstore.yml example. We are going to use openapi-generator...
Jupyter notebook is a tool to interactively develop with python. When working with datascience, it integrates all you need smoothly in one place. It is thanks to the possibility of having different blocks of code, text or rich content in one file....
Simple Blockchain overview In a nutshell Let’s not go into too many details here, just a simplified version of how a blockchain generally work. There are a lot of information out there. A blockchain is not only for cryptocurrencies, it is a lik...
Ktor is a framework for building asynchronous (with coroutine) servers and clients in Kotlin. It’s made by the same people that made Kotlin. If you would rather not use a framework, you can check this article on How to use Kotlin for TCP with jav...