Better HN
topnewbestaskshowjobs
Log inSign up

orend

36 karma · joined Aug 24, 2012 (14y ago) · 8 submissions

http://re-factor.com
Submissions

comment 7y ago · link · parent

A short, sweet, free book about it

https://www.mercatus.org/system/files/helland-tabarrok_why-a...

2.

Kickstart your next project with a Walking Skeleton(blog.codeclimate.com ↗)

3 points · by orend · 12y ago · discuss

comment 13y ago · link · parent

The point here is not that the tests execution time should dictate the design. On the contrary, the idea of this post was to stress the importance of good design, and that fast tests are just a side effect of it. Now, you might disagree with me on what constitutes good design but that's a different issue.

comment 13y ago · link · parent

The _unit_ test for the service object might be anemic, but it's far from useless IMO. The unit test helps you design the object under test and it is written first if you are practicing TDD.

The argument for having fewer integration tests goes like this: if it's hard to write isolated unit tests for some classes you end up testing many more execution paths in integrations tests.

comment 13y ago · link · parent

As I mention in the post, I'd also be perfectly happy with the original if the rest of the application was small and simple. It's hard to come up with an example that's both meaningful and not too long for a blog post.

As for the testing issue, we have a controller-like object there, and a controller’s job is to coordinate sending messages between collaborators so I don't think a unit test for this object should test anything than these interactions. This also might be a consequence of using a simple example.

comment 13y ago · link · parent

sorry about that. Can't seem to edit this now thuogh.

7.

Slow Tests Are the Symptom, Not the Cause(re-factor.com ↗)

36 points · by orend · 13y ago · 44 comments

comment 14y ago · link · parent

sounds like they could use redis for the in-memory data structures.