Vinicius Rocha

The Z shell

The shell is what seats between the user and the core of the operating system, usually in a form of a command line interface (CLI). The most popular shell on Linux distributions is bash. In 2019, Apple started releasing the MacOS with Zsh (Z shell) by default. I believe that is one the reasons that made zsh so popular.

Read more...

Switch to Starship

I just made the switch to Starship and I am not looking back. The main reason is performance and consistency. Built using Rust, Starship describes itself as the minimal, blazing-fast, and infinitely customizable prompt for any shell. Check it out!

Read more...

Add a JSON configuration file to a .NET Core console application

A .NET Core application can handle configuration using different formats (providers) like memory, command line and environment. Follow along to learn how we can add a JSON configuration provider to a console application.

Read more...

How to catch an OverflowException

The OverflowException is thrown in .NET when an arithmetic operation or casting, inside a checked context, results in a type overflow. In Visual Basic (VB.NET), the checked context is on by default, but NOT in C#.

Read more...

Closing WPF Dialogs from the ViewModel

Describes two ways to close a dialog in WPF from your ViewModel. You can do that via Events or using a DialogResult property. Keep reading to learn more about it.

Read more...

Working with a legacy code base

This is a collection of five lessons I learned working with legacy code. They are mostly soft skill. I learned that maintaining a legacy code base has more to with how you face it, than with your technical skills.

Read more...

Using different user per git repository

To specify a different user name and e-mail per-project, you have to add the following information to the file /.git/config.

Read more...

ASP.NET Conditional Validation

Conditional validation can be very useful, and I’m glad that I found an elegant way of doing it. You can use the same View-Model on two different actions of your controller and have different validations for each of them.

Read more...

Unit Testing NHibernate Mappings

What is the best approach to map your domain classes to the database using NHibernate? After doing some tests, I believe that the best answer is: it doesn’t matter. As long as you have unit tests in place for it, you are covered.

Read more...