Slide 51
Slide 51 text
Separate representation/behavior
// This can be expressed more fluently/builder-y
keyspace.put()
.withRow(1234)
.withColumn(“name”)
.withValue(“dave”)
.withTtl(90)
.execute()
// Consider a typical method call
putColumn(keyspace, 1234, “name”, “dave”, 90);
● No representation of the operation
● Closer, but without a lot of work still isn’t
manipulable, introspectable, reusable etc