Hacker News new | ask | show | jobs
by sethammons 1206 days ago
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.
1 comments

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.

> 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