Topics /

Software Engineering

The most popular blog posts about software engineering on Hacker News. 1,001 posts.

2022
95

Raspberry Pi security alarm – the basics

In November last year — I started building a DIY security alarm system, using a Raspberry Pi as the controller. My plan was to make a self-sustained system, using proper alarm hardware — like PIR sensors and sirens. Integration with Home Assistant would be an add-on, not a requirement. I wanted the system to be as…

106

What’s so great about functional programming anyway?

To hear some people talk about functional programming, you’d think they’d joined some kind of cult. They prattle on about how it’s changed the way they think about code. They’ll extol the benefits of purity, at length. And proclaim that they are now able to “reason about their code”—as if all other code is irrational…

107

Emacs 29 is nigh

Table of Contents Major features Eglot is now part of Emacs core Tree-Sitter is also part of Emacs core Install packages from source with package.el Org mode 9.6 use-package in Emacs core Pure GTK Emacs is here for Wayland! Compile EmacsLisp files ahead of time Native access to SQLite databases HaikuOS support New…

109

Useless Use of "dd" (2015)

tl;dr: dd works for reading and writing disks, but it has no "low level I/O" capabilities that make it more suited for this than any other shell utility. Like cat you should use it where it makes sense, e.g. to take advantage of its wide array of options, rather than try to ensure that all disk related commands begin…

117

Keyboard shortcuts for GNU Readline

Most command line programs that offer line editing -- like bash, Python, GDB, psql, sqlite and more -- do so using GNU readline. Readline's a powerful library that grants history, completion, movement and editing to programs that use it --- and a stable and consistent set of keyboard shortcuts. Shame, then, that even…