blog logo
CHICIO CODING
Coding. Drawing. Fun.
HomeBlogArtAbout me
blog logo
CHICIO CODING
Coding. Drawing. Fun.
A simple react hook to detect scroll direction
A simple react hook to detect scroll direction

How do you detect scroll direction using React hooks? Let’s find out in this new post. [...]

Contract testing asynchronous messaging with Pact and MockK
Contract testing asynchronous messaging with Pact and MockK

In the last weeks I worked with my colleague Felice Giovinazzo on a new feature for the refund process. Let’s see how we used pact to test a message-based interaction between two microservices with Pact [...]

A Domain Driven Design dictionary for newbies
A Domain Driven Design dictionary for newbies

In the last months, I started to hear a lot of stuff about Domain Driven Design. What is DDD? What does it try to solve? This is a post for all the newbies (like me) that are searching for a definition of what DDD is, which are its main parts and what is its main goal. [...]

How to test your Swift source code on Linux: locally and on Github Actions
How to test your Swift source code on Linux: locally and on Github Actions

Quick tips (useful for open source projects) for testing your Swift source code on Linux locally and with Github Actions. [...]

Better organize tests and run them against multiple configuration with Xcode Test Plan
Better organize tests and run them against multiple configuration with Xcode Test Plan

Recently I added a lot of Unit and UI tests to RangeUISlider, one of my open source projects. Let's see how I grouped them and run them against multiple configurations with Xcode Test Plan. [...]

Unit testing in Kotlin with JUnit 5 and MockK
Unit testing in Kotlin with JUnit 5 and MockK

I recently discovered MockK, a mocking library created for Kotlin. Let's see how it is possible to write modern unit tests with MockK + JUnit 5. [...]

Spring Boot + Kotlin Rest client cheatsheet: RestTemplate and Webclient
Spring Boot + Kotlin Rest client cheatsheet: RestTemplate and Webclient

During the last months I worked a lot with Spring Boot backend applications. In this post I explain how you can consume a REST api from a Spring Boot application using RestTemplate and (the new) WebClient. [...]

Swift Package Manager: bundling resources with a Swift Package
Swift Package Manager: bundling resources with a Swift Package

Recently I upgraded my ID3TagEditor swift package to the latest Swift tools version (5.3). During the upgraded I discovered that now you can bundle resources with your Swift package. In this post I will show you how you can do this, and also an interesting trick in order to be able to build a project as a Swift Package and as a standard project from Xcode. [...]

Create a service worker with Workbox, Webpack and TypeScript
Create a service worker with Workbox, Webpack and TypeScript

Recently I migrated my website to Webpack and TypeScript. I decided also to give a try to Workbox, a set of Google libraries to improve the creation of a Progressive Web App. Let's see how easy it is to create a PWA with this tools. [...]

Use UIKit components in SwiftUI: UIViewControllerRepresentable and UIViewRepresentable
Use UIKit components in SwiftUI: UIViewControllerRepresentable and UIViewRepresentable

Do you know that it is possible to use UKit components in SwiftUI? Let's see how you can use UIViewRepresentable and UIViewControllerRepresentable to use your UIKit based component or to fill the gap for missing SwiftUI API. [...]

Lazy loading of JavaScript modules by using dynamic imports and code splitting with Webpack
Lazy loading of JavaScript modules by using dynamic imports and code splitting with Webpack

Most of the time you have a big JavaScript codebase for your website but you need only a small fraction of it when a page is requested. Is it possible to load chunks of JavaScript code only when they are really needed? Yes you can with Webpack and its code splitting feature based on a syntax equal to the one of ES2020 dynamic imports. [...]