Tutorials
15 posts

Rust Smart Contracts #6: Storage Patterns in ink! You Can Actually Maintain
Stop dumping everything into one big storage struct. Learn the core storage patterns in ink!—single values, mappings, many-to-many relations, and lazy configs—so your contracts stay readable, cheap to run, and easy to extend.
ink! Smart Contract Access Control: from only_owner to Role Permissions #5
Use a kitchen‑door analogy to explain env().caller(), only_owner checks, Result‑based errors, and role mappings in ink!, with minimal runnable examples so beginners can copy, run, and ship safer contracts.

Test ink! Contracts the Practical Way: Unit tests and a tiny e2e for beginners #4
Minimal runnable examples to test Rust + ink!: from #[ink::test] off-chain unit tests to a small e2e. Includes setup, full code, typical pitfalls, and fixes.

Stop Panicking on Failure: Production‑Ready ink! Events & Error Handling
Beginner‑friendly, production‑oriented ink! walkthrough: emit events for observability, return typed errors instead of panics, and ship with a minimal runnable example plus test assertions.

Rust Macros 2.0 Starter Guide: Build Code Like Lego
A panoramic Rust Macros 2.0 guide: unify macro namespaces, master the TokenStream pipeline and macro hygiene, and migrate from macro 1.0 to macro 2.0 metaprogramming with practical examples.
Skill Seeker: Turn Docs Into Claude-Ready Skill Packs (Hands-on Guide)
Stop slogging through docs: convert any framework site into a Claude skill pack in minutes. Practical workflow covering CrewAI, AutoGen, LangGraph and more.
OpenSpec Installation and Project Initialization Guide
How to install and run OpenSpec for this repository and your team: npx (no install), global install, binary/internal distribution, and quick validation steps.

Master OpenSpec in the AI Era: A Practical Guide to SDD (Spec‑Driven Development)
A hands-on, SEO-friendly primer on Spec‑Driven Development with OpenSpec: change proposals, specs, tasks, validation, and release — plus a 10‑minute quickstart and best practices.

I Slimmed a Docker Image from 2GB to 50MB: A Hands-on Postmortem
The real steps and trade-offs I took to cut a Docker image from 2GB down to 50MB — pitfalls, decisions, and practical takeaways without the fluff.
Rust + Axum Async Microservice Guide: Job Queue, Retries, and Graceful Shutdown
Build a production-ready async microservice with Rust and Axum: job queue, background workers, exponential backoff retries, and graceful shutdown. Includes full project structure and Docker example.