Design system

Startodel design system · Planned

Planned components

Interface for features on the roadmap. Each component is real and themed, renders sample data and calls no API. A feature is built by wiring these components to its data.

01

Code practice

An Exercise with an editor, a saved attempt and a test runner that reports each test. Issue #52

Exercise workbenchRun the tests a few times: the specimen walks through failed, passed and an error. Type in the editor to see the unsaved state
javascript
// Return the items without repeats by key. The first of each stays.
export function uniqueBy(items, key) {
  return items;
}

Saved

Tests not run yet

JavaScript · Web Worker

Run the tests to check your solution.

  1. returns an empty array for an empty inputnot run
  2. keeps the first of the items that share a keynot run
  3. keeps the original ordernot run
  4. does not change the input arraynot run
  5. takes a function in place of a field namenot run
Exercise workbench · the saved attemptSaved, unsaved and saving each carry a shape and a word. Without results the editor takes the whole width
javascript
export function uniqueBy(items, key) {
  const seen = new Set();
  return items.filter((item) => !seen.has(item[key]) && seen.add(item[key]));
}

Saved

javascript
export function uniqueBy(items, key) {
  const seen = new Set();
  return items.filter((item) => !seen.has(item[key]) && seen.add(item[key]));
}

Unsaved changes

javascript
export function uniqueBy(items, key) {
  const seen = new Set();
  return items.filter((item) => !seen.has(item[key]) && seen.add(item[key]));
}

Saving

Test runner · idle and runningBefore a run the panel says what to do. During a run every test waits with a dashed ring

Tests not run yet

JavaScript · Web Worker

Run the tests to check your solution.

Running the tests

JavaScript · Web Worker
  1. returns an empty array for an empty inputwaiting
  2. keeps the first of the items that share a keywaiting
  3. keeps the original orderwaiting
  4. does not change the input arraywaiting
  5. takes a function in place of a field namewaiting
Test runner · passed and failedA full pad passed, a hollow pad failed. The first failure opens by itself

5 of 5 passed

JavaScript · Web Worker
  1. returns an empty array for an empty inputpassed · 2 ms
  2. keeps the first of the items that share a keypassed · 4 ms
  3. keeps the original orderpassed · 1 ms
  4. does not change the input arraypassed · 1 ms
  5. takes a function in place of a field namepassed · 3 ms

3 of 5 passed

JavaScript · Web Worker
  1. returns an empty array for an empty inputpassed · 2 ms
  2. keeps the first of the items that share a keyfailed · 4 ms
    Expected
    [
      { id: 1, name: "Ada" },
      { id: 2, name: "Lin" },
    ]
    Received
    [
      { id: 1, name: "Ada" },
      { id: 2, name: "Lin" },
      { id: 1, name: "Ada L." },
    ]
  3. keeps the original orderpassed · 1 ms
  4. does not change the input arraypassed · 1 ms
  5. takes a function in place of a field namefailed · 3 ms
Test runner · the code did not runA syntax error and a timeout stop the run before the first test

The code did not run

JavaScript · Web Worker

The tests did not start: the code stopped with an error.

SyntaxError: Unexpected token '}'
    at solution.js:4:1
  1. returns an empty array for an empty inputnot run
  2. keeps the first of the items that share a keynot run
  3. keeps the original ordernot run
  4. does not change the input arraynot run
  5. takes a function in place of a field namenot run

The code did not run

SQL · SQLite

The tests did not start: the code stopped with an error.

The query was stopped: it ran longer than 5 seconds.
  1. returns the Lessons of one Owner onlynot run
  2. sorts the Lessons by their position in the Topicnot run

02

Media and files

Attachments, uploads and the storage quota of an Owner. Issue #54

Attachment · every stateRows of one list, separated by hairlines. The state is a glyph and a word
  • event-loop-phases.mp4

    184 MB Uploading

    62%
  • explain-analyze-walkthrough.mp4

    412 MB Processing

  • nested-loop-plan.png

    348 kB Uploaded

  • index-types-cheatsheet.pdf

    2.4 MB Uploaded

  • exercise-fixtures.zip

    18.6 MB Upload failed

    The connection dropped at 41%.

  • conference-talk-full-recording.mp4

    2.4 GB Not enough storage

UploadThe button opens the file dialog. The zone itself is not a tab stop. Chosen files go to the caller

Drop files here

MP4, PNG, PDF, ZIP · up to 500 MB

Upload · a file over the zone, and a full storageOver the zone the outline turns solid and the title says what a release does

Drop a file here

MP4, WebM · up to 2 GB

The storage is full. Remove the files you no longer need to upload new ones.

MP4, PNG, PDF, ZIP · up to 500 MB

Storage quotaNormal, almost full, full, and an instance without a limit

Storage

Space left

4.2 of 10 GB

5.8 GB free

Video
3.6 GB
Files
600 MB

Storage

Almost full

9.4 of 10 GB

600 MB free

Video
8.1 GB
Files
1.3 GB

Storage

Full

10 of 10 GB

New files will not upload until some space is freed.

Storage

No limit

38.4 GB used

Video
35.2 GB
Files
3.2 GB
Video fileReady, processing, an expired link and no access. Nothing is requested before play
12:48 · 184 MB
The six phases of the Node.js event loopProcessing the video
412 MB
Covering indexes on a live tableThe link has expired
22:05 · 296 MB
A deadlock, taken apartNo access to this video
1:10:10

03

Agent fit

How well the connected agent follows the way Startodel teaches. Issue #48

UiAgentFit · compactFor the Dashboard. The word opens the four signals
UiAgentFit · fullFor Settings. A prompt appears when a signal is off

How your agent teaches

Needs attention

A few things are worth adjusting. This is advice, not a grade.

  • Follows the guideFine

    Calls get_guide and get_profile before authoring Lessons.

  • Reliable Tool callsFine

    Calls go through on the first try.

  • Varied LessonsNeeds attention

    Lessons are light on practice. Ask for more Quizzes and Exercises.

  • Checks before raising MasteryNeeds attention

    Sometimes raises Mastery without a Grill. Ask it to check first.

Send this to your agent

Adjust how you work in Startodel: - Give every Lesson a code example, a Quiz and an Exercise, not only text. - Do not raise Mastery without a Grill. Record the evidence with the level.

UiAgentFit · results

How your agent teaches

Works well

Your agent follows the guide and checks what you know before raising Mastery.

  • Follows the guideFine

    Calls get_guide and get_profile before authoring Lessons.

  • Reliable Tool callsFine

    Calls go through on the first try.

  • Varied LessonsFine

    Lessons mix code, Quizzes and Exercises.

  • Checks before raising MasteryFine

    Runs a Grill and records evidence before raising Mastery.

How your agent teaches

Poor fit

Your agent often departs from the guide. The prompt below brings it back.

  • Follows the guideNeeds fixing

    Authors Lessons without get_guide and get_profile. Ask it to call both at the start of every session.

  • Reliable Tool callsNeeds attention

    Some calls fail validation. Ask it to check the Tool schema.

  • Varied LessonsNeeds fixing

    Lessons are walls of text. Ask for code, a Quiz and an Exercise in each one.

  • Checks before raising MasteryNo data yet

Send this to your agent

Adjust how you work in Startodel: - Call get_guide and get_profile at the start of every session and follow them. - Check your arguments against the Tool schema before each call. When validation fails, fix the arguments and retry. - Give every Lesson a code example, a Quiz and an Exercise, not only text.

How your agent teaches

Not enough data yet

A reading appears after a few sessions with your agent.

  • Follows the guideNo data yet

  • Reliable Tool callsNo data yet

  • Varied LessonsNo data yet

  • Checks before raising MasteryNo data yet

04

Change proposals

An edit made in a Fork, offered back to the source Track as a Block-level difference. Issue #58

Change proposal · for the author of the TrackAccept or decline it to see the card settle. The difference is the Lesson diff in its unified view

Lin Wei

T04 · L02 · B05Covering indexes

Open
The query in this Block sorts by position and reads title. With this index an index-only scan is enough, with no trip to the table.
sql
Beforein the source TrackAfterin the Fork
create index lessons_topic_idxRemoved:   on lessons (topic_id);Added:   on lessons (topic_id, position)Added:   include (title);
Change proposal · for the proposerA prose Block is compared in the reading voice. The proposer can only withdraw

Sofia Marchetti

T02 · L01 · B03How to read a query plan

Open
Made the LIKE claim precise: a B-tree does not help with a '%abc' pattern.
Beforein the source TrackAfterin the Fork
Removed: A B-tree index speeds up queries with LIKE.Added: A B-tree index speeds up LIKE only when the pattern is anchored at the start: 'abc%'.Added: A search in the middle of a string needs a trigram index.Check the plan with EXPLAIN.
Change proposal · accepted, declined, outdatedEach status is a glyph and a word. An outdated proposal can no longer be accepted

Timur Akhmetov

T02 · L01 · B07How to read a query plan

Accepted
A typo in the column name.
sql
Beforein the source TrackAfterin the Fork
Removed: select id, title from lessons where topik_id = $1;Added: select id, title from lessons where topic_id = $1;

T05 · L03 · B11Join strategies

Declined
A typo in the column name.
sql
Beforein the source TrackAfterin the Fork
Removed: select id, title from lessons where topik_id = $1;Added: select id, title from lessons where topic_id = $1;

T04 · L02 · B01Covering indexes

Outdated

The Block has changed since this proposal. The comparison shows its earlier text.

A typo in the column name.
sql
Beforein the source TrackAfterin the Fork
Removed: select id, title from lessons where topik_id = $1;Added: select id, title from lessons where topic_id = $1;
Change proposal listThe inbox of an author: a count per status, then compact rows
Change proposal list · empty

No proposals yet

When someone proposes a change from their Fork, it will show up here.

05

Versions and export

Published versions of a Track with their notes, and a portable export and import. Issue #56

Track versions · manyNewest first. Publish a version to see it join the timeline
  1. v3Current

    Added a Topic on covering indexes and rewrote the EXPLAIN Lesson: it now shows plans from PostgreSQL 17.

    2 new Lessons · 5 Blocks changed

  2. v2

    Your Fork is based on v2

    Fixed the examples in the Topic on joins and removed the dated Lesson on hash indexes.

    1 Lesson removed · 12 Blocks changed

  3. v1

    The first version of the Track.

Track versions · none and oneWithout versions the Owner is offered the first one. A reader sees the timeline alone

No versions yet

A version keeps the Track as it is now. Forks remember the version they were made from.

  1. v1Current

    Your Fork is based on v1

    The first version of the Track.

Track exportExport it to see the busy and the done states
What goes in
6 Topics · 18 Lessons · 7 Quizzes · 5 Exercises · 9 media links
Format version
1.0
Track export · busy and doneWhile the file is built the choice is locked
What goes in
6 Topics · 18 Lessons · 7 Quizzes · 5 Exercises · 9 media links
Format version
1.0

Building the file

What goes in
6 Topics · 18 Lessons · 7 Quizzes · 5 Exercises
Format version
1.0

The file is readypostgres-query-planning.startodel.zip

Track importChoose a .json file to see a valid result, any other file to see the report

Drop a file here

JSON, ZIP · up to 20 MB

Track import · checking, valid, invalidA valid file says what it will create. An invalid one lists each error with its path
postgres-query-planning.startodel.json

Checking the file

postgres-query-planning.startodel.json

The file is valid

Query planning in PostgreSQL

This will create: 6 Topics · 18 Lessons · 7 Quizzes · 5 Exercises · 9 media links

rust-ownership.startodel.zip

3 errors in the file

  1. topics[3].lessons[0].blocks[2].typeUnknown Block type: diagram. Format 1.0 does not know it.
  2. topics[1].prerequisites[0]The Topic refers to the Topic borrowing, which is not in the file.
  3. topics[4].lessons[2].blocks[5].optionsThe Quiz question has no correct option.

06

Gated access

A public syllabus with locked Lessons, a request for access and the author's grants. Issue #53

UiTrackAccessHow a Track is shared: a shape and a word
PrivatePublicBy request
UiTrackSyllabus · visitorA locked Lesson stays unlinked. A preview Lesson is a link

PostgreSQL for backend engineersBy request

Syllabus

6 Topics · 16 Lessons · 3 previews

  1. T01How PostgreSQL runs a query

    1. L01From SQL text to a planPreview
    2. L02Sequential scans and costPreview
    3. L03What the planner knows about a tableLocked
  2. T02Reading EXPLAIN

    1. L01Reading a plan treePreview
    2. L02EXPLAIN ANALYZE and actual timeLocked
    3. L03Row estimates versus realityLocked
  3. T03B-tree indexes

    1. L01Inside a B-treeLocked
    2. L02Index Scan and Index Only ScanLocked
    3. L03When an index does not helpLocked
  4. T04Composite and partial indexes

    1. L01Column order in a composite indexLocked
    2. L02Partial indexesLocked
  5. T05Join strategies

    1. L01Nested LoopLocked
    2. L02Hash Join and work_memLocked
    3. L03Merge JoinLocked
  6. T06Transactions and MVCC

    1. L01Snapshots and row versionsLocked
    2. L02Long transactions and table bloatLocked
UiTrackSyllabus · with accessEvery Lesson is a link and carries its read mark
UiAccessRequestSigned out, can request, pending, granted, declined

Access needed

Sign in to request access

Access opens every Lesson of the Track. Payment, if any, is arranged with the author outside Startodel.

Sign in

Access needed

Ask the author for access

Access opens every Lesson of the Track. Payment, if any, is arranged with the author outside Startodel.

A few words about you help the author decide.

Request sent

Waiting for the author

You sent the request on Dec 3.

Access opens every Lesson of the Track. Payment, if any, is arranged with the author outside Startodel.

Access granted

The author opened the Track for you

Start learning

Request declined

The author declined the request

You can ask again later.

Access opens every Lesson of the Track. Payment, if any, is arranged with the author outside Startodel.

Access needed

Ask the author for access

Access opens every Lesson of the Track. Payment, if any, is arranged with the author outside Startodel.

A few words about you help the author decide.

UiAccessGrantsRequests first, then a grant by handle and the learners with access. Try a handle

PostgreSQL for backend engineersBy request

Access requests3

  • @anna-b

    Two years of backend work in Go. I want to read query plans instead of guessing at them.

  • @oleg-s

    Preparing for an interview and need a systematic walk through indexes.

  • @pavel-z

The handle from the learner's public link.

Learners with access5

Learners with access
Action
@mira
@dkim
@nastya-v
@lev
@tim-rNot active yet
UiAccessGrants · emptyNo requests, nobody let in yet, and a handle that does not exist

Access requests

No new requests

A request for access to the Track will appear here.

Learners with access

Learners with access
LearnerGranted onLast activeAction
No one has access yet.

07

Points and leaderboard

Points for learning activity and a ranking among public learners. Issue #37

UiPointsThe total, what this week added and what earned it. Compact goes in a header or a cell

Points

1,240180 this week

Lessons read
520
Quizzes passed
360
Grills
240
Reviews on time
120
1,240 points180 this week64 points1 point

Points

0No change this week

UiLeaderboardThe signed-in learner's row carries the trace of the current place. Switch the period

Leaderboard

Learners with a Public Profile

  1. Rank 1@miraNo change460 points
  2. Rank 2@dkimUp 2415 points
  3. Rank 3@nastya-vDown 1390 points
  4. Rank 4@levYouUp 1320 points
  5. Rank 5@tim-rDown 2285 points
  6. Rank 6@ilya-kNew240 points
  7. Rank 7@anna-bUp 3215 points
  8. Rank 8@oleg-sNo change190 points
  9. Rank 9@vera-mDown 1170 points
  10. Rank 10@pavel-zUp 1150 points
UiLeaderboard · statesA rank outside the list is pinned below it. Loading, empty, and a Public Profile that is off

Leaderboard

Learners with a Public Profile

  1. Rank 1@miraNo change460 points
  2. Rank 2@dkimUp 2415 points
  3. Rank 3@nastya-vDown 1390 points
  4. Rank 4@levUp 1320 points
  5. Rank 5@tim-rDown 2285 points
  6. Rank 27@sergey-pYouUp 464 points

Leaderboard

Learners with a Public Profile

Leaderboard

Learners with a Public Profile

Not enough public activity yet

The leaderboard appears once learners with a Public Profile earn points in this period.

Leaderboard

Learners with a Public Profile

  1. Rank 1@miraNo change460 points
  2. Rank 2@dkimUp 2415 points
  3. Rank 3@nastya-vDown 1390 points
  4. Rank 4@levUp 1320 points
  5. Rank 5@tim-rDown 2285 points
You are not on the leaderboard
It lists learners with a Public Profile. Turn yours on in Settings to join. Open Settings