Domain-Deadline-Dog-Driven DevelopmentOctober 21, 2023
On Twitter - sorry, X - and Mastodon I asked the following question:
"In software development, "Domain-Driven Design" (#DDD) is one of the many great (?) ways to handle a project. But who has experienced other types of DDD in real life, like "Deadline-Driven Development" or "Disaster-Driven Development", and wants to share her/his experience for a blog? Thanks!"
This is the result of my quest...
DDD, TDD, BDD
Every few years, a new best practice appears to structure the development of software projects. Domain-Driven Design (DDD) is one of them. It focuses on modeling software to match a domain according to input from that domain's experts. Inside a DDD project, you focus first to clearly understand the problem to be solved, leading to a structure in the code that represents the solution. The example project DDDSample based on a book by Eric Evans illustrates this by splitting the code of a shipping application into packages for cargo, handling, location, and voyage.
Another well-known abbreviation is Test-Driven Development (TDD). The development is based on tests that get expanded, while you write the code, which happens within a continuous cycle of red/green tests (failed/succeeded). With this approach, you first define the test to be solved, then implement the minimal solution to make the test succeed, after which you can try to make it better and faster while keeping all the tests green.
Behavior-Driven Development (BDD) is based on TDD and agile software development processes. It encourages collaboration and conversation among developers, QA, and users to formalize a shared understanding of how the application should behave.
But these are the official terms. And we all know that many good intentions and plans get replaced with others based on "the real world." Let's take a look at a few of them...
Alternative DDD Versions
At many projects in my career, I have seen this Deadline-Driven Development too many times. Because of unrealistic or moving deadlines, shortcuts get introduced in the project. Testing gets reduced or is not existing, hotfixes are deployed to production, manual steps never get automated, etc. And although a shortcut can be a good choice in a very short time, it will always backfire in the long run. And stacking shortcuts on top of each other is a "highway to hell"...
Related to Deadline-Driven Development, we can also encounter the closely related Directive-Driven Development, as shared by someone who wishes to remain anonymous:
"I've dealt with a CTO like that before. He didn't have much knowledge about software development, but if he received a directive from upper management, he would immediately order my manager to have it completed by a certain deadline. He wouldn't consider any other factors or opinions. And if necessary, he would even suggest that the team work longer hours."
Which leads us to the idea of another blog post with the different abbreviations for the manager roles. In this case, the Chief Troublesome Officer (CTO).
While Deadline-Driven Development can lead to an accumulation of bad decisions, Disaster-Driven Development may actually lead to improving a system. A disaster can, for instance, get detected if one of the developers, by accident of course, deletes (a part of) the production database. At that point, managers may discover insufficient protection regarding the database, hopefully leading to a better organization and more time to set up suitable testing environments...
I learned Dog-Driven Development from Kevin Dubois:
"When you can't figure out an issue until you go take the dog for a walk."
As a fulltime remote worker, I am a big fan of this type of development! Our dog, Wifi, is also a sure way to get me from my desk at least a few times per day.
Chris Bensen shared this one: Dastardly-Directorate Development:
"It is when someone in the management chain (executive, VP or director) gets a bonus or personal gain for just literally f%^£ing everything and everyone over. For example, when the CEO of Borland bought a $50,000 Italian couch with company money for his office and had a massive layoff all in the same day. Can you imagine what was on his desk and the conversation with the secretary? I was new in my career and shocked at the time. It always surprises me when people only look out for themselves and what they can get."
Proposed by Post Tenebras Lire on Mastodon: Drama-Driven Development.
"The outcome is very often pretty bad."
Alternative TDD Versions
Vlad Mihalcea seems to be a big fan of Tab-Driven Development as he shared on LinkedIn:
"The more difficult the task, the more browser tabs I open."
In alphabetic order...
In this podcast by Adam Bien with Roni Dover you can hear a very nice discussion about Bug-Driven Development (BDD) vs. Continuous Observability.
Alejandro Pablo Revilla added a very nice one to BDD:
"It plays very well with Customer Yelling Project Management (CYPM)".
The type of development that I'm probably missing the most as a home-office-worker: Coffee-Driven Development (CDD). Meeting people at the coffee machine and chatting about a problem and the solutions that didn't work, often leads to an alternative solution you didn't consider yet and does work!
Competitor-Driven Development is another CDD, but a bad one! If you are following what your competitors are doing, you are too late! Look at your competitors to know what NOT to do, and look for better and newer ideas...
Maybe the worst development approach: Meeting-Driven Development (MDD). For many developers, including myself, certain meetings of one hour will occupy a full day as you want to be prepared and create a summary afterwards for followup.
Meme- and Ego-Driven Development
Inspired by the actions of Elon Musk at Twitter, it seems 2023 has brought us Meme-Driven Development (MDD) and Ego-Driven Development (EDD). It's very strange to see how a Chief Explosion Officer (CEO) manages to vaporize the value of a company in a matter of months... He didn't use a good DD, that's for sure.
BTW, if you are looking for a friendly social space, we welcome you on Mastodon on Foojay.social!
Since Amazon introduced the organization structure of "two-pizza teams", we can use Pizza-Driven Development (PDD). What I don't like about PDD is the fact it assumes that the team is always available to work overtime in return for a few slices of pizza. I have been lucky in my career that I only endured such circumstances a few times, for very short times, when a deadline or untraceable bug was putting pressure on a project.
When you find yourself in a company where this occurs frequently, it's time to create on update of your Curriculum Vitae (CV) and look around...
I found this nice one by Tim Zöller on Mastodon:
"If psychological safety is low in your software dev team, they will default to Stick-Driven Development (SDD). They will make decisions based on the probability of getting hit with a (metaphorical) stick. In most settings this will mean estimating higher efforts, avoiding risk at any cost, staying on the safe side for everything and not discussing or admitting mistakes."
I also asked my new buddy ChatGPT to come up with a few alternatives:
PDD (Penguin Driven Development): Developers work in harmony with penguins, who provide testing feedback with their cute flapping and waddling.
ADD (Alien Driven Development): Aliens from outer space assist with testing the software, providing unique perspectives on usability and functionality.
GDD (Giraffe Driven Development): With the help of giraffes' towering views, developers gain a higher perspective on the code and anticipate potential issues.
KDD (Knitting Driven Development): Developers knit together the software, ensuring it's robust and cozy enough to withstand any challenge.
CDD (Corgi Delivery Development): Corgis deliver feedback on the software's quality by enthusiastically barking for good code and giving disapproving looks for bugs
Remember, these are purely fictional and fanciful alternatives meant to bring a smile to your face. In real software development, sticking to proven methodologies like TDD or other established approaches is essential for successful and reliable results.
Thanks, ChatGPT, well done. And some of these are maybe not even a bad idea...
Many Something-Driven Developments are available nowadays! Which are your favorites and are you going to introduce to your company or team?
Choose wisely, but remember you have alternatives, if the chosen one doesn't seem to work out...