Creating a drop-down list in Play Framework 2.6
Creating a drop-down list in Play Framework 2.6 By Alvin Alexander. Last updated: April 11 2018 As a brief note to self before I delete this code, this is how you create a drop-down list in Play...
View ArticleScala: A look at flatMap and map on Option
Scala: A look at flatMap and map on Option By Alvin Alexander. Last updated: May 21 2018 As a quick Scala tip, if you haven’t worked with the flatMap on an Option much, it can help to know that...
View ArticleMore null values seen in the wild
More null values seen in the wild By Alvin Alexander. Last updated: June 2 2018 Read more about More null values seen in the wild I just came across a couple more null values out in the wild, this...
View ArticleScala: How to use fold on an Option (syntax)
Scala: How to use fold on an Option (syntax) By Alvin Alexander. Last updated: January 12 2019 Table of Contents Directly extracting the value out of the Option Applying a function while extracting...
View ArticleRecently-added Scala cheat sheets, tutorials, syntax, and examples
Recently-added Scala cheat sheets, tutorials, syntax, and examples By Alvin Alexander. Last updated: June 17 2018 As I try to organize things a bit around here, here’s a list of some tutorials I’ve...
View ArticleScala: “IO monad doesn’t make a function pure; it just makes it obvious it’s...
Scala: “IO monad doesn’t make a function pure; it just makes it obvious it’s impure” By Alvin Alexander. Last updated: June 15 2019 I always find it confusing when people claim that the IO monad...
View ArticleSome Scala Exception ‘allCatch’ examples
Some Scala Exception ‘allCatch’ examples By Alvin Alexander. Last updated: May 9 2019 At the time of this writing there aren’t many examples of the Scala Exception object allCatch method to be found,...
View ArticleScalaCheck custom generator examples
ScalaCheck custom generator examples alvin February 8, 2019 - 5:48pm Read more about ScalaCheck custom generator examplesLog in to post comments Table of Contents Custom generators Built-in ScalaCheck...
View ArticleFunctional error handling in Scala
Functional error handling in Scala By Alvin Alexander. Last updated: April 22 2019 Because functional programming is like algebra, there are no null values or exceptions. But of course you can still...
View ArticleScala: How to use higher-order functions with Option (instead of match...
Scala: How to use higher-order functions with Option (instead of match expressions) By Alvin Alexander. Last updated: July 15 2019 Table of Contents Sample data From match expressions to higher-order...
View Article