News for hackers. Stuff that matters.
Re:Donald Knuth was framed by jackweirdy on Monday February 24, 2020 @05:33PM (#22409149)
This comment reminds me of something of a thought-experiment-come-hacky-side-project that I can’t seem to find.

The premise was, what if you could never edit a function? Instead, you had to delete it and recreate it entirely whenever changes were needed.

The incentives are twofold - keep functions small, so you don’t lose too much investment if you have to delete code, and think before you start writing, else you waste time.

As I remember, this project came with an AST manipulator that would helpfully delete your function if it’s unit tests failed.

Re:Donald Knuth was framed by fasquoika on Monday February 24, 2020 @05:46PM (#22409267)
Re:Donald Knuth was framed by jackweirdy on Thursday February 27, 2020 @07:19AM (#22432594)
Yes! This is it
Re:Donald Knuth was framed by geofft on Monday February 24, 2020 @07:12PM (#22409754)
You know, thanks to Hyrum's Law https://www.hyrumslaw.com/ , there's a variant of this in many engineering contexts: you can never remove functionality directly, you can only add new functionality, deprecate (but maintain) the old ones, and kill it once everyone has moved.

Put that way, it's surprising that people haven't felt incentivized to ship the smallest and most replaceable things.

Re:Donald Knuth was framed by squiggleblaz on Tuesday February 25, 2020 @10:03AM (#22413703)
They have and they called in npm.
Re:Donald Knuth was framed by danhite on Monday February 24, 2020 @08:51PM (#22410307)
The project you remembered but couldn't locate is likely Prune within Limbo in the TCR (test && commit || revert) experimental development style by Kent Beck et al which you can review here: https://increment.com/testing/testing-the-boundaries-of-coll...