The bottom line (TL;DR)
- Array functions (map, sum, sort, distinct, slice) save modules and Credits.
- The Text parser with regex extracts from text in a fixed format.
- CSV and HTML are built with aggregators; a BOM for Excel.
- Make Code runs JS/Python on paid plans โ when you really need it.
- We built an automatic weekly sales report.
The key points โ in depth
1. Array functions
map (also with filtering), sum, sort, distinct, slice, merge.
2. The Text parser
Match pattern with named groups; regex for a fixed format.
3. Files
Create/Parse CSV, an HTML table, a BOM.
4. Make Code
JS/Python, paid plans, ~2 Credits a second, no network.
5. KPIs
Total, deals, average, leader, percent change.
6. Reports
Aggregators โ HTML/CSV โ Gmail + Telegram.
Concept cards (click or press Enter to flip)
map
Pulls a field from each item in an array (optionally with filtering).
sort
Sorts an array by a field.
distinct
Removes duplicates.
slice
Cuts part of an array.
Match pattern
Extraction with regex and named groups.
Create CSV
Creating a CSV file from data.
Make Code
A module for running JavaScript/Python.
BOM
A character at the start of a file that makes Excel detect UTF-8.
Spaced repetition โ the session concepts
Mark "I knew it" or "Not yet" โ the cards you did not know come back more often. Cards from all the sessions are in the arcade.
Quick cheat sheet
| What | Details |
|---|---|
{{sum(map(arr; "amount"))}} | A sum |
{{map(arr; "amount"; "region"; "Center")}} | A filtered map |
{{slice(sort(arr; "desc"; "amount"); 0; 3)}} | Top 3 |
{{distinct(map(arr; "agent"))}} | Unique values |
| Text parser โ Match pattern | Regex |
| CSV โ Create CSV (advanced) | Creating a CSV |
| Make Code โ Run code | JS / Python |
{{formatDate(now; "W")}} | Week number |
Common mistakes to avoid
- An Iterator + aggregator when one function is enough.
- Make Code for every small thing โ less readable and more expensive.
- A CSV without a BOM for Excel.
- Division by zero in a percent change.
- A regex with a typographic quote instead of a plain one.
Self-review questions
- What's the difference between a regular map and a map with filtering?
- When does Make Code pay off?
- How do you build an HTML table from bundles?
- Why regex and not AI for emails from a system?
- How do you calculate a percent change safely?
Homework and preparing for the next session
- An active weekly report.
- Preparing for session 8: open free accounts on Airtable and Supabase.
- ๐ The midterm exam (sessions 1โ7) is available on the home page.