228 karma · joined May 13, 2013 (13y ago) · 240 submissions
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
Basically, I pass my days in my idle ways, and I don't think it matters what the medium. I can say that I don't pass my days on social media, its tedious.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Its obviously semantics, and I'm not advocating sloppy programming / architecture, but the term is both inaccurate and leads people to blinkered thinking.
comment 10y ago · link · parent
comment 10y ago · link · parent
My understanding of mocking by example is: you have a class you want to test, and that class has a dependency on lets say a Mail class that has a SendMail() method. You mock the Mail class and assert that SendMail() was called as per your specification.
Given that definition of mocking, I personally don't like mocking. I prefer to test state not behavior, although I can see in some scenarios behavior is more important.