The principles and beliefs described below form the ethos of the Euclid Power engineering team. They frame our discussions, guide our decisions, and inform our behaviors. They are both our sword and shield in the chaotic world of software development.
This is a public document*.* It’s who we are, and we’re proud of it. If you’re thinking of joining the Euclid Engineering Team, it should be mostly who you are too.
This is a living document. As we learn more about each other, our customers, and our products, we’ll add, update, and remove things here.
This is not an original document*.* We collect good ideas, and most of the ideas here are taken from our favorite books (public) or people smarter than us.
There are as many definitions of “clean code” as there are programmers. Here at Euclid Power, we’ve settled on our own convention: clean code is pleasing to read. It is expressive, focused, tested, and not surprising. It has been lovingly cared for. Clean code is easy for other people to enhance. See Clean code (private) for details.
The choice between writing tests and writing features is a false dichotomy. Tests are part of a feature. Without tests, a feature is dead on delivery: the code will ossify, technical debt will accumulate, defects will increase, productivity will slow, and customer as well as employee satisfaction will fall. Work is not complete without clean and expressive tests. See Testing (private) for details.
It’s not enough to write clean code and good tests. Code has to be kept clean over time, or it’ll rot. Always commit code cleaner than you found it. It doesn’t have to be a big change - change one variable name for the better; break up one big function; eliminate one small duplication; clean up one confusing conditional. Always leave things better than you found them.
It’s easy to imagine the code you write today can solve tomorrow’s problems too. But, there is more than you’d expect to learn between here and there. Building too far into the future creates bridges to nowhere when the future arrives and it’s not as you expected. Clean, well-tested code is changeable code. Solve today’s problems with clean code, and you can change it when the future arrives. Don’t build too far into the future: you ain’t gonna need it (YAGNI).
Big is bad. It starts slowly, moves slowly, and fails slowly. It increases queue time (i.e., the time work waits to be started) and cycle time (i.e., the time between starting and finishing work), as well as variability, risk, overhead, and delays; it decreases efficiency, motivation, and urgency; and, it slows feedback. Big only moves as fast as it’s slowest component. It’s the enemy of product development. Work in small chunks. See Workflow (private) for details.
In product development, faster feedback allows us to truncate unproductive paths and exploit emerging opportunities more quickly. Decompose work into experiments - the smallest amount of work necessary to learn the very next thing you need to know - and, always look for ways to validate ideas early, especially your least certain or most risky assumptions. A little rudder early is better than a lot of rudder late.
We can’t escape failure: as humans, we’re going to make mistakes; as a product development organization, we’re going to take risks; and, as keepers of a complex, distributed, large-scale system, we’re going to have incidents. Don’t try to escape failure. It’s an opportunity to learn. When failure occurs, understand it deeply, without assessing blame, and improve the system. The only mistakes are the ones you don’t learn from. See Post-mortems (private) and Incidents (private) for details.