Here are 10 posts I thought were worth sharing this week.
#1. What we learnt by migrating from CircleCI to Buildkite – Link
This post covers how and why Hasura switched their CI service from CircleCI to Buildkite. They started by defining the requirements from their CI, then they evaluated different solutions, and finally introduced it in their ecosystem. Their main reason to switch CI service was cost. They reduced the cost by 50%. This required them to own some of the aspects of the CI operations. A couple of interesting things I learnt from this post:
- Use of labels to trigger build. They used them to save costs.
- The use of dynamic configuration. They wrote their build code in a Go program. This saved them from YAML hell. Interestingly, they use shellcheck t static analysis of shell script
#2 . Reframing tech debt – Link
It is all about perspective. Tech Debt brings negative emotions in people and it becomes difficult to sell it to higher management. In this post, the author suggests we reframe tech debt as tech wealth while communicating with stakeholders. Building tech wealth means getting more value out of the software we’re creating, as well as our efforts to develop and maintain it. Author suggests two ways we can plan for tech wealth:
- Allocate time within each planning cycle
- Dedicate the last few cycles in a quarter
In one of the products I worked on we used to schedule 1 day per sprint (2 weeks) for paying tech debt. We had sprint demo every alternate Thursday and the next day i.e. Friday was scheduled for working on tech debt items. One problem with 1 day every sprint is that bigger items can’t be handled. We used to create stories for them and pick them as part of the sprint backlog.
#3. Don’t Make My Mistakes – Link
Loved this post. We all make terrible mistakes. Documenting them and sharing them with a wider audience can help others avoid making the mistake. The worst mistake that I have made is not making use of database processing capabilities. Instead, I wrote custom logic. A well written SQL query often outperforms custom logic.
#4. Hard Edges, Soft Middle – Link
I am not using ShapeUp at work but I am following more or less the same philosophy to deliver a complex mobile banking application. We plan backwards starting from a demo we want to do at the end of 5 weeks. We have set constraints on time and scope. Then, we execute weekly with freedom to change approaches, experimentation, cleaning tech debt. To do this, it requires a clear vision that both parties(business and development team) agree on. Then we need a navigator(s) who can ensure the team is moving towards the agreed goal. There is some level of tracking required but not too much.
#5. Event Sourcing: why using a message broker is a bad idea – Link
Sometimes a simple situation is better and more efficient. This article talks about how we can use polling to simplify event sourcing implementation. Most implementations of event sourcing use a message broker like Kafka or RabbitMQ. There are multiple design challenges introduced by adding a message broker in event sourcing system – 1) Atomic transaction between event store and message broker 2) event ordering 3) add new read model. I enjoyed reading this article as it discusses practical problems and gives a simple solution. You will have to understand the tradeoffs of the polling solution before embarking on that journey.
#6. Profiling and Analyzing Performance of Python Programs – Link
This post covers various ways to profile Python code for performance bottlenecks. It covers cProfile, py-spy, line_profiler, and py-heat tools.
#7. The Optional Chaining Operator, “Modern” Browsers, and My Mom – Link
#8. Defining High Availability in a Postgres World – Link
This post takes a step by step approach to defining high availability in the context of Postgres. It covers a couple of solutions that provide high availability.
#9. Considering Vue.js? Here are 5 reasons you’ll love it – Link
I used Vue once in my personal project and I enjoyed it. I found it productive and easy to learn with good documentation and resources available on the web. For me the favorite part of Vue as mentioned in the post is Single File Components can be wonderful to work with because you can encapsulate everything you need right there without a lot of jumping around to many different files.
#10. How I took my SaaS from idea to sold in 14 months – Link
I loved the simplicity of the idea. It solved a real problem for the author and others connected with it. I also gave it a try. It is a nice tool. I also liked the idea of selling your small business. I might take some inspiration from the author.