What a Long Strange Trip It's Been

* a quick note...there are links within this post that may be affiliate links to products on other sites for which I may receive a small commission for purchase at no additional cost to you.


It takes time, you pick a place to go... 

 

Seven months ago, I set out on a journey. I wanted to build a distributed management system. At the time, I had two web sites, but we have 4 DBAs (doing business as). I wanted a system where I could manage my existing sites, and also somewhere to manage future sites. As I was building out the requirements, I realized that I wanted to include areas to manage our personal finances, as well as be able to blog about things in which I was interested. Throughout planning, the scope grew, and this post is the culmination of having the minimum viable product (MVP) ready.  

Today wasn’t the first release. I am an agile zealot, so there were several releases along the way. The system was functional and utile, and it offered us value at each step. MVP just means I have finally met the base requirements for the full product that I outlined in a requirements document several months ago. Today is my first blog. For those hoping for a Grateful Dead soliloquy, I apologize. Truckin’ drives the subject matter, but that’s as far as the trip will take us. 


“And just keep truckin’ on 

 

My software journey started in 2017. That journey is for another post (or 20). Here I want to briefly talk about what this all means. I became a .NET developer in 2019. Why, .NET? The TL;DR of it all is that I was leading teams of Java, .NET, and Python engineers as a Business Analyst (BA) / ScrumMaster. I like to understand what it is teams I lead do, and as such be able to see the world through their eyes.  


I have become a pretty good developer through a lot of blood, sweat & tears, but I am always learning. My wheelhouse is in the project management / product management / business side of things. This journey was a great way to see the development of a system from both sides, and gather lessons learned along the way. First, let me get to the breadth and scope of the system, and then I can regurgitate the lessons to remember for the future. Hopefully, you can gather some wisdom from this, as well. 


Sometimes the light’s all shinin’ on me... 

 

I started with a relatively blank canvas, and a lot of learning to do. I had built two web applications (my personal site and a site for my consulting business) that pulled from independent APIs / MySql databases. I wrote a requirements document, determined what needed to be done, and I started writing user stories. Along the way I needed to develop an additional site for our Real Estate business, and an eCommerce shop for my wife. I designed the architecture and got to work. 


Here is where I am at today: 


  • Five web applications 
  • Six web REST APIs 
  • One identity server that manages tokens & oauth 
  • One API gateway that routes calls to each API 
  • One Rich Text Editor sub-application 
  • Leveraging two cloud providers (Azure & Google Cloud), including 2 Azure Functions 
  • Two message buses to handle asynchronous communication between services 
  • External implementations for several services including: 
  • LinkedIn 
  • SendGrid 
  • Google reCaptcha 
  • Google Maps 
  • Twilio SMS 


That reads somewhat like the Twelve Days of Christmas, but it feels like an eternity. That was a lot for one person to accomplish in seven months of part-time work. 

 

...Other times, I can barely see 

 

Ok, that’s enough patting myself on the back. Yes, it was a lot to accomplish, but it wasn’t without several lessons learned. These lessons hit me as both a leader and a developer, so we will tackle both. I have bugs and changes I need to make going forward, and that’s to be expected. Without further ado, here we go... 


Scope creep 


Joe the Product Owner (PO) / Business Analyst (BA): “We are already going to be working in this part of the code base, let’s try to get this additional functionality in.” 

Joe the ScrumMaster (SM) / Developer (Dev): “There is actually a lot of complexity in that additional functionality. Maybe we should save it for later.” 


There are different styles of POs and BAs you can come across. A couple of the more problematic styles are those that want to under-promise and over-deliver, or worse, those that want to over-promise. Most often I try to keep clients happy, and seeing a shiny piece of functionality they want that doesn’t seem like a huge lift seems like a win to press for. Having lived in it for several months, I have a different perspective. The requirements called for an MVP. The term MVP gets bastardized a lot. It needs to be the most lightweight version of a system that offers value to the user. 


When starting work on the blog I thought: 

“Hey. One day I’d like to be able to have guest contributors. I’m going to be working on this anyway, so why not just put it in now.” 


Yeahhhh, not so fast my friend. An MVP would have given me the ability to post a blog. Does MVP mean allowing others to post? No. Right now, who would want to? I spent too much time developing something that may or may not be used in the next six months. I should have saved it for a future enhancement. The system already takes a release train of 5-10 applications to give new functionality. The time spent could have been better used elsewhere. Adding a path to allow guest contributors required an additional role to the system which affected JWT tokens, API policy scopes, and logic to handle other areas of authorization. 


On the other side of the coin, my wife suggested having the ability for us to review and proof each other's posts. This had a lot of important implications for MVP, and it was a necessary addition to the scope. 


Planning & Requirements 


Joe the PO / BA: “There should be plenty of information for you to execute the vision. I can’t give you developers everything.” 

Joe the SM / Dev: “I’m not a mind reader. I can’t execute to something I can’t see.” 


OK, so I am a team of one, right now. Yes, I am arguing against myself. This is my blog, my rules. As a PO / BA I have always found it incredibly important to give the dev team enough information to execute to the client’s needs. This means fleshing out user stories that they can then groom into tasks to get the functionality done. When I started the blog, I had a basic set of user stories, an idea of what I wanted, and no roadmap to get there. Without a solid path, I felt myself making a lot of weird and suspect design and coding choices because I didn’t know exactly what the client (me) wanted. So, with this, I empathize with developers working on a system with a PO / BA that puts forth a very skeletal version of a user story with no additional context or direction on client vision. Boy, does that stink. 


Over-Architecting 


Joe the PO / BA: “We need to make sure the system is as maintainable as possible for MVP.” 

Joe the SM / Dev: “I want to follow the DRY principle and avoid repeating code. I think I’ll build a Nuget class library to share classes.” 


Class libraries are great. They help separate business logic from domain concerns and make a solution feel cleaner. Packages are the next level. I am most familiar with NPM and Nuget, as these are used the most in .NET development. I love Nuget packages. They allow me to adhere to the DRY principle (don’t repeat yourself) and share classes across various implementations. I have a private feed built into my CI/CD in Azure DevOps, and pushes to trunk trigger a build, compilation, and update that I can pull into my projects. 


While they are great in concept, they can be problematic on the fly when developing a new system. I am the type that wants to get things right the first time. This led me to build separate package libraries to keep everything clean up-front. The problem is, whenever I wanted to make a tweak to an interface or class, I needed to push the changes, wait for the pipeline to finish, ensure there were no build errors, debug if there were, and then update the packages in each solution. This is a necessary evil when working with existing systems. When building a new system, I should have left the implementations in each solution, and then pulled them out into a sharable library when I got the project finished. As touched on in several books (here I am probing my memory for sections from The Pragmatic Programmer and Clean Code), refactoring is a good and necessary practice in software. You should make good decisions as often as possible, but not at the sake of efficiency. Get the system working and to an acceptable standard, then go back and refactor / re-architect to improve the implementation. 


Estimation & Sprint Goals 

 

Joe the PO / BA: “That’s not a huge lift. This should get done in one sprint.” 

Joe the SM / Dev: “That’s not a huge lift. This should get done in one sprint.” 

 

Sometimes the project leadership and dev teams are aligned, and that doesn’t always mean things are easy, breezy. Estimation is an art. There are several ways to do it, and none will be correct. But, it’s an exercise in understanding what may be possible. Sometimes it just doesn’t work out that way. There were several features and stories within this undertaking that both the business guy in me and tech guy in me said it shouldn’t take that long. Murphy’s Law is a thing, though, folks. Some of the issues in understanding scope and complexity will get better with time and experience, but there are times where stuff just doesn’t want to cooperate. I missed a couple sprint goals during these past few months. I had my own little retrospective with myself and tried my best to figure out how I went wrong. Making mistakes isn’t a problem, it’s expected human behavior; not learning from those mistakes in unforgivable. 


Deadlines


Joe the PO / BA: "The client needs all of this functionality in for MVP."

Joe the SM / Dev: "You better hire some folks then, if you want it done right."


Deadlines are really estimates of what should be done, and by when. One of the problems with project planning, and why agile exists, is that it is next to impossible to understand everything that needs to be done for the system to operate effectively and how long that will exactly take. Deadlines are a negotiation that need to have some flexibility in either time or budget. Most systems will have a set of nonfunctional requirements (NFRs) that need to be in place for said system to be robust, maintainable and effective. These are easy to ignore because they aren't fun and exciting. One of the NFRs I routinely put into my requirements documents is for a minimum of 80% executable code coverage of unit tests. This post isn't to fully discuss or debate the merits of testing.


My system included this in the NFRs. I am a team of one and gave myself an arbitrary deadline of the end of February for the system to be complete. Did I make the deadline? Yes. Is the system as good as it could have been if I took into account the NFRs when building out requirements? No. There are two big lessons learned from this:


  1. Units Tests make life easier as a developer. My personal site has close to 200 unit tests. It has 90% executable code coverage. I love developing new features in that site because I get instant feedback if I break something. Is it the best site ever? No, of course not. But as a developer, the tests make my life easier.
  2. Ultimately, unit tests save numerous headaches. I rushed some implementations and skirted unit tests in various areas of the system. This made my life much harder. Instead of getting feedback on how the system should operate as compared to business requirements, I spent way too much time firing tracer bullets, debugging, and searching for where things went wrong. Had I written the tests ahead of time, I may (probably) would have found the issues much sooner.


As a Product Owner, I always knew deadlines were problematic and arbitrary for a dev team. Stringent and inflexible deadlines cause developers and architects to respond in the only way they can: cut corners. This experience helped me really feel their pain.