Intern Track Roadmap

Flowcharts & decision trees

This course teaches how to draw and read flowcharts and decision trees, and how they map to Ruby and Rails code. It covers the standard symbols, sequential and branching flows, guard clauses, and loops with break and next. Decision trees are used for pricing and authorization rules. Later lessons translate flowcharts into service objects, draw flowcharts from existing code, and use Mermaid in pull requests, state machines, migrations and Turbo flows.

What you'll learn

  • ✓Flowchart symbols such as terminal, process, decision, I/O, connector and data store
  • ✓Sequence, branch and loop patterns and their Ruby equivalents
  • ✓Flattening nested branches with guard clauses and before_action
  • ✓Building decision trees for shipping costs, discounts and authorization
  • ✓Translating flowcharts into Ruby code and code back into flowcharts
  • ✓Writing Mermaid diagrams for pull requests, state machines and migrations
Free preview · Lesson 1 5 min read

What is a flowchart?

A flowchart is a visual diagram that represents a process as a sequence of steps connected by arrows. Each step is drawn as a shape, and the arrows show the flow: the order in which steps execute.

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...