Y
Hacker News
new
|
ask
|
show
|
jobs
by
nerdponx
2098 days ago
That's why they said "often".
A better definition might be "the smallest amount of testable
functionality
".
1 comments
exdsq
2098 days ago
Which is a function.
link
JoeNr76
2098 days ago
It might start out as a function, then become a factory, then an object and if you bind your test to the implementation details of this code, you will have to rewrite your test every time you refactor your code. Not ideal.
link