Avoid booleans by default

Booleans make maintaining and changing code needlessly error-prone. Use enums instead. Method parameters What does the following function do? updateState(state, true); Specifically, what does true mean? What would it mean to be false? Modern IDEs may give the parameter name as a hint, but it’s still cumbersome to read. updateState(state, silent: true) A boolean in … Read more

Trunk-based development

What is trunk-based development? Trunk-based development is a collaborative development approach where all developers commit directly to the main branch (often called “trunk”). Feature branches and pull-requests should be avoided. Instead, teams rely on fast feedback loops, high collaboration, and strong CI practices to maintain code quality and stability. Why is trunk-based development better than … Read more