It won't help so much for your on-chain program skill but help your Rust skill.
Most code are from https://solanacookbook.com/
cargo run --bin <filename>
ex : cargo run --bin airdrop
You can add more bin at Cargo.toml
Visit https://crates.io/ and search it and copy and paste it.
More text guide soon.