Topics /

Software Engineering

The most popular blog posts about software engineering on Hacker News. 21,829 posts.

Any year
7715

DRY Is a Trade-Off

DRY, or Don't Repeat Yourself is frequently touted as a principle of software development. "Copy-pasta" is the derisive term applied to a violation of it, tying together the concept of copying code and pasta as description of software development bad practices (see also spaghetti code ).

7718

The UX of UUIDs

Unique identifiers play a crucial role in all applications, from user authentication to resource management. While using a standard UUID will satisfy all your security concerns, there’s a lot we can improve for our users.

7722

Memory management in C programs (2014)

One large difference between C and most other programming languages is that in C, you have to handle memory yourself rather than having a garbage collector do it for you. Ensuring that memory is allocated at the correct moment is not very difficult (and something that needs to be done manually in pretty much every…

7724

C23: A Slightly Better C

One of the established and most popular programming languages is the C programming language. It is relatively easy to learn, and highly practical. Maybe surprisingly, the C programming language keeps evolving, slowly and carefully. If you have GCC 13 or LLVM (Clang) 16, you already have a compiler with some of the…

7730

Huge Binaries

A problem I experienced when pursuing my PhD and submitting academic articles was that I had built solutions to problems that required dramatic scale to be effective and worthwhile. Responses to my publication submissions often claimed such problems did not exist; however, I had observed them during my time within…

7732

Fractional scales, fonts and hinting

GTK 4.14 will be released very soon, with new renderers that were introduced earlier this year. The new renderers have much improved support for fractional scaling—on my system, I now use 125% scaling instead of the 'Large Text' setting, and I find that works fine for my needs. Magical numbers Ever since 4.0, GTK…

7738

Build Your Own FPGA (2012)

The Open 7400 Logic Competition is a crowd-sourced contest with a simple but broad criteria for entry: build something interesting out of discrete logic chips. It's now in its second year, and this time around I was inspired to enter it.

7739

Rust and C++ on Floating-Point Intensive Code

I have developed some interest in the Rust programming language. Rust is a systems programming language which means it gets out of the way of developers interested in reaching low-level internals of a system. What sets it aside from other systems languages though is: Borrow checking to guarantee memory safety…