Manage multiple Node.js versions
If you are working on various projects, you have likely encountered situations where you need to have multiple versions of Node.js installed on your computer.
Perform Dynamic Execution of an npm Package
Sometimes, all you want to do is grab an npm package and execute a command with it, without having to install it (whether globally or as a dependency).
Week 46, 2022 - Tips I learned this week
This week, I installed .NET 7 on my laptop and I used Windows Package Manager for that:
Discussion about API clients
This article is a discussion about API clients. Without being a comparison between the best API clients, this article talks about the pros and cons of some popular tools to send HTTP requests to an API. The goal is not to elect the best one, but rather to try to answer the following question: what we should consider when choosing an API client, and what are the challenges when using one?
How did I automate the setup of my developer Windows laptop?
In this article, I talked about my latest project: how I built a script to automate the setup of my developer machine using Boxstarter, Chocolatey, Winget, and PowerShell... and how I learned a few things along the way.
Keeping secrets secure when using API Clients
When using some API Clients (like REST Client or the HTTP Client of JetBrains' IDEs), environment variables are stored in JSON files that can contain secrets. To share these files within a team, developers tend to send them by email or by messaging applications, which is not very convenient nor secure 🔐. I thought it would be a good idea to store these secrets directly in an Azure Key Vault and automate the generation of a JSON file containing the secrets using Azure CLI and Nushell.
Week 20, 2022 - Tips I learned this week
Once again, I found myself forgetting that this
can lose context in JavaScript/TypeScript which results in exceptions because this
is undefined. This is probably obvious for most developers but this is not a case I come across often so it's better to write it down so that I have something to refer to next time.
Week 19, 2022 - Tips I learned this week
If you have read my git cheat sheet, you know that I am a big fan of the GitLens vscode extension. I have been using it for a while now but just discovered recently that there is a Git Command Palette that gives access to most common Git commands.
Week 5, 2022 - Tips I learned this week
This week we talk about code analysis in .NET, cron expressions with crontab guru, diagrams in Azure DevOps wikis, and sending HTTP requests in VS Code.
Week 3, 2022 - Tips I learned this week
.NET 6 introduced a new way to build a .NET application using the new WebApplication
and WebApplicationBuilder
classes. One thing I like about it is how configuration is handled. Instead of using the ConfigureAppConfiguration
method to add a new configuration source, you can directly use the Configuration
property on the WebApplicationBuilder
instance. You can see an example of this change on this screenshot of the ASP.NET Core documentation: