Posts in the “scala” category

A Scala XML XPath example

I'm not going to take any time to describe the following Scala XML/XPath example, other than to say that when it's run, it produces the following output, which is a simulated receipt for an order at a pizza store:

New book?

I don’t know if it will ever see the light of day, but I’ll be back to working on a potential new book this week.

A Scala Cookbook review

As I wrote in the Preface to the Scala Cookbook, I had a certain target market in mind when I wrote the book, in particular Java developers who were interested in checking out Scala, and rapidly becoming productive in it. I’ll take this review from a well-known Scala developer as a sign that I’m in the ballpark of what I wanted to achieve.

Scala Cookbook is on O'Reilly's bestselling list

I’m proud to say that the Scala Cookbook is on O’Reilly’s bestselling list. While I hope that some of this is due to my work to “simplify, simplify, simplify,” I also know that it’s a reflection of (a) Scala being an awesome programming language, and (b) having some good reviewers kick me in the butt when I needed it. My “dream goal” when writing the Cookbook was that it would help make Scala more accessible to Java developers, so this gives me some hope that it can succeed in that mission.

30 Scala job openings at Apple

I thought Apple might push their developers internally to develop with their new Swift programming language, but I just did a search that shows they now have 30 Scala job openings. In December, 2013 Apple had six Scala job openings, and in April, 2014 they had 17.

Scary font ideas

I’m working on cover designs for my new “Functional Programming in Scala” book, and I want the words Functional Programming to be scary or intimidating. These are some different font ideas. The red fonts seem to get the “scary” point across well, though I suspect that some combinations of grays and white can also work.

Why is this approach better? (FP and OOP)

For the last week or two I’ve been packing a few boxes every night as I prepare for a move a few miles to the north. Last night I started packing the old Beginning Scala book, when I noticed a bookmark I had in it. When I flipped to the bookmark, I found code like this:

trait Shape
case class Circle(radius: Double) extends Shape
case class Square(length: Double) extends Shape
case class Rectangle(h: Double, w: Double) extends Shape

which was later followed by code like this:

Getting back to writing my Scala/FP book, again

If nothing else comes up, I’ll start working on my “Beginner’s Guide to Functional Programming in Scala” book again on Wednesday.

I’ve been away from it for so long, I honestly have no idea where I left off with it. At one point I felt like I had the book entirely written in my head, and it was just a matter of taking the time to write and edit it. I hope I made some good notes before I had to stop working on it.

When I first started writing this book I didn’t know if there was a need for it, and now that so much time has passed, I seriously wonder if there’s a need for it.

Lightsaber

Lightsaber is a free, open source application for Mac OS X systems that plays “lightsaber” sound effects as you move your mouse. Once Lightsaber is running, you can switch to any other application, and Lightsaber will play the sound effects when you move your mouse.

Note: Lightsaber has been tested on Mac OS X 10.9 (“Mavericks”) and 10.10 (“Yosemite”) systems. (It may also run on OS X 10.7 and 10.8, but I don’t have any computers running those older operating systems, so I can’t verify that at this time.)