silkandspinach.net
Connascence of Value: a different approach | silk and spinach
https://silkandspinach.net/2015/02/25/connascence-of-value-a-different-approach
Reflective software development, as a service. Connascence of Value: a different approach. February 25, 2015. Recently I wrote a series of posts. You will recall that in making the first test pass I introduced some CoV (Connascence of Value), because the test and the Checkout class both know the magic number 50:. Public class CheckoutTests { @Test public void basicPrices() { Checkout checkout = new Checkout(); checkout.scan(A); assertEquals(Checkout.ITEM PRICE, checkout.currentBalance() ; } }. That was a...
silkandspinach.net
event-sourcing | silk and spinach
https://silkandspinach.net/tag/event-sourcing
Reflective software development, as a service. June 27, 2015. Continue reading →. Posted in Software development. View Full Profile →. If you need XP coaching, software craftsmanship training, or someone to pair with on that tricky problem, check out the XP Surgery. Create a free website or blog at WordPress.com. Create a free website or blog at WordPress.com. Follow “silk and spinach”. Get every new post delivered to your Inbox. Join 1,893 other followers. Build a website with WordPress.com.
silkandspinach.net
Connascence of Position | silk and spinach
https://silkandspinach.net/2015/02/09/connascence-of-position
Reflective software development, as a service. February 9, 2015. This is part three of a series in which I am test-driving a classic code kata, and using only the rules of connascence to tell me what to refactor. Last time. I continued working on the checkout kata. Here’s the code so far:. Public class Checkout { private Money balance = Money.ZERO; public Checkout scan(String sku, Money price) { balance = balance.add(price); return this; } public Money currentBalance() { return balance; } }. Test public ...
silkandspinach.net
the saff squeeze | silk and spinach
https://silkandspinach.net/2008/11/27/the-saff-squeeze
Reflective software development, as a service. November 27, 2008. In Hit ’em High, Hit ’em Low: Regression Testing and the Saff Squeeze. Kent Beck outlines a very nice technique for isolating a defect using regression tests:. 8220;To effectively isolate a defect, start with a system-level test and progressively inline and prune until you have the smallest possible test that demonstrates the defect.”. Click to share on Google (Opens in new window). Click to email (Opens in new window). You are commenting ...
silkandspinach.net
Connascence of Meaning | silk and spinach
https://silkandspinach.net/2015/01/25/connascence-of-meaning
Reflective software development, as a service. January 25, 2015. This is part 2 of a short series of posts in which I explore TDD using only connascence as my guide. In the previous article. Here is the test I finished with last time:. Public class CheckoutTests { @Test public void basicPrices() { int price = randomPrice(); Checkout checkout = new Checkout(); checkout.scan(A, price); assertEquals(price, checkout.currentBalance() ; } }. Both classes know that we are representing monetary values using ints...
silkandspinach.net
Why I don’t use spork | silk and spinach
https://silkandspinach.net/2011/08/08/why-i-dont-use-spork
Reflective software development, as a service. Why I don’t use spork. August 8, 2011. Is great. And so is guard. But now I’ve turned spork off, and here’s why: Spork solves the wrong problem. We enabled guard/spork because our specs were slow, and during the few months we had spork, those specs became even slower. But we never noticed. But our design was getting worse every day. Click to share on Google (Opens in new window). Click to email (Opens in new window). Share on Facebook (Opens in new window).
silkandspinach.net
Connascence of Algorithm | silk and spinach
https://silkandspinach.net/2015/02/10/connascence-of-algorithm
Reflective software development, as a service. February 10, 2015. This is the fourth post in a series. In which I am test-driving a classic code kata, and using only the rules of connascence to tell me what to refactor. If you have been following along, you’ll recall that my most recent refactor. Was to create a new domain object for MultiBuyDiscount, thereby alleviating a nasty case of Connascence of Position. The tests pass, so let’s review what connascence remains in this code:. Test public void conna...
silkandspinach.net
refactoring | silk and spinach
https://silkandspinach.net/tag/refactoring
Reflective software development, as a service. Connascence of Value: a different approach. February 25, 2015. Recently I wrote a series of posts. Continue reading →. Posted in Software development. February 12, 2015. Am I over-thinking things with this Checkout TDD example. Or is there a real problem here? Based on insightful input from Pawel. However, as things stand there is no requirement demanding that. Does that still mean the connascence exists? Continue reading →. Posted in Software development.
silkandspinach.net
Where is the constraint in software development? | silk and spinach
https://silkandspinach.net/2015/03/26/where-is-the-constraint-in-software-development
Reflective software development, as a service. Where is the constraint in software development? March 26, 2015. I just had a thought about the relationship between software development and the Theory of Constraints. It probably isn’t a new thought, although it seems to differ from some of the analyses I’ve seen elsewhere. Also, I probably won’t be able to express it in any coherent way; but here goes…. So how can we ensure that we only work on features that represent real value? One reason is that withou...
SOCIAL ENGAGEMENT