scala

Tutorials about the Scala programming language.

Guess. Apologize. Compensate. alvin May 19, 2017 - 9:54am

Guess. Apologize. Compensate. This is a nice slide from a talk by Jonas Bonér‏, CTO of Lightbend.

Learning Functional Programming in Scala alvin May 15, 2017 - 4:18pm

Table of Contents

  1. The changes
  2. The plan
  3. Download
  4. Updates
Table of Contents1 - The changes2 - The plan3 - Download4 - Updates

Dateline May 15, 2017: Version 0.1.1 of my new book, Learning Functional Programming in Scala, is now available. Please read below for more details.

More of my Scala/FP book (free), coming soon alvin May 14, 2017 - 8:58pm

I was hoping to release the next version of my book on Scala and functional programming as a free PDF download tonight, but I ran into a couple of problems that I want to fix before I release it, and I’m too tired to do that tonight. I hope to release it tomorrow (Monday), and it should include over 600 pages, with 54 chapters and two appendices.

Scala/FP book, coming soon alvin April 9, 2017 - 9:19am

I just counted, and the latest version of my book on functional programming in Scala currently contains 90 short lessons and another 25 appendices. It’s going to grow a little more, but that’s where it is right now. I hope to have a first draft of it publicly available by the end of May.

Update: The first 600 pages of my book, Learning Functional Programming in Scala, are now available as a free PDF download.

CBT, a Scala build tool

I haven’t tried it yet, but I was just reminded that Christopher Vogt (and others) have created a build tool named CBT as an alternative to SBT.

Writing at the beach

I’ve made some good progress on my new book on Scala and functional programming recently. For whatever reason I had been having writer’s block, so I came out to the beach for a little while to help clear out my brain, and today in particular was very productive. For a while now I’ve known how the book would end, but I was having a problem getting from where I was to the end, and I got through most of that today.

In a slightly related note, here’s a blurry photo of a military ship out on the ocean.

First draft of my Scala/FP book, coming soon alvin March 29, 2017 - 6:47pm

Health (and other things) permitting, I hope to have a first draft of my book on Scala and functional programming (now titled, Learning Functional Programming in Scala) completed by the end of May.

It may only be in an alpha or beta state by then, but I’m debating about making it available as an Amazon ebook for a low cost at that time. I’ll be going back to work almost immediately after that, so if I don’t release it now, it may be another year before I can really finish it.

Update: The first 600 pages of my book, Learning Functional Programming in Scala, are now available as a free PDF download.

The target market for my book on Scala and Functional Programming

Bonnie Eisenman perfectly captures the target market for my upcoming book on Scala and Functional Programming. How big that market is ... I don’t know ... I’m just trying to write a good book to explain functional programming in Scala in simple terms, and this is who I’m writing it for.

How to drop the first matching element in a Scala sequence

Summary: This blog post shows one way to drop/filter the first matching element from a Scala sequence (Seq, List, Vector, Array, etc.). I don’t claim that the algorithm is efficient, but it does work.

Background

While creating some Scala test code earlier today I had an immutable list of toppings for a pizza, and I got into a situation where I wanted to remove the first instance of a topping.

Share it!

There’s just one person behind this website; if this article was helpful (or interesting), I’d appreciate it if you’d share it. Thanks, Al.