Re:Rust 1.53
by Pet_Ant on Thursday June 17, 2021 @01:08PM
(#27541903)
But then others won't feel dirty when they use the method. The goal is to make people feel bad when they add more usages of it and make it harder to remove. This is the case when it's easier and faster than the proper way. When there is crunch time it's hard to push your lead to reject the PR so it's soft pressure and it's apparent at the call site whereas a TODO in the method definition is not.
[ Parent
| on HN ]
There is a famous story of a codebase that used `sleep` calls for this purpose. Start by sleeping 1 ms every time that the undesired function is called. Next release, up it to 10 ms, then 100 ms, and so on.
Re:Rust 1.53
by airhead969 on Tuesday June 22, 2021 @02:11PM
(#27595071)
But that's method shaming! /s
I guess you have a point. It's clearly a "let's meet in the back alley" API.