1. What is a Polyglot Source Code Repository?

    Posted on in Programming

    A polyglot source code repository is a repository that contains source code written in multiple programming languages. This can be useful for projects that require the use of multiple languages, such as web applications that use both JavaScript and Python.

    There are several benefits to using a polyglot source code …

  2. Does Go require a particular directory structure?

    Posted on in Programming

    Go is a programming language that is known for its simplicity and efficiency. One of the things that makes Go so easy to use is its flexible directory structure. There are no strict rules about how to organize your Go code, which gives you a lot of freedom to create …

  3. Push vs Pull Experiments

    Posted on in Programming

    In software engineering, a push experiment is a type of experiment where a new version of a software product is pushed to users without their consent. This can be done in a variety of ways, such as through an automatic update or by requiring users to manually install the new …

  4. Bazel vs Gradle

    Posted on in Programming

    Bazel and Gradle are two of the most popular build systems for Java and other languages. They both have their own strengths and weaknesses, and the best choice for you will depend on your specific needs.

    In this article, we will compare and contrast Bazel and Gradle in terms of …

  5. What is "vendoring" a library?

    Posted on in Programming

    In software development, vendoring a library means to include the library's source code in your project's codebase. This is done instead of installing the library as a dependency, which would require the library to be installed on the user's machine.

    There are a few reasons why you might want to …

  6. Why Choose Rust over Java for Microservices?

    Posted on in Programming

    Microservices are all the rage these days. They're a great way to build scalable, resilient applications. And the best language for microservices development is Rust.

    Rust is a newer language, but it's quickly gaining popularity. It's memory-safe, fast, and expressive. And it has a great community of developers who are …

  7. New Feautures in Python 3.11

    Posted on in Programming

    Here are some of the new features in Python 3.11:

    • Fine-grained error locations in tracebacks. Python 3.11 now provides more information about the location of errors in tracebacks. This can help you to quickly identify the source of an error and fix it.
    • Exception Groups and except*. Python …
  8. Type Checking in Python

    Posted on in Programming

    What is type checking?

    Type checking is a process of verifying that the types of variables, expressions, and statements in a program are consistent with the expected types. Type checking can be performed statically, at compile time, or dynamically, at runtime.

    Benefits of type checking in Python

    There are many …

  9. Git `remote.origin.prune` vs `fetch.prune`: Which Should You Set?

    Posted on in Programming

    Remote-tracking branches are Git's cached view of branches on another server: origin/feature/login, not your local feature/login. When a branch is deleted on GitHub or GitLab, Git does not remove that cached name until a fetch with pruning asks it to. The result is familiar: a branch appears …

  10. Bazel vs Buck

    Posted on in Programming

    Bazel and Buck are two popular build systems used by large software companies. Both systems offer a number of features that make them well-suited for building large, complex codebases, including:

    • Multi-language support: Both Bazel and Buck support a wide range of programming languages, including Java, C++, Python, and Go.
    • High-level …
  11. The Benefits of Using GitHub Copilot

    Posted on in Programming

    GitHub Copilot is a powerful AI-powered code completion tool that can help you write better code faster. It uses OpenAI Codex, a massive dataset of code and natural language, to understand the context of your code and suggest relevant code snippets and entire functions.

    Here are some of the benefits …

  12. Disabling Wordpress

    Posted on in Software

    A brief migration announcement explaining why the site moved from WordPress to Pelican.

  13. Hermeticity - So Hot Right Now

    Posted on in Programming

    Hermeticity in software builds refers to the practice of creating software packages that are self-contained, with all necessary dependencies and resources included within the package. In other words, a hermetic build can be installed and run on any system, without requiring additional configuration or installations. This practice is becoming increasingly …

  14. [Python] Patching platform.uname in Tests

    Posted on in Programming

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    from unittest import IsolatedAsyncioTestCase
    from unittest.mock import create_autospec, patch
    
    from foo import is_foo, is_bar, platform
    
    class FooTestCase(IsolatedAsyncioTestCase):
        @patch(
            "platform.uname",
            return_value=create_autospec(
                platform.uname_result, system="Linux", node="BAR"
            ),
        )
        def test_wrapper_is_foo(self, m_uname …

Slaptijack's Koding Kraken