zlacker

[return to "Patterns for Defensive Programming in Rust"]
1. jgerri+h13[view] [source] 2025-12-06 17:57:28
>>PaulHo+(OP)
This has already been hashed over a hundred thousand times, but there are also developer habits that we all need to defend against. One is pulling in needless crates.

Rust encourages that behavior. Sometimes rightly, but it does build a habit.

I spoke previously about how the Rust book uses the external rand create as a key example and it sets the tone for developers. I'm changing that stance somewhat since it was a decent strategic choice to have crypto packages plug-and-play. But tit still builds a habit.

◧◩
2. gs17+Y53[view] [source] 2025-12-06 18:36:11
>>jgerri+h13
> I spoke previously about how the Rust book uses the external rand create as a key example and it sets the tone for developers. I'm changing that stance somewhat since it was a decent strategic choice to have crypto packages plug-and-play. But tit still builds a habit.

Yeah, that originally turned me off from the language entirely. I also changed my mind eventually.

[go to top]