Let’s examine four mistakes to avoid when writing programs that use GLib, or, alternatively, four mistakes to look for when reviewing code that uses GLib. Experienced GNOME developers will find the first three mistakes pretty simple and basic, but nevertheless they still cause too many crashes. The fourth mistake is more complicated. These examples will …
Monthly Archives: July 2022
Best Practices for Build Options
Build options are sometimes tricky to get right. Here’s my take on best practices. The golden rule is to set good upstream defaults. Everything else follows from this. Rule #1: Choose Good Upstream Defaults Occasionally I see upstream developers complain that a downstream operating system has built their software “incorrectly,” generally because some important dependency …