Profile Picture

C4 Level Diagrams & Git

UML Diagrams from Typescript

I was recently putting together C4 Model diagrams and when I got to the last-level, I needed code level-views. This is where I stumbled onto the following automation to assist with TypeScript to UML. Automatic generation of UML from typrscript.


There is also a good option for C# users:

Generate OMD

Git, EditorConfig and Darn Windows Users

If you in a team and the only Linux/Mac user and using Git. This is the setting you need for you git config.


Git access multiple accounts

Adapt this and add to your ~/.ssh/config

# Enterprise account
  User git
  IdentityFile ~/.ssh/id_rsa_github_enterprise
  IdentitiesOnly yes

Personal account

Host HostName User git IdentityFile ~/.ssh/id_rsa_github_personal IdentitiesOnly yes

Make sure for each repo you set the following to match:

git config "Your Enterprise Username"
git config ""

Then define your remote origin:

git remote set-url origin

High Fidelity Tests

This is an absolutely well articulated blog post on Testing. It emphasizes to pursue high fidelity tests. That is tests, that are closest to reality. It suggested a three-fold approach, of starting with (1) use the real thing (2) use a fake, and worst-case (3) use a mock.

I find this salient advice, tying directly to my experience.

Read it here