Alvin Alexander | Java, Scala, Unix, Perl, Mac OS X

I’m thinking about making this my new business card. It’s kind of weird when people want to talk business with you, and you don’t even know if you’re going to be able to stay conscious all day.

This card is inspired by a woman I met when I was on the road earlier this year.

Have a good life

As a quick note about Scala Futures, if you want to run two or more Futures and merge them to get a result in a for comprehension, the correct approach is to (a) first create the futures, (b) merge their results in a for comprehension, then (c) extract the result using onComplete or a similar technique.

Bummer. This song is dedicated to someone who really let me down. This is Sorry Seems to Be the Hardest Word, by Elton John:

Besides having a bad memory, I haven’t been able to work with Scala much recently, so I’ve been putting together this list of for loop examples.

This page is currently a work in progress, and as of tonight I haven’t tested some of the examples, but ... if you’re looking for some Scala for loop examples — technically called a for comprehension — I hope these examples are helpful.

I just upgraded to iOS 10 yesterday. So far it seems to work a lot like Android, with “cards” for notifications, and you swipe right on the home screen to see Google Now, or whatever Apple calls that screen.

Note: This is a post from 2007 that I just updated a little bit because I think there’s still some value in it.

A lot of people have written to say that it’s unfair that I think developers should never say “I’m 75% done,” or “I’m 90% done.”

So, to explain myself, here’s why I think you should never use a phrase like that:

Marques Brownlee has this really nice comparison of Google Assistant and Siri:

Back on this day in 2013 I was staying in a hotel, put a coffee cup next to the tv, started pouring cream, and static electricity pulled the cream into the tv. Cool.

Coffee, cream, and static electricity

“Programming is similar to golf. The point is not getting the ball in the hole, but how many strokes it takes.”

~ Harlan Mills

The Chicago Cubs won the 2016 National League Pennant on October 22, 2016, and are headed to the World Series, where they’ll play the Cleveland Indians.

Chicago Cubs win the 2016 National League Pennant

This is a video of Tina Turner — yes, that Tina Turner — and a bunch of young people performing the “Peace Mantra.” Great to hear her voice again, great video.

(If you happen to know my mom, you’ll notice that there’s a young girl near the end of the video that looks like her.)

As a business analyst (or any person interested in writing software requirements and quality), there is one thing you should always ask yourself whenever you write a business requirement:

Is this software requirement testable?

I’ve seen some business analysts write some crazy things and call them requirements, but IMHO, if you can’t test it, it’s not a requirement.

“We do not see things as they are, we see things as we are.”

We don’t see things like a computer sensor sees them. We see everything through our own rose-colored glasses.

We do not see things as they are

“What you meet in another being is the projection of your own level of evolution.”

~ Ram Dass

I like the statement in this image because it says something I’ve always thought: Your design of the data types show that you understand the problem (or not). Every time I start writing code without understanding the problem, I waste a lot of time. (If you don’t understand the problem, exactly what code are you going to write?)

Data types show you understand the problem

A note October 22, 2010: “I’m listening to the Armed Forces Radio Network while getting some work done at the Talkeetna Roadhouse.”

Probably the most important lesson I learned from aimlessly wandering around for five years is that if you treat complete strangers as brothers and sisters that you’re meeting for the first time, the world magically becomes a better place.

“Now the Sun’s gone to hell
And the Moon riding high
Let me bid you farewell
Every man has to die.

But it’s written in the starlight
And every line in your palm
We’re fools to make war
On our brothers in arms.”

Today’s song of the day is Brothers in Arms, by Dire Straits: