Validation with warnings in scala with scalaz
Monad are containers with 'special powers', when it comes to applying function over its content.Validation special power is propagating Failure over validation process.If you are not familiar with...
View ArticleWarsjawa – hold your own workshop
Warsjava starts as soon as next month. This is your last chance to appear alongside Venkat Subramaniam – all you need to do is submit an interesting proposal of your own workshop (Call For Papers end...
View ArticleUse asInstanceOf[T] carefully!
BackgroundScala has nice static type checking engine but from time to time there are situations when we must downcast some general object. If this casting is not possible we expect that virtual machine...
View ArticleTouK on Warsjawa 2014
Between 26-27th of October there was 100% workshop formula conference Warsjawa. TouK was the sponsor of Venkat Subramaniam visit.
View ArticleSystem informatyczny dla PKW
Nasza propozycja na Twitterze jest jak najbardziej poważna i realna. Mamy świadomość jaka jest lub może być złożoność takiego systemu. Tworzymy oprogramowanie obsługujące w każdej chwili więcej...
View ArticleSample for lift-ng: Micro-burn 1.0.0 released
During a last few evenings in my free time I've worked on mini-application called micro-burn. The idea of it appear from work with Agile Jira in our commercial project. This is a great tool for agile...
View Articlemicro-burn has Trello integration
After a few long evenings I've finally integrated micro-burn with Trello. All you need to run it for your Trello board is to write short configuration and run fat jar. It renders burndown chart...
View ArticleEnums for scala
Scala has very limited implementation of Enumeration. Enumerated objects can't extends other classes. Partial replacement for it is to use sealed classes. You can do pattern matching on them. When you...
View ArticleNeed to make a quick json fixes – JSONPath for rescue
From time to time I have a need to do some fixes in my json data. In a world of flat files I do this with grep/sed/awk tool chain. How to handle it for JSON? Searching for a solution I came across the...
View ArticleGit aliases for better Gerrit usage
What is Gerrit?Gerrit is a web application for code review and git project management. You push commit to specific ref in Gerrit and your collaborators could comment your Read more
View ArticleAll field constructor in Groovy
TupleConstructor annotation in Groovy generate constructors for class with each of its properties (eventually also fields). The class below @TupleConstructor(includeFields Read more
View ArticleRestart or power off Rasperry PI with REST call
If you need to restart or power off your RPi remotely (or through local application's call) here's a simple way http://raspberry.address:7000/reboot http://raspberry.address:7000/power/off Read more
View ArticleWhat’s the cause of your problem?
Most of exceptions has a few constructors including those with cause exception. But what if you have to throw an exception that has no cause in constructor? You try to survive: Read more
View ArticleWriting JAXB in Groovy
Suppose you want write a jaxb class in groovy. Why? Because you do not have to write these all getters, setters and other methods. You only have to write your fields down. Read more
View ArticleGroovy, Callable and ExecutorService
Suppose you want submit job to ExecutorService. The Baroque version You could create a class that implements Callable: class MyJob implements Callable<Integer> Read more
View ArticleThe hidden benefit of writing short methods
A method should do only one thing Quoting Uncle Bob: The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than Read more
View ArticleClojure web development – state of the art
It’s now more than a year that I’m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the “parentheses fear”, Read more
View ArticleEasy configuration usage with ConfigSlurper
What's the problem? We have to deal with properties in almost every projects that we write. Properties class, which we use in these cases, is just mapping key to value. Sometimes Read more
View ArticleTypeclasses in Swift, Haskell and Scala
What is a typeclass? Typeclass is a Haskell way of creating the type composition in the world without inheritance. It allows to define a desired behavior in a form of function Read more
View Article
More Pages to Explore .....