Joining test coverage from several test directories
Posted on February 14, 2025
| Diego J. Romero-López
Joining test coverage from several test directories This post show a simple way of computing the coverage.py’s test coverage from different tests folders.
Introduction I have been using coverage.py since I started working with python, and while it works pretty well, let us say that the interface of the command line tool could be better.
I struggled for some minutes trying to filter out other folder I have in my tests folder that were not meant to have their test coverage computed.
[Read More]
Joining test coverage in several test directories
Posted on February 14, 2025
| Diego J. Romero-López
Joining test coverage in several test directories This post show a simple way of computing the coverage.py’s test coverage in different tests folders.
Introduction I have been using coverage.py since I started working with python, and while it works pretty well, let us say that the interface of the command line tool could be better.
I struggled for some minutes trying to filter out other folder I have in my tests folder that were not meant to have their test coverage computed.
[Read More]
Patching on setUp in Python's unittest
Posted on February 13, 2025
| Diego J. Romero-López
Patching on setUp in Python’s unittest One of my favorite programming languages is Python, and I think that tests should be a foundational part of software development, so it is not strange that I delve a lot in Python’s unittest.
In this post we are going to show how to use unittest.mock.patch not in a decorator (the usual case) but in the setUp method.
Why should you care about this? Well, I have not cared about this after more than a decade of working with python (intermittently), because I was just used to the patch decorator.
[Read More]
The world is full of irrational people
Posted on January 25, 2025
| Diego J. Romero-López
The world is full of irrational people Recently I took a personality test where I ended up being classified as an analytical person, and I am that indeed. How can I thrive in a world where the critical thinking and the rationality are being attacked everyday?
Irrational people in software development Our profession, software development, is full of irrational people.
First of all, we do not work in Science, and in software development there are multiple ways of do the same thing.
[Read More]
10 years of this blog
Posted on December 29, 2024
| Diego J. Romero-López
10 years of this blog I have been blogging about software and technology in this blog for a decade. What was the rationale of this blog? Why should you write a technical blog?
How it all started I started blogging in 2014, when I was improving my skills via a Masters Program. I was a bit burned out because studying and working at the same time require an energy I did not have during that time.
[Read More]
How to create a Dockerfile for your deno fresh project
Posted on December 28, 2024
| Diego J. Romero-López
How to create a Dockerfile for your deno fresh project Sometimes creating a Dockerfile is an art, you need to be aware of what files include in each layer to leverage the docker cache. How can we do this with deno fresh?
Recommended or usual Dockerfile Most of the examples I have found in the internet (like this one) tend to copy all the files in the same Docker instruction:
[Read More]
How to add OTEL to your deno fresh project
Posted on December 27, 2024
| Diego J. Romero-López
How to add OTEL to your deno fresh project OpenTelemetry is a standard for adding telemetry to your application. There are a myriad of implementations for almost all the programming languages. But you need to be aware that the particularities of each language can make integrating with OTEL very different in one case or other.
Introduction This post assumes you know what observability is, the best practices and the bare minimum that is accepted nowadays in modern applications.
[Read More]
Faulty engineering career ladders
Posted on December 26, 2024
| Diego J. Romero-López
Faulty engineering career ladders Introduction Let’s see several issues with the Engineering ladders I have seen on my 16 years of experience.
This is a long post, I do not recommend reading it in one sitting.
Faulty engineering ladders Most companies I worked for had some kind of Engineering ladder. It looks nice and promising to know that you can be promoted. However, in my experience there is no clear path for promotion.
[Read More]
How to write a simple middleware in deno fresh
Posted on December 26, 2024
| Diego J. Romero-López
How to write a simple middleware in deno fresh Middlewares are layers that inject data or check the HTTP request and are used by a set of routes. They are very useful as they group functionality together. Let’s see how to implement a middleware in deno fresh.
Select the routes the middleware is going to affect The middlewares in deno fresh are created inside a _middleware.ts file. This file will affect the routes that are from its level to the bottom.
[Read More]
The different types of personality
Posted on December 25, 2024
| Diego J. Romero-López
# The different types of personality There are several frames that try to define the different types of personality (without any kind of particular order):
Surrounded by idiots C-me colour profiling Disc profiles The four tendencies What are those? Several psychology researchers have determined that people can be grouped based on 4 personality profiles.
Mainly they define the following dimensions:
Analytical Dominant Social/Leader Cooperative How do they affect your communication?
[Read More]