Decorator pattern in Kotlin – Design Patterns

Nowadays, optionality is everywhere. Typically, before purchasing an item, one can choose among multiple configurations, models, and kinds available.

The decorator pattern will allow you to implement a dynamic code structure where the new behaviors can be applied to the basic object.

It increases your optionality.

Continue reading Decorator pattern in Kotlin – Design Patterns

Design patterns – do we still need them?

Design patterns are a set of solutions for the most common problems in software design. The most commonly used patterns came from the book published in 1994. The question is, do we still need them in our modern software projects?

The short answer is: yes, we do. Wanna know the details? Read more.

Continue reading Design patterns – do we still need them?

HTTP Basics – 401 Unauthorized vs 403 Forbidden – what is the difference?

Have you ever wondered what is the difference between 401 and 403 status codes in HTTP?

In this short text, I’m going to describe what is the main difference between 401 and 403 status codes. I hope it will help you with better API design.

So, let’s begin.

Continue reading HTTP Basics – 401 Unauthorized vs 403 Forbidden – what is the difference?

HTTP Basics – 10 HTTP status codes you need to know

Let’s take a look at the HTTP status codes.

In this text I’m going to walk through the 10 most common status codes you may see working with HTTP.

I hope it will help you to understand how the HTTP works or refresh your knowledge and help you design better APIs.

Continue reading HTTP Basics – 10 HTTP status codes you need to know

HTTP basics – PUT vs POST vs PATCH, what is the difference?

While designing our APIs, we often need to make a decision, which method do we’d like to choose to create a new resource on the server.

Will it be POST or PUT?

But hey, wait a minute, there’s still a PATCH method. Will it be suitable for this purpose?

In this short text, I’m going to go through all these methods and show you what are the best use cases for each of them.

Continue reading HTTP basics – PUT vs POST vs PATCH, what is the difference?

Safe methods in HTTP – what do you need to know about them?

In the previous text, we familiarize ourselves with the concept of the idempotent methods in HTTP.

Let’s talk about safe methods today. What does it mean? Does it have something to do with HTTPS? Well, not really 😉

Let me explain it. Continue reading Safe methods in HTTP – what do you need to know about them?

Idempotent methods in HTTP – what does it mean and why should we bother?

What are idempotent methods in the HTTP? Probably you’ve been asked this question on the interview, or maybe you see it for the first time.

No doubts, it’s a concept which you should know in order to create good and fault-tolerant  HTTP-based APIs.

In fact, idempotent methods in HTTP are not so complicated as their name may sound. So, let’s begin.

Continue reading Idempotent methods in HTTP – what does it mean and why should we bother?

HTTP basics – what do you need to know about it?

In this text, I’m going to cover all the basic information that every web developer should know about the most basic building block of the modern web, which is HTTP (in my humble opinion).

Due to its continuous popularity, I’m going to focus on HTTP/1.1 mostly.

Continue reading HTTP basics – what do you need to know about it?