ProfileMode image

Casper Andersson

Software Developer

tab-width: 8

One of the never-ending debates in programming, along with Vim vs Emacs. Neither of which has any right answer, though these days we all know Vim keybindings are the way to go. What tab-width should you use? Tabs or spaces? Infinitely many variants exist, or probably at least five. No right answer exists, but I’d like to argue some are wrong. Such as three-space indentation, or mixed tabs and spaces (i.e., one indentation is four spaces, two indentations is one tab). Let’s just agree on that. ...

July 31, 2026 · 2 min

How many ethernet ports are too many?

Some network protocols need to keep track of which physical port is which in a topology. PTP is one of those. Defined in IEEE 1588, it specifies a field called portNumber. It is an unsigned 16-bit integer. This means the limit for a single network switch is 65536 ethernet ports. Now, one could argue that 8 bits, 256 ports, is enough. But it doesn’t hurt to future proof and the next logical step is 16 bits. Surely no one will ever make a switch with that many ports! ...

August 6, 2025 · 1 min

The Good Developer

What makes a developer a good developer? I regularly hang out in the Boot.dev Discord server, a community filled with aspiring developers. Many of whom strive towards being hired as developers. The question of knowledge and skills often come up. What do you need to know to get hired? What are interviewers looking for? It is always hard to give specific answers to these questions. There are many guides and guidelines out there on how to write good code. Python’s Zen (import this), Go Proverbs, The Zen of Proverbs are just some. But here I will instead try to list some behaviors I want to see in developers, regardless of experience. ...

August 6, 2025 · 2 min