Welcome to the second post of my new miniseries about some of the craziest bugs I’ve had to investigate and debug throughout my career. Macros Link to heading This is another story that happened to me when working on a massive C++ code base, around a decade ago.| Andrea Bergia's Website
Welcome to the first post of my new miniseries, where I’ll be sharing some of the most intricate and entertaining bug investigations I’ve done throughout my career. I hope you find these stories enjoyable! Recursion Over a decade ago, I used to work in a large and crazy C++ code base. The system had a feature that allowed our customers to search for a record based on a referred field’s value.| andreabergia.com
Today we are going to talk a bit about code design. In particular, I wanna talk about a design smell often called primitive obsession, and a related technique that can help you improve the code quality. Primitive obsession We’ll use the following Java class as the basis of the discussion: class Book { private String isbn; private String title; private int year; } ISBN is the international standard for book identifier - basically, it is a globally unique ID assigned to the book.| andreabergia.com