1. Resolving ErrorProne's ReturnValueIgnored Warning in Java

    Posted on in programming

    Introduction

    When writing Java code, it's common to call methods that return values, such as methods that read from a file, make network requests, or perform calculations. Ignoring the return value of such methods can lead to subtle bugs and unexpected behavior in your application. ErrorProne, a static analysis tool …

  2. Bazel: rules_docker vs rules_oci

    Posted on in programming

    rules_docker and rules_oci are two Bazel rulesets that can be used to build Docker images and OCI images, respectively. Both rulesets have their own advantages and disadvantages, so it is important to choose the right one for your project.

    rules_docker

    rules_docker is the older of the two rulesets, and it …

  3. Bazel: A powerful build system for Python

    Posted on in programming

    Bazel is a build system that allows you to build software projects quickly and reliably. It is a popular choice for building Python projects, as it offers a number of features that are well-suited for this language, such as:

    • Fast incremental builds: Bazel only rebuilds the parts of your project …
  4. Bazel: A powerful build system for C++

    Posted on in programming

    Bazel is a build system that allows you to build software projects quickly and reliably. It is a popular choice for building C++ projects, as it offers a number of features that are well-suited for this language, such as:

    • Fast incremental builds: Bazel only rebuilds the parts of your project …
  5. Bazel: Setting max_compatibility_level

    Posted on in programming

    Bazel is a build system that allows you to build software projects quickly and reliably. One of the features of Bazel is the ability to manage dependencies using Bzlmod files. Bzlmod files are used to describe the dependencies of a project and to ensure that the dependencies are compatible with …

  6. What is Bazel's sandbox mode?

    Posted on in programming

    Sandbox mode in Bazel is a security feature that isolates build actions from the host system. This helps to prevent malicious code from being able to access the host system or other build actions.

    In sandbox mode, each build action is executed in a separate directory, called an execroot. The …

  7. Does Bazel Guarantee Hermeticity?

    Posted on in programming

    Bazel does not guarantee hermeticity, but it does provide some features that can help to achieve hermeticity. These features include:

    • Sandboxing: Bazel can sandbox the execution of build actions, which helps to prevent them from accessing the host system.
    • Dependency pinning: Bazel can pin the versions of dependencies that are …
  8. Python's Universal Newline Mode

    Posted on in programming

    Universal newline mode is a feature of the Python open() function that allows it to handle newline characters in a consistent way, regardless of the platform on which the code is running.

    In most programming languages, a newline character is represented by a single character, either \n or \r. However …

  9. What is Python?

    Posted on in programming

    Python is a general-purpose, high-level programming language. It is one of the most popular programming languages in the world, used for a wide variety of tasks, including:

    • Web development
    • Data science
    • Machine learning
    • Artificial intelligence
    • Software development
    • Scientific computing
    • Game development

    Python is known for its simple, easy-to-learn syntax, which …

  10. Bazel: Module Extensions and Metadata Objects

    Posted on in programming

    Bazel is a build system that allows you to build software projects quickly and reliably. One of the features of Bazel is the ability to extend the module system by using module extensions. Module extensions allow you to provide additional information about the repositories that your project depends on.

    One …

My Bookshelf

Reading Now

Other Stuff