Pull just the lines you need out of an access log
Split on whitespace and take a field by number, and a small change in the shape of a line breaks it. You take fields by their shape instead, and count the lines you could not read.
A course is for reading in order and taking in; a project is for building one thing all the way through. Rather than handing you the requirements and walking off, each one carries the steps, a worked answer and the places people get stuck.
15 in total · Beginner → intermediate → advanced
Split on whitespace and take a field by number, and a small change in the shape of a line breaks it. You take fields by their shape instead, and count the lines you could not read.
A CSV from Excel comes out garbled, refuses to load, or won't let you look up a column by name. You rebuild each case as bytes — Shift_JIS versus cp932, the UTF-8 BOM, line breaks inside cells, characters like 髙 and ① — then write read and write functions and a round-trip test.
Writing types protects you at compile time, but a type annotation cannot protect a value that came from outside. You build a type guard that narrows from unknown, rejecting the rows that do not fit while counting them.
A price with tax comes out one yen too high; a split bill doesn't add up to the bill. You check float error, round()'s round-half-to-even, rounding rules and leftover yen one at a time with real numbers, then write a largest-remainder function whose shares always add up, and pin it down with tests.
State held as isLoading, isError and data can be built 8 ways, and only 4 of them mean anything. You reproduce how you drift into an impossible state, shut it out with a discriminated union and never, gather every change into a reducer, and pin it down with a transition-table test.
Releasing blocked tasks does not compile: E0502. Rather than reaching for clone() or Rc, you separate reading from writing. You also find out what Rc<RefCell<T>> actually moves to runtime.
Why can Rust not even express code that another language would happily run with numbers that do not add up? You read what Send is saying, get it compiling, and measure three ways of writing it.
You write split_at_mut yourself. You find out why safe Rust cannot express it, cut the unsafe down to six lines, and leave behind a written account of why it is sound.
Writing async does not help if there is no await to yield at. You watch a heartbeat skip, then fix the difference between gather and TaskGroup and the way cancellation is handled.
You print the peak with tracemalloc and cut it in two directions: making one item smaller (__slots__) and holding fewer at once (generators). The second one is what pays.
Are your rules only enforced inside __init__? Then nothing stops anyone afterward. You check on every assignment with a descriptor, and work out derived values rather than holding them.
With Box<dyn Error> all you learn is that it failed. You write the possible failures out as an enum, so that adding one makes the compiler stop every caller. Up to where thiserror ends and anyhow begins.
You look up a key you know you put in, and get null back. There are four causes, and all of them compile. You measure how entries become unreachable, sort out what a record fixes and what it doesn't, and finish by making the keys immutable.
A goroutine you start with go doesn't end until someone stops it. You count 100 of them lingering after a timeout gives up, find the line where they're stuck, stop them with channels and context, and pin down "no leaks" with a test.
Pass a long name to the function that builds display names, and the is_admin field next to it gets overwritten. You pin down which byte spilled over with ASan, see why strncpy does not fix it, rebuild the API so it takes the buffer size, and lock the edges down with tests.