News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance – Casey Muratori [video] by sethammons on Wednesday March 01, 2023 @05:39AM (#34980826)
You seem to ignore that when the unit changes, the tests do too. If you come back a year later, foo.bar.baz(quux) might have been refactored and lazily so. The tests were also updated and still pass. You may jump into the code only to realize that someone no-op'd everything and never removed call sites. TDD is primarily a design tool, not a lock-into-implementation tool.
Re:“Clean” Code, Horrible Performance – Casey Muratori [video] by hinkley on Wednesday March 01, 2023 @11:02AM (#34983800)
Someone has put some notion of function identity in his head and I don’t know what school taught that notion but it needs to burn.

IBM’s Visual Age tried to behave that way and it didn’t end well. Eclipse dropped that conceit when it forked.

Re:“Clean” Code, Horrible Performance – Casey Muratori [video] by randomdata on Thursday March 02, 2023 @02:08PM (#35000274)
> Someone has put some notion of function identity in his head

The only comment that talks about function identity is this one[1], and it is written by you. "His head" refers to your own?

I used the word identity earlier in that thread, but I definitely wasn't referring to functions. The word "function" isn't even found in the comment.

[1] https://news.ycombinator.com/item?id=34983709