If you’re interested in packaging Java applications on macOS, this is a good `javapackager` video on YouTube.
I get to have another operation (surgery) next week, but I still hope to have the next version of my book on Scala and functional programming available by the end of the month.
SBT 1.0.0 is now available. See this Lightbend page for more details.
Some people in Colorado crack me up. A recent conversation:
Me: Yada yada yada, I have an autoimmune disease.
Other: You should try marijuana.
Bill Wyman, bass guitarist for the Rolling Stones, ranks all 165 Pink Floyd songs from worst to best.
On my list to listen to: A TED Radio Hour discussion, Why Does Time Exist?
“There could have been no two hearts so open, no tastes so similar, no feelings so in unison.”
The book, Advanced Scala with Cats, has a nice little function you can use to run a block of code “slowly”:
def slowly[A](body: => A) = try body finally Thread.sleep(100)
I’d never seen a try/finally block written like that, so it was something new for the brain.
In the book they run a
factorial method slowly, like this:
slowly(factorial(n - 1).map(_ * n))
FWIW, you can modify
slowly to pass in the length of time to sleep, like this:
def slowly[A](body: => A, sleepTime: Long) = try body finally Thread.sleep(sleepTime)