Articles

Makefile: adding prerequisites to external targets

Consider that you have a situation where you have a build system using make heavily. And you want to hook into one of the targets such that before the target is built, make builds the prerequisite you are interested in.

git_prompt: Type driven development in Rust

This post is from a series of posts about writing a small application in Rust to display information about a particular git repository.

In this part I try to explore the problem by relying on the Rust's compiler and the sum types.

git_prompt: Generating test data for UI tuning

This post is from a series of posts about writing a small application in Rust to display information about a particular git repository.

I have finished at the MVP stage (part 1) of the prompt after adding the logging (part 2) so in this post I summarize the rest of features:

  • git branch status
  • git local status

git_prompt: diagnostics and logging

This post is from a series of posts about writing a small application in Rust to display information about a particular git repository.

Yesterday I finished with a reasonably good starting point and I thought that I would not talk about diagnostics, but after finding out how good rust tool-chain is at this, I wanted to share some thoughts.

git_prompt: Writing an MWP

As an attempt to learn Rust and type-driven development using it I am going to show you how to write a small Rust CLI, which gives you status about the current repository. I wanted a small CLI to update my prompt for ion and zsh and I wanted it to be as fast as possible with the possibility to extend in case I want to display more information.