Clean Code for Modern Systems

Deep dives into Rust and Solidity. Because elegant code isn't just readable—it's safe, efficient, and built to last.

Latest Masterclasses

Preventing Sensitive Data Exposure in Rust: Designing Safer Error Messages and Debug Output

Preventing Sensitive Data Exposure in Rust: Designing Safer Error Messages and Debug Output

Solidity Events and Indexed Topics: Designing Queryable, Low-Cost On-Chain Logs

Solidity Events and Indexed Topics: Designing Queryable, Low-Cost On-Chain Logs

Testing Solidity Contract Upgrades with Storage Layout Diff Checks

Testing Solidity Contract Upgrades with Storage Layout Diff Checks

Building a Zero-Copy CSV Parser in Rust with `csv` and Serde

Building a Zero-Copy CSV Parser in Rust with `csv` and Serde

Preventing Path Injection in Rust: Safely Building File Paths from User Input

Preventing Path Injection in Rust: Safely Building File Paths from User Input

Preventing ERC-4626 Share Inflation Attacks in Solidity

Preventing ERC-4626 Share Inflation Attacks in Solidity

Rust Borrow Splitting: Safely Mutating Disjoint Parts of a Data Structure

Rust Borrow Splitting: Safely Mutating Disjoint Parts of a Data Structure

Optimizing Rust with Batch Processing and Chunked Workflows

Optimizing Rust with Batch Processing and Chunked Workflows

Building a Safe ERC-4626 Vault Adapter Library in Solidity

Building a Safe ERC-4626 Vault Adapter Library in Solidity

Testing Solidity Contract Interactions with Mock Contracts

Testing Solidity Contract Interactions with Mock Contracts