[ x for x in articles if "code" in x.categories ]

  1. You should probably use enum flags

    Enum flags are a clever optimisation technique that make use of bitwise logic operations paired with enumerated types that sadly see a lack of use in more modern codebases and languages such as JavaScript, in spite of enums being otherwise fairly popular in TypeScript.

    enum Guild {
      Mage,
      Rogue,
      Warrior …
  2. rewriting "night light slider"

    I'm the author of the Night Light Slider extension for GNOME Shell. When I originally authored the extension in late 2017, my intention was to simply add a slider, kin to the brightness slider, to manage the temperature of the GNOME Shell "Night Light" feature. A couple of feature requests …

  3. the error paradigm

    The error programming paradigm comes from the recognition that errors are expected. Consider a function that is meant to parse JSON data. Naturally should the input string not be of valid JSON format, the function would error out. That is because handling invalid JSON data is out of the scope …

  4. Default Title

    The use of default values, also known as optional parameters is a controversial topic in programming. Languages like Go even go so far to outright disallow the possibility of using optional parameters or method overloading, emphasising simplicity instead. But what exactly are optional parameters used for?

    The Wikipedia page for …

  5. the unix paradigm

    If you're a learned programmer or computer nerd, you may have heard of the UNIX philosophy;- A set of guidelines to developing minimalist and modular software. The premise of this design pattern was fundamentally opposed to software designed in a monolithic fashion. We've all seen those crazy bash liners for …

  6. identifying a hack

    I was one rainy evening on the way to town when I noticed that my Grab driver was sitting in a very strange position. I asked the man had they any spine condition or something of sort, and they replied no. Helpfully they added that they were leaning to the …