Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
52

Latest Updates

Documenting code, one commit at a time.

English 2 posts
×

Mastering Object Interactions: Lessons from a Logistics Application

Ever found yourself wrestling with a codebase that feels like a tangled web of responsibilities, where objects make decisions they shouldn't, and simple values are hardcoded as cryptic "magic numbers"? You're not alone. Building robust and maintainable object-oriented systems often comes down to mastering interactions and encapsulating behavior correctly.

Refining Your Code: Lessons on Readability, Robustness, and Design from Code Reviews

Introduction

In the Camion project, focused on managing truck operations and their diverse cargo, code reviews proved invaluable for identifying areas of improvement. This project involves tracking items (cosas) with attributes like weight and dangerousness, and handling truck functionalities such as loading, unloading, and route planning.