Articles
11 technical articles I've published on Medium, about Angular, .NET, TypeScript and clean code.

March 28, 2024
Formatting - Breaking Down Clean Code Ideas
When people look to your code, we want them to be impressed with the neatness, consistency, and attention to detail that they perceive. We want them to perceive that professionals have been at work. If instead they see a scrambled mass of code that looks like it was written with your feet, then they are likely to conclude that the same inattention to detail pervades every other aspect of the project. The Purpose of Formatting Code formatting is important. Code formatting is about communication, and communication is the professional developer’s first order of business.
Clean CodeFormatting CodeRefactoringRead on Medium
March 27, 2024
Comments - Breaking Down Clean Code Ideas
Comments are not “pure good”. Indeed, comments are, at best, a necessary evil. The proper use of comments is to compensate for our failure to express ourself in code. Comments are always failures. So when you find yourself in a position where you need to write a comment, think it through and see whether there isn’t some way to turn the tables and express yourself in code. Comments lie. Not always, and not intentionally, but too often. The older a comment is, and the farther away it is from the code it describes, the more likely it is to be just plain wrong. The reason is simple. Programmers can’t realistically maintain them.
Clean CodeCommentsRefactoringRead on Medium
March 21, 2024
Functions - Breaking Down Clean Code Ideas
Functions are the first line of organization in any program. Writing them well is the topic of this chapter. Small! Functions should be as small as possible. They should hardly ever be 20 lines long. Blocks within if statements, else statements, while statements, and so on should be one line long. Probably that line should be a function call. The function called can have a nicely descriptive name which adds documentary value. The indent level of a function should not be greater than one or two.
Clean CodeFunctionsRefactoringRead on Medium
March 12, 2024
Meaningful Names - Breaking Down Clean Code Ideas
Names in code are everywhere, so give them the importance they deserve. To better name your variables, functions, classes, files, and so forth, the book suggests the following rules. Use Intention-Revealing Names Names must reveal their intent. Choosing good names takes time but saves more than it takes. If a name requires a comment, then the name does not reveal its intent. You can evaluate a name by considering if it answers the following questions: why does it exist? What does it do? How is it used?
Clean CodeMeaningful NamesRefactoringRead on Medium
November 18, 2023
Maybe you didn’t think about this about Typescript enums
There is a lot of discussion in the community on the topic of enums in Typescript. Many people call them the worst feature of the language, others propose alternatives that fix those known problems, and others defend string enums, etc. Anyway, this article is a summary of key points from everything I could find in articles and videos on the internet about the subject. At the end of this article, I’ll tell you which ideas I agree with and show you something new, an advantage of the POJO Enum in Angular that you may not have thought of.
TypescriptJavaScriptAngular TemplateRead on Medium
November 12, 2023
Simple Unsaved Data Changes Guard in Angular 17+
In this article, we are going to learn how to take advantages of the features of the new versions of Angular for the use-case, “when a user wants to navigate to other routes having pending data changes in the current page”. To understand it better, a picture is worth a thousand words, a gif is worth a thousand images. We will achieve this flow in a very easy way through a simple, elegant and reusable guard.
Angular 17GuardAngular RouterRead on Medium
December 7, 2022
Accessibility Linters for Angular applications
This is an explanatory and tutorial article of the best technologies for accessibility linters for Angular applications. By linter we refer to static code analysis. The article is divided into 4 sections: 1.- Evaluating some technologies. 2.- Configuring angular-eslint and html-validate. 3.- Comparison of angular-eslint and html-validate against Axe Accessibility Linter. 4.- Conclusion.
A11yAngularLinterRead on Medium
December 7, 2022
Angular Internationalization with I18Next and Luxon
In this article, we will see how to internationalize an Angular application from scratch. We will provide you with information for: Text translation. Date formats. Locale formatting/parsing on ng-bootstrap Datepickers. Text translation for days/months on ng-bootstrap Datepickers. *Important — you can see the full implementation of everything in this article in the GitHub code. It includes a demo application!
InternationalizationLuxonNg BootstrapRead on Medium
December 1, 2022
API .NET Docker images optimization tutorial
Why should we optimize docker images? Optimizing your Docker images is very important, they should be as slim as possible so that we can reduce storage costs, network transfer size, builds and deployments time, and improve security by reducing the attack surface. My recommendation is that you see the Docker images for ASP.NET Core before starting with this guide.
Docker ImageDotnetOptimizationRead on Medium
December 1, 2022
Enhance communication of your changes with GitHub Pull Requests Templates
One of the most critical roles we play as developers is to clearly communicate with our team. As a developer, I want the team members who will review my code to understand what I’m trying to achieve with my work. And as a code reviewer, I want the developer to explain their changes and let me know how I can test their code. GitHub allows us to create Pull Request Templates. This feature is very helpful because we can communicate all of our ideas in one place. We can encourage contributors to communicate more effectively with their teams by noting what’s new and changed. Also, using pull request templates is a way of educating developers because with the information we remember the developers to do some verifications before creating the pull requests.
GitHubPull RequestDeveloperRead on Medium
November 30, 2022
My first work experience after graduating from Systems Engineering
Finishing college probably is one of the most rewarding experiences in life when talking about the personal realization. Everything is awesome until you have to find for a job. For some people this is terribly hard and for others it isn’t. It depends on where do you live, what you have studied, and many other factors are involved. Finally, after many interviews you have a job, and then you will be experiencing your first working experience. That’s what this article is about. I will tell you the things I felt and learned about my first working experience.
First JobWork ExperienceImposter SyndromeRead on Medium