Articles in the programming category

  1. What is LLVM?

    Posted on in programming

    LLVM, which stands for "Low Level Virtual Machine," is an open-source compiler infrastructure project designed to facilitate the development of compilers, code analysis tools, and runtime libraries. It provides a set of modular and reusable compiler and toolchain components that make it easier to build and optimize compilers for various …

  2. Strategies for Storing PHP Sessions

    Posted on in programming

    Storing PHP sessions effectively is crucial for managing user data and maintaining session persistence in web applications. PHP provides multiple options for session storage, and the choice depends on factors like performance, scalability, and the specific needs of your application. Here are some strategies for storing PHP sessions:

    1. File-based Session …

  3. Resolving ErrorProne's EqualsHashCode Warning in Java

    Posted on in programming

    Introduction

    ErrorProne is a static analysis tool for Java that helps developers catch potential issues and improve code quality. One common warning it provides is the EqualsHashCode warning. This warning suggests that the equals method should be overridden whenever the hashCode method is overridden to maintain the contract between these …

  4. Resolving ErrorProne's ReturnValueIgnored Warning in Java

    Posted on in programming

    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 for …

  5. 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 …

  6. Introducing rules_oci: Simplifying Container Image Builds

    Posted on in programming

    Containerization has revolutionized software development by providing a consistent and efficient way to package, distribute, and deploy applications. To leverage the full potential of containerization, it's crucial to have a robust and flexible system for building container images. This is where rules_oci comes into play, offering a powerful solution for …

  7. 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 …
  8. 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 …
  9. 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 …

  10. 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 …

My Bookshelf

Reading Now

Other Stuff