Bitpath

Boss lesson · Unit 03

One command

Build the single check that guards a project: order it, wire it into CI, and keep it fast

13 exercisesabout 3 min

What you practise

  • Lint, types and tests behind one task, fastest checks first, the same command locally and in CI

Try a question from this lesson

Pick one

Three checks guard a project: lint takes 5 s, the type check 20 s, the tests 4 min. A script runs them one by one and stops at the first failure. Which order is best?

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

One entry point

A project needs one command that answers "is this safe to push?".

It runs every check in a fixed order, the same way on every machine. A new teammate learns one command, and CI calls that same command.

When a check is added, it is added in one place, and everyone gets it with their next pull.

Concept

Fail fast, or report everything

Fail fast stops at the first failed check. It is the quickest answer to "can I push?".

Report all runs every check and fails at the end. It suits CI, where each round trip is slow and you want the whole list of problems at once.

make -k keeps going past a failure. A script can do the same by remembering a status.

10 more exercises in the app

  • 2× fill the blanks
  • 3× type the answer
  • 3× multiple choice
  • 1× true or false
  • 1× order the lines

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy