Embracing the Power of Trunk-Based Development: A Paradigm Shift

In the ever-evolving landscape of software development methodologies, staying open to change and exploring alternative approaches is essential for growth and innovation. Recently, I had the opportunity to work with highly effective teams that had adopted a development technique known as “Trunk-Based Development” (TBD). This experience turned out to be a transformative journey that broadened my perspective on software development practices. In this blog post, I aim to share my insights and observations about the power of Trunk-Based Development.

Continue reading “Embracing the Power of Trunk-Based Development: A Paradigm Shift”

Enhancing Infrastructure Security: Tracking Terraform Changes with Atlantis and AWS CloudTrail

Managing infrastructure efficiently and securely is a top priority for any organization. At Tray.io, we have adopted Terraform and Atlantis as our preferred methods for infrastructure management. To bolster our security measures, we use AWS CloudTrail to monitor and audit changes made to our AWS environment. However, tracking the source of these changes has been a challenge. In this blog post, I’ll walk you through how we solved this problem by combining features from Atlantis and the Terraform AWS provider.

Continue reading “Enhancing Infrastructure Security: Tracking Terraform Changes with Atlantis and AWS CloudTrail”

How to write self-documenting Code

By Patrick Tomasso

How to write code that is easy to understand and maintain without adding documentation.

In this post, I am going to share some tips and good practices to achieve what I and my colleagues used to call “Self Documenting Code ©”.

The examples used here are in the context of the Python programming language but the same can apply to other languages too.

Some of those tips may sound trivial and common sense but you’d be surprised how many people don’t follow those recommendations.

Continue reading “How to write self-documenting Code”

VSCode Anchor: The powerful less known feature

The Anchor, although rarely talked about, is a VSCode feature that saves time and makes code navigation easier. Here is why and how to use it:

Quick bookmark:

Sometimes when coding, I need to see a function signature or add a constant at the top of the editor without losing my current line and column. . What I want to do is to put an “anchor” in my current position, go to where I want to go, and then jump back quickly to my “anchor” location.

Continue reading “VSCode Anchor: The powerful less known feature”

On (not) repeating the same mistakes

We have all been there: trying not to be late for a friend or trying to control our monthly spending or trying not to eat that unhealthy food but ending up doing it again and again.

In this blog post, I am going to share a “framework” that helped me fix a lot of problems in my personal and professional life. Most importantly, it helped me not staying stuck and repeating the same mistakes.

Continue reading “On (not) repeating the same mistakes”

oh-my-zsh git aliases

zsh combined with oh-my-zsh is my daily driver on the terminal and I love it. Here is one of there reasons why: git aliases

  • g : git
  • ga : git add
  • gaa : git add –all
  • gapa : git add –patch
  • gc: git commit
  • gcmsg: git commit -m
  • gst: git status
  • gp : git push
  • gl : git pull
  • gd : git diff
  • gco : git checkout
  • glg : git log –stat

Those are the ones I use the most. The full list can be found in the plugin page

Why?

Continue reading “oh-my-zsh git aliases”

Hello world

In this blog, I am going to share what I think is useful in the following domains:

  • SRE and infrastructure engineering
  • Productivity hack
  • Using Linux as a desktop work station
  • Insights from books I read
  • Mini how-tos

If you find a mistake or you think I can do something better, I would love to hear from you over this email: amine hmida at gmail com.

All ideas and opinions in this blog are mine and not those of my employer.