Archive for the Category: Languages

How to have a single test spec for many different implementations (in git)

I’m running Scala workshops regularly in Warsaw, Poland and for the exact purpose I’m developing the scalania project. The past workshops have been quite successful with around 15 attendees every session. They clone the git repo from GitHub and solve the programming assignments on their own. It’s going tremendously well. There’s however an issue how […]

Tagged 2 Comments

Scala Days 2013 Notes from Expanding eta-expansion: shapeless polymorphic function values meet macros

What could be better to master Scala and presentation skills than to watch people who do them better? Since the recordings of the presentations from Scala Days 2013 are available on Parleys at no charge I thought I’d spend some time and watch a few. I did really watch a few, but just recently I […]

Tagged Leave a comment

Reversing number without resorting to String in Scala

There is no better way to learn as to try new things without fear of making mistakes. I wish I’d follow it more often. When I do, I also do my best to let others know so they hopefully let me know where I may have made mistakes. I’ve recently been exposed to some algorithmic […]

Tagged 8 Comments

Studying scalaz to learn Scala (and perhaps category theory) with sbt

I’m studying the source code of the scalaz project as a way to introduce myself to Scala (and category theory in general). Reading a source code has always been considered a constructive approach to learn a language provided the project is of importance to the community (behind the language) and is developed with care. I […]

Tagged 4 Comments

Importing sbt-based project to IntelliJ IDEA 13 (with sbt-idea, Scala 2.11 and sbt 0.12)

Just as in How to create SBT project with IntelliJ Idea? on StackOverflow I needed to import a sbt-managed project – scalaz – into IntelliJ IDEA. With my configuration – Scala 2.11.0-M3 and sbt 0.12.4 – the answers to the question on StackOverflow were often misleading and hence the blog post. jacek:~/oss/scalaz $ sbt gen-idea […]

Also posted in Tools Tagged , , Leave a comment

Scalania.PL – Warszawa JUG’s meetings to practise Scala by examples

I’m still very new to Scala if case class is to me only to combine attributes in a class and have the class and the attributes available in pattern matching. Just ran across the course by Tony Morris, more specifically the case class Id[A] with two methods map and flatMap that I would never have […]

Tagged Leave a comment

New adventures with functional languages in financial sector

It’s a bit over a year when I wrote “p.s. I felt in love with functional programming with Clojure and F# so much that I could very likely consider a job as a team leader or a lead developer, too.”. It’s amazing how time flies by quickly and how much I should watch my words […]

Tagged , 5 Comments

@ktosopl about Value classes and :javap in Scala 2.10.x

Thanks @ktosopl for the useful tip about using the command :javap in your blog post Scala 2.10 – or, why you will love implicit value classes. Not only :javap, but the main topic itself – value classes, made the blog post very useful and informatory! Just a few days ago I tweeted about the release […]

Tagged Leave a comment

Final score from Scala course at Coursera: You earned 79.8%

Final score from the course Functional Programming Principles in Scala at Coursera is now available. There were 7 weeks of extensive study time for many of us who participated in the how and why of functional programming in Scala with the author – Martin Odersky. I’ve been blogging about the past experiences and must admit […]

Tagged Leave a comment

String not fully-qualified in typeOf in Scala? Unlike Int and Integer

With the recent release of Scala 2.11.0-M3 I’ve played with typeOf a bit. $ scala Welcome to Scala version 2.11.0-M3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_21). Type in expressions to have them evaluated. Type :help for more information. scala> import scala.reflect.runtime.universe._ import scala.reflect.runtime.universe._ scala> typeOf res3: reflect.runtime.universe.Type = Nothing scala> typeOf[Any] res4: reflect.runtime.universe.Type = […]

Tagged Leave a comment