-
Websockets - Introduction
Feb. 16, 2024, 8:11 p.m.
For educational purposes, I decided to write an instant messenger and therefore I had to learn more about the term Websockets and generally find out how to achieve real-time communication. An interesting topic and I have never had the opportunity to work with this type of solutions before.
-
TIL#002 - Python XOR [LeetCode 136. Single Number]
Jan. 15, 2024, 2:18 p.m.
my ordeal with the "136. Single Number" task on LeetCode, where the enigmatic XOR kept me baffled for a while. From the Counter method to the 'aha' moment with XOR - it's a tale of discovering how simplicity can solve a complex problem.
-
Python Type Hints - Introduction
Jan. 7, 2024, 2:40 p.m.
A basic introduction to Python type hints, perfect for those just starting out with this topic. It offers clear explanations of what type hints are, how to use them, and the benefits they bring. This article is primarily aimed at beginners; experienced programmers might find the material too basic or even unnecessary. Personally, I like revisiting the basics from time to time.
-
TIL#001 - Webring
Oct. 15, 2023, 9:59 p.m.
Popular in the era before search engines, when website navigation was limited. Due to the development of search engines, they are not practiced today and the chance of encountering this form of website organization is close to zero. What are we talking about?
-
Patch in Unit Tests - Introduction
Aug. 11, 2023, 7:04 p.m.
Patch is a function provided by the unittest.mock module and allows us to temporarily replace real objects with mocks to control their behavior during testing. Let's play around with it a bit and see in this short introduction how to use it and what it's all about.
-
Coupling and cohesion
July 25, 2023, 1:02 p.m.
Two concepts are often encountered in the topic of software architecture, i.e. cohesion and coupling. What are they? What are their characteristics? How can you use them to write more flexible, maintainable code? I used to have trouble understanding what they mean and how they differ from each other. So I wrote a few sentences about it to reinforce it again. Maybe some of you will benefit from this.