3. Architecture is about the :
“overlaps of dimensions”
which each dimension handle each constraints
constraint
constraint
constraint
constraint
constraint
4. Architecture is about the :
“overlaps of dimensions”
which each dimension handle each constraints
constraint
constraint
constraint
constraint
constraint
so the dimension layer out the problems context
12. Small one
fun isVowel(character: Char) {
val vowels = {A, E, I , O, U}
vowels.contains(character.toUpperCase)
}
fun countVowel(word: String) {
word
.foreach(char => isVowel(char))
.count
}
13. Big one
fun countVowel(word: String) {
val vowels = {A, E, I , O, U}
word
.foreach(char =>
vowels.contains(char.toUpperCase))
.count
}
14. Small one
fun isVowel(character: Char) {
val vowels = {A, E, I , O, U}
vowels.contains(character.toUpperCase)
}
fun countVowel(word: String) {
word
.foreach(char => isVowel(char))
.count
}
fun filterVowel(word: String) {
word
.filter(char => isVowel(char))
}
Small one
Small can bring reusability
15. Big one
fun countVowel(word: String) {
val vowels = {A, E, I , O, U}
word
.foreach(char =>
vowels.contains(char.toUpperCase))
.count
}
Big can get the job done faster