Skip to content

Instantly share code, notes, and snippets.

@pahosler
Created February 21, 2023 18:35
Show Gist options
  • Save pahosler/b7b69d54851392db1e64ea57052fbd34 to your computer and use it in GitHub Desktop.
Save pahosler/b7b69d54851392db1e64ea57052fbd34 to your computer and use it in GitHub Desktop.
12 Bad Days of Rust Code
On the first day of Rust, my codebase gave to me,
A learning curve that's much too steep.
On the second day of Rust, my codebase gave to me,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the third day of Rust, my codebase gave to me,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the fourth day of Rust, my codebase gave to me,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the fifth day of Rust, my codebase gave to me,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the sixth day of Rust, my codebase gave to me,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the seventh day of Rust, my codebase gave to me,
Seven traits to implement,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the eighth day of Rust, my codebase gave to me,
Eight unsafe blocks,
Seven traits to implement,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the ninth day of Rust, my codebase gave to me,
Nine Rustaceans arguing,
Eight unsafe blocks,
Seven traits to implement,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the tenth day of Rust, my codebase gave to me,
Ten seconds of compile time,
Nine Rustaceans arguing,
Eight unsafe blocks,
Seven traits to implement,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the eleventh day of Rust, my codebase gave to me,
Eleven functions rustc can't optimize,
Ten seconds of compile time,
Nine Rustaceans arguing,
Eight unsafe blocks,
Seven traits to implement,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
On the twelfth day of Rust, my codebase gave to me,
Twelve reasons to stick to JavaScript,
Eleven functions rustc can't optimize,
Ten seconds of compile time,
Nine Rustaceans arguing,
Eight unsafe blocks,
Seven traits to implement,
Six crates a-breaking,
Five macros missing,
Four error types,
Three borrow checkers,
Two lifetimes to worry,
And a learning curve that's much too steep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment