Showing posts with label mocks. Show all posts
Showing posts with label mocks. Show all posts

Thursday, August 20, 2015

Is dolting not an option?

Snarky: Am I mocking, faking, spying, or stubbing?

* Or dafting? Absurding? Maybe idioting?
*  Just pick one, dummy.

I always worried it was just me when I thought sometimes people used some of these interchangeably.  Per the first link below, everyone seems to agree on mock, but after that the agreement on terminology breaks down.  I was on a panel at a kids' innovation camp last week, and one of the project managers talked about how her job was to get everyone to agree, or at least accept, a definition. I told them about the security meeting we'd had to discuss the meaning of "done" and urged them to discuss the meaning of that word with the adults in their lives when it came to chores to get some first hand experience with a disagreement about a basic definition.



Snarky: Am I mocking, faking, spying, or stubbing?
Title: Is dolting not an option?

Friday, August 10, 2012

It's acceptable to start mocking him, then?

I think our manager's implementation is entirely decoupled from his execution.

Obviously we joke, applying development to social interaction.  But there's a whole article out there about "Decoupling Reconsidered:  Accounting for the Implementation Gap in Human Rights Treaty Regimes" by Wade M. Cole.  That's not nearly as funny.

From Wikipedia, Decoupling - you really need to go to Coupling to get all the details.  Don't worry, I didn't Rickroll you over to the failed US television series...
In software development, the term “decoupling” is used to identify the separation of software blocks that shouldn't depend on each other. Some building blocks are generic and shouldn't know details of others. Special design techniques allow software designers to have as few dependencies as possible. This typically reduces the risk of malfunction in one part of a system when the other part changed. It also forces the developer to focus on one thing at a time.
Title: It's acceptable to start mocking him, then?
Snarky: I think our manager's implementation is entirely decoupled from his execution.

Monday, July 30, 2012

I'm a mock object...

Two in a Cube: Your code is soooo ugly...it implements a mask whenever it has a public method.
Title: I'm a mock object...
Snarky: Your code is soooo ugly...it implements a mask whenever it has a public method.

A rare case where you don't need to be a geek to actually get the punchline. Since we're on the topic of mocks, I thought I'd share an essay from Martin Fowler that has a really great breakdown of using mocks and stubs in testing.  Good stuff.

Monday, June 11, 2012

I'm not sure that's the proper use of a mocking framework

There's no code.  Just unit tests.  So they always pass.

There's a good article at jhovgaard.net called "How I stopped writing awesome code".  At one point he differentiates unit tests versus the UI tests he runs with the statement, "my tests tells me what will make my boss sad, and your test tells you what code that breaks."  It's a compelling argument, although enough UI/integration tests smell a lot like unit tests as long as you're covering all the functionality.  Using Selenium for Firefox is a wise recommendation, particularly with smaller projects where he's right, what the customer sees in the UI is of overriding importance.

Title: I'm not sure that's the proper use of a mocking framework.
Snarky: There's no code.  Just unit tests.  So they always pass.