WebSockets vs SSE

WebSockets vs SSE

In today’s text, I want to take a closer look at Server Sent Events (or SSE for short) and WebSockets. Both good and battle-tested approaches to data exchange. I will start with a short characteristic of both tools – what they are and what they offer. Then, I will compare them according to eight categories, … Read more

Monad vs Functor vs Applicative: Functional Containers Summary

In this text, the final summary of my categories theory series, I will use my spotlight and take a closer look at the relations between all three previously described functional containers, namely: Functor, Monad, and Applicative. Below, you will find a comparison of them in terms of: Theory Laws Methods Possibilities & Use Cases Theory … Read more

OAuth Grant Types

Grey Key On Black Background

In today’s text, I will describe and explain OAuth Grant Types — the processes of authorization. I will start with a quick recap of the most basic OAuth roles. Recap of OAuth Roles Although you probably know them already I want to make a quick recap for everyone reading this to be on the same … Read more

What Is Applicative?

Applicative is just another concept similar in meaning and history to Functors and Monads. Besides explaining the theory behind it, I will implement a simple Applicative. I will also use Optional, to show what advantages Applicatives may give us. The source code for this article is available in GitHub repository. Why Should We Care About … Read more

What Is Functor?

Functor is a concept originating from mathematics, to be exact, from a part of mathematics called category theory. Here I will try to give you some more insight into Functors — what they are, how they work, and what the theory behind them is. I will also implement a simple Functor to better understand how they work … Read more