Created
April 23, 2021 23:16
-
-
Save yosshi4486/6ef0d4a3471677ab7b7c0b3e4951c79f to your computer and use it in GitHub Desktop.
ファーストリリースに関しての自分の脳内モデル
This file contains 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
struct Feature { | |
var title: String | |
} | |
extension Feature: CustomStringConvertible { | |
var description: String { | |
return title | |
} | |
} | |
struct Product { | |
var features: [Feature] | |
mutating func increment(feature: Feature) { | |
self.features.append(feature) | |
} | |
} | |
// スプリント1ではまだリリースしているプロダクトがないのでnil | |
var product: Product? = nil | |
product?.increment(feature: Feature(title: "Great Feature")) | |
// リリースしていないものは無なので、無に何をインクリメントしてもnil | |
print(product?.features) // nil | |
// スプリントを開始する前に、可能な限り最短でMVPをリリースしておく。 | |
product = Product(features: [Feature(title: "Minimum Valuable Product")]) | |
// すでにリリースしているものにはインクリメントができる | |
product?.increment(feature: Feature(title: "Incremental Feature")) | |
print(product?.features) // ptional([Minimum Valuable Product, Incremental Feature]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment