Programming
-
Implementing wc command – Rust coding challenges
This is the second post of the Rust coding challenges series, in which we will learn computer science fundamentals and write some actual code to make usable programs. In this […]
-
Implementing the LRU cache
A cache is a component that stores data temporarily so that further requests can be served faster. For example, the search engine might store the result from users’ queries in […]
-
What is Java CLASSPATH?
Classpath is a fundamental concept that has been oblivious to many of us, especially when working with modern IDEs like IntelliJ IDEA; we don’t have to worry much about classpaths […]
-
Things I’ve learned from Effective Java – Part 1
In this series, I want to introduce one of the most-read books in Java programming: Effective Java. For the most part, this book focuses on the most fundamental classes and […]
-
Dependency Injection: The Basic
To start the article, let’s first look at the code below: As we can see, class MonitoringService depends on class NotificationSender to function, and we’ve initialized class NotificationSender directly inside […]
-
Dijkstra’s algorithm to find the shortest path
Let’s imagine you and your best friend live quite far apart, you haven’t seen him for a while, your best friend is organizing a party at his house and you’re […]
-
Implementing retries with exponential backoff
Making a call to an external service might fail for a lot of reasons, sometimes it’s due to network failure, sometimes it’s because the external service is too busy, or […]
-
Executing tasks with the Executor Framework in Java
Java offers us many ways to write multi-threading applications, at the early stage, we probably create a new thread for each task by manually extending the Thread class, this seems […]
-
AOC 2022 – Day 5: Supply Stacks
You can read the full description for day 5 here. In summary for part 1, we have been provided a number of stacks, each stack may contain a number of […]
-
WebRTC – Go beyond the APIs Part 1: Signaling and Connecting
We were in the middle of the pandemic. Many of us have to get accustomed to the new norm, stay at home to work and study, etc.…We are separated and […]