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 Tendências
- 1. Good Saturday 22.4K posts
- 2. #ZNNCrazyInLoveConcert 469K posts
- 3. #NIKKE3rdAnniversary 35.6K posts
- 4. #SaturdayVibes 3,636 posts
- 5. #Caturday 3,055 posts
- 6. #TaehyungxVogueWorld 34.9K posts
- 7. Your Pete 3,319 posts
- 8. Patrick Star 3,100 posts
- 9. Luka 110K posts
- 10. MEET DAY 9,082 posts
- 11. Brighton 35.5K posts
- 12. IT'S GAMEDAY 2,147 posts
- 13. Talus 16.4K posts
- 14. Mount 21.9K posts
- 15. Geraldo 8,291 posts
- 16. Malaysia 46.9K posts
- 17. Riders 15.2K posts
- 18. Tish 27.2K posts
- 19. Scarlett 12K posts
- 20. Tamar 5,686 posts
Something went wrong.
Something went wrong.