I have replaced two lines of dodgy, problematic code with two different lines of code that my tests all say is correct, but I have this nagging feeling that I’m missing something. I’m sure I’ll stub my toe on it later.
Conversation
Notices
-
Embed this notice
Doug Gregor (dgregor79@sfba.social)'s status on Thursday, 28-Dec-2023 01:12:28 JST Doug Gregor
-
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Thursday, 28-Dec-2023 01:12:26 JST Paul Cantrell
@dgregor79
And of course you just know that there’s some deep insight about hidden assumptions or the nature of your problem or human frailty or whatever lurking there, but you are cursed not to see it until it’s Too Late. -
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Thursday, 28-Dec-2023 02:22:32 JST Paul Cantrell
@dgregor79 Yup. Hopefully a good problem comes along soon to shine a light on that Other Variable.
I’m in a similar place today trying to promote something from hard-coded to configurable, and there are half a dozen obvious ways to do it, but I have a nagging feeling that none customize along the axis that actually suits usage. They’re introducing useless flexibility while leaving walls around the variable clients will want to adjust.
-
Embed this notice
Doug Gregor (dgregor79@sfba.social)'s status on Thursday, 28-Dec-2023 02:22:34 JST Doug Gregor
@inthehands my suspicion is that there is some Other Variable that should be controlling my conditional, and that my conditional is using a symptom of it… but I don’t know what that other variable is. Some day, I will find it
-
Embed this notice