This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Value objects are an important concept in DDD. This kata is made both to learn value objects and to learn better ways of testing. | |
Write a probability value object. It should contain the following methods: | |
Probability CombinedWith(Probability) | |
Probability InverseOf() | |
Probability Either(Probability) | |
if you forget your probability math: | |
Either:P(A) + P(B) - P(A)P(B) | |
CombinedWith: P(A)P(B) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* UrlImageCache.java | |
* | |
* Copyright 2010, BuddyTV. All Rights Reserved | |
* Created 12/13/2010 Mike Markley | |
*/ | |
package com.buddytv.android.utilities; | |
import android.graphics.drawable.Drawable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
autoCRLF = false | |
editor = c:/bin/git/npp.cmd | |
[diff] | |
tool = kd3 | |
[merge] | |
tool = kd3 | |
[difftool "kd3"] | |
cmd = c:/bin/git/kdiff3.cmd \"$LOCAL\" \"$REMOTE\" | |
[difftool] |
NewerOlder