If you're at all interested in Zen, the tv series Life is very good. This scene has little to do with Zen, other than perhaps a little lovingkindness, but it is funny.
Scala, Java, Unix, MacOS tutorials (page 315)
“Open your arms to change, but never let go your Loving Kindness.” ~ Dalai Lama
From https://www.facebook.com/DalaiLamaLouisville?hc_location=stream
If you live in Alaska, when do you have to remove studded snow tires? Information from alaska.gov.
A Null Object is an object that extends a base type with a null or neutral behavior. Here’s the Scala version of the Java example Wikipedia uses to demonstrate this:
trait Animal {
def makeSound()
}
class Dog extends Animal {
def makeSound() { println("woof") }
}
class NullAnimal extends Animal {
def makeSound() {}
}
As you can imagine, later in your application you might have some code like this:
“Did he ever play well with others?” (From Law & Order, Criminal Intent)
Some times to understand good design, you have to see examples of what not to do. I have no idea what ESPN is thinking with this dark background and small font when their content is displayed on an iPad.
I just saw this code that shows how to declare an empty immutable SortedSet in Scala, and wanted to save it as a helpful snippet here:
/** * The node ring gossipped that contains only members that are Up. */ var nodes: immutable.SortedSet[Address] = immutable.SortedSet.empty
Today is “Thunder Over Louisville”: Airplanes in the sky all day, a huge fireworks show at night. Two weeks until the Kentucky Derby. http://thunderoverlouisville.org
Today I’m sharing some examples of the Scala Option/Some/None syntax. These examples will show how to use an Option for the var fields in a Scala class. Then I’ll show how to set those Option fields, and then get the values from the Option fields.
To get started, we’ll need a little case class to represent an Address:
From time to time I visit Veerle Pieters' Duoh! website for some design inspiration. Fonts, colors, art, web design, it's all good. This image is from http://veerle.duoh.com/belgiangraphicdesign/