How to define an `equals` method in a Scala class (object equality)
How to define an `equals` method in a Scala class (object equality) By Alvin Alexander. Last updated: June 10 2019 Table of Contents Solution A Scala `equals` method example Discussion Example 2: A...
View ArticleI can’t write a book
I can’t write a book By Alvin Alexander. Last updated: June 23 2019 Read more about I can’t write a book Over time I’ve discovered a number of things that I have no memory of from the years 2014 to...
View ArticleHow to run shell commands from the Scala REPL
How to run shell commands from the Scala REPL By Alvin Alexander. Last updated: June 27 2019 This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 14.4, “How...
View ArticleHow to disassemble and decompile Scala code (javap, scalac, jad)
How to disassemble and decompile Scala code (javap, scalac, jad) By Alvin Alexander. Last updated: July 24 2019 This is an excerpt from the Scala Cookbook (partially modified for the internet). This...
View ArticleScala Cookbook errata page
Scala Cookbook errata page By Alvin Alexander. Last updated: August 1 2019 Wow, many years ago I thought there should be an errata page for the Scala Cookbook, but to the best of my knowledge we never...
View ArticleSimple concurrency with Scala Futures (Futures tutorial)
Simple concurrency with Scala Futures (Futures tutorial) By Alvin Alexander. Last updated: August 1 2019 Table of Contents Problem Solution Run one task, but block Run one thing, but don’t block, use...
View ArticleSecond Edition of the Scala Cookbook
Second Edition of the Scala CookbookalvinJanuary 28, 2020 - 11:26amRead more about Second Edition of the Scala CookbookIt’s super-early in the process, but the Second Edition of the Scala Cookbook is...
View ArticleA little Scala program to count lines of source code in the Scala Cookbook
A little Scala program to count lines of source code in the Scala CookbookalvinFebruary 17, 2020 - 4:12pmRead more about A little Scala program to count lines of source code in the Scala CookbookLog in...
View ArticleHow I came to write the Scala Cookbook
How I came to write the Scala CookbookalvinFebruary 17, 2020 - 7:50pmRead more about How I came to write the Scala CookbookThe funny thing about writing the Scala Cookbook is that it started as a whim....
View ArticlePolar bear photos (mom and cub)
Polar bear photos (mom and cub)alvinFebruary 20, 2020 - 10:23amRead more about Polar bear photos (mom and cub)Photos of mom and cub polar bears. I hoped O’Reilly would use these for the cover of the...
View Article
More Pages to Explore .....