Tag: learn to code together

  • Preemptive vs. Cooperative scheduling

    In an operation system, multitasking refers to the ability to execute multiple tasks concurrently; there are primarily two different types of multitasking: preemptive and cooperative. These methods are used by […]

  • Finding orders using Topological Sort

    Topological sort is a fundamental algorithm to order elements in a directed graph; in this context, elements are often denoted as nodes, and the edges between them represent dependencies. In […]

  • Understanding two’s complement

    Have you ever wondered why, in Java and other languages, one byte can only represent to as the maximum value and why cannot we have . There is indeed a […]

  • 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 […]

  • An Introduction to Term Frequency – Inverse Document Frequency (tf-idf)

    tf-idf is one of the most fundamental concepts in information retrieval. It’s the product of 2 statistics, the term frequency (tf), which is the numeric value representing how many times […]

  • 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 […]

Every support is much appreciated ❤️

Buy Me a Coffee