a well formed cupcake
Here’s a simple little sprinkle for anyone wondering how to serve xml with self-closing tags in Scala. The basic cooking ingredients in Scala’s xml kitchen will output closing tags, even when the recipe does not call for them. val selfClosingCupcake = <cupcake /> Will always unsuspectingly return <cupcake></cupcake> When your cupcakes are html tags,...
please yield to passing monads
One of the most common functional programming topics tossed about in the Scala community are monads. Even if you may not know what they are, chances are, you probably use them all the time. Though there are already some decent postings on monads in Scala, I’d like to take a time out and describe how they are used in the Scala you probably use every day. Raise your hand if you’ve...