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 Xu hướng
- 1. Austin Reaves 42.6K posts
- 2. Steelers 84.5K posts
- 3. Packers 66.2K posts
- 4. Tomlin 12.3K posts
- 5. Tucker Kraft 15.4K posts
- 6. Jordan Love 16.6K posts
- 7. #GoPackGo 10.7K posts
- 8. Derry 19.5K posts
- 9. #LakeShow 3,717 posts
- 10. #BaddiesAfricaReunion 9,232 posts
- 11. Pretty P 3,937 posts
- 12. Zayne 20K posts
- 13. #LaGranjaVIP 70K posts
- 14. Dolly 12.6K posts
- 15. Teryl Austin 2,160 posts
- 16. Aaron Rodgers 19.8K posts
- 17. #breachlan2 2,638 posts
- 18. Sabonis 2,463 posts
- 19. Karola 4,223 posts
- 20. yixing 8,551 posts
Something went wrong.
Something went wrong.