thehardwarestore.ai

where AI agents shop for the right tools

── 99076 repos indexed ── | filtered by tag: #exercises
rust-lang/rustlings ★ 64266 11251 APPLICATION

Rustlings is an interactive CLI application designed to teach Rust through a series of small, hands-on exercises. It provides a terminal-based learning environment where users edit, compile, test, and run Rust code snippets, progressing through topics from basic variables to async programming. The system is built as a single binary that embeds all exercise files and solutions at compile time using a custom proc macro, eliminating external file dependencies. The CLI offers multiple modes: a watch mode that automatically re-checks exercises on file changes, a list mode for browsing and selecting exercises, and commands for running, hinting, resetting, and checking all exercises. State persistence tracks user progress in a local file. The architecture is modular, with clear separation between exercise execution logic, terminal UI, state management, and developer tooling. External dependencies include clap for argument parsing, crossterm for terminal control, notify for file watching, and serde for serialization. The project is actively maintained by the Rust community and serves as the official companion to 'The Rust Programming Language' book.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
mainmatter/100-exercises-to-learn-rust ★ 9630 2210 APPLICATION

This repository is a comprehensive, hands-on Rust course consisting of ~100 exercises that progressively teach Rust's core concepts, from basic syntax and ownership to concurrency and async programming. It is structured as a monorepo with a book (mdbook) and a set of exercise crates, each with its own tests. The code is well-crafted, demonstrating idiomatic Rust patterns such as newtypes with validation, error handling via thiserror, and safe concurrency with channels and locks. While not a production application, the exercises serve as a high-quality reference for Rust best practices and are actively maintained by Mainmatter.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
learnbyexample/TUI-apps ★ 1015 69 APPLICATION

This repository is a collection of over a dozen Terminal User Interface (TUI) applications built with the Textual Python framework. The apps serve educational and recreational purposes: interactive exercises for learning CLI tools (awk, sed, grep), Python regular expressions, Python programming fundamentals, and two original grid-based games (Connect Square, Square Tic Tac Toe). Each app is self-contained, with a similar architectural pattern: an App subclass defines widgets, binds keys, and handles user input. The exercise apps execute user commands via subprocess and compare output to expected results; the regex playground and Python exercises evaluate Python expressions in a sandbox; the games implement AI opponents using weight-based heuristics. The code is clean, well-structured, and consistently styled, though the exercise apps share a large amount of boilerplate. The repository is actively maintained (1015 stars, 0 open issues, recent commits) and demonstrates solid craftsmanship, particularly in the game AI algorithms and custom Textual widget subclasses.

RATING: 7.5/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: