codebits67's profile picture. 🦀 Rust Tips + How to write great software

Code Bits

@codebits67

🦀 Rust Tips + How to write great software

Use of bools is usually a code smell. Use enums with two variants for better readability


Everything in your code should be as explicit as possible. Everything that happens should be under developers’ knowledge, anything happening outside will lead to bugs


Default values are silent bugs. If the runtime guesses for me, it guesses wrong. Be explicit: config, timeouts, nullability, perms. Ship intent, not surprises


Money is cheap, Pride is expensive Being proud of what you do is prerequisite for writing great software


When things break, you realize why they break. When you realize why they break, you write things that don’t break


Great Software follows these two principles: 1. Makes it as easy as possible to add features 2. Makes it as hard as possible to add bugs


此帳戶尚無追隨者

United States 趨勢

Loading...

Something went wrong.


Something went wrong.