Never count on making a good sale (Warren Buffett)

“Never count on making a good sale. Have the purchase price be so attractive that even a mediocre sale gives good results.”

~ Warren Buffett

A Scala Null Object example

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?

“Did he ever play well with others?” (From Law & Order, Criminal Intent)

Is Scala DICEE?

If you’ve never heard of the term DICEE, it was coined by Guy Kawasaki. Mr. Kawasaki was a developer evangelist for the original Macintosh team in the 1980s, and used the term in at least one subsequent book to refer to great products.

“DICEE” is an acronym that stands for Deep, Indulgent, Complete, Elegant, and Emotive:

ESPN's poor tablet design

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.

Scala - How to declare an empty immutable Set (SortedSet)

Category: 

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
Tags: 
Tags: 
Tags: 
Tags: 
Tags: 
Tags: 

Thunder Over Louisville

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

Warren Buffett quote - Be fearful when others are greedy, and be greedy when others are fearful

A Warren Buffett quote to remember: “Be fearful when others are greedy, and be greedy when others are fearful.”

(More Warren Buffett quotes)

Here's To The Crazy Ones (text of the famous Apple ad)

Here’s to the crazy ones.
The misfits.
The rebels.
The troublemakers.
The round pegs in the square holes.
The ones who see things differently.
They’re not fond of rules,
and they have no respect for the status quo.
You can quote them,
disagree with them,
glorify or vilify them.
About the only thing you can’t do is ignore them.
Because they change things.
They push the human race forward.
And while some may see them as the crazy ones,
we see genius.

Norman Door sighting: Roundabout at local shopping center

Norman Door sighting: There's a little roundabout at a local shopping center, where the developers apparently thought it would be cute to make the street the color of a sidewalk, and the sidewalk the color of a street. When people first drive on the roundabout they usually drive on the sidewalk.

Here's an earlier post about Norman Doors.

Syndicate content