Reinforced Learning

Tips and tricks we've picked up along the way.

Olio Apps

Automatic Code Formatting for Partially-Staged Files

GitAutomatic Formatting

Automatic Code Formatting for Partially-Staged Files

I wrote git-format-staged to apply an automatic code formatter or linter to staged files. It ignores unstaged changes, and leaves those changes unstaged. When run in a Git pre-commit hook git-format-staged guarantees that committed files are formatted properly, and does not clobber unstaged changes if formatting cannot be applied to working tree files cleanly.

Jesse Hallett

Software Engineer

Pyramid of Doom - or - My Problem Solving Algorithm
Problem SolvingAlgorithms

Pyramid of Doom - or - My Problem Solving Algorithm

We recently had a new intern at Olio Apps and during the first couple days they were given a mini coding exercise to work through. By way of Friday afternoon banter, this was extended as a challenge to the rest of us devs to come up with our own solution. I wanted to write down my approach to solving this problem because it may be useful for some student, intern or Jr. dev preparing for an interview.

Siggy Hinds

Software Engineer

Interested in working with us?