Martin Odersky wrote the leveling of Scala developers: Level A1: Beginning application programmer Java-like statements and expressions: standard operators, method calls, conditionals, loops, try/catch class, object, def, val, var, import, package Infix notation for method calls Simple closures Collections with map, filter, etc for-expressions Level A2: Intermediate application programmer Pattern matching Trait composition Recursion, in […]
Documentation is error-prone. So the best documentation should be the code itself… or automatically generated from the code. I haven’t found any open source project that can do this so I created one. As I’m currently learning Scala, I decided to write the code with Scala. You can find the code in Bitbucket: https://bitbucket.org/enefem/restdoc It’s […]
Here is the new and noteworthy list for the milestone 5 of Eclipse 3.7 (aka Indigo).
This guy is simply amazing!
Even thought Scala is now among the trendy programming languages, it still misses a lot before it is considered as one of the major players. Most Scala programmers are they who are not satisfied with Java, so it’s natural that most of them were before programming with Java. One of the things Java programmers miss […]
Last night, Kevin released the 8th version of Google Guava libraries. For me personally, nothing so exciting in this release. Just nice to have some bugs fixed and some new methods and classes. MinMaxPriorityQueue could be interesting, but I don’t have scenario where to use it right now. Enjoy it while it lasts!
When you are creating resource in a REST application, it will only be automatically created if you have an empty parameter. The problem is, sometime we need a resource that is configurable, so it can be reused by other applications. We can solve this problem by defining init parameter in our web.xml like this: Or […]
The default theme of Eclipse is good, but I must admit that with some configuration, Vim can show code better. And this is pretty easy, just go to Google and search for ‘vim color’. I know from a long time ago that Eclipse allows us to change the color preference of our editor. Hence I […]
Seems very simple but can be source of frustration. So, how to represent class in Scala? In Java, you refer to a class by adding .class at the end of the class name. In Scala, you get the equivalent of that by using classOf. An example for referring String class is as follow: You can […]
Will it be a better solution than AirPrint? By connecting your printer with the Google Cloud you will be able to print to your printer from any computer or smart phone, regardless of where you are. Just activate the Google Cloud Print connector in Google Chrome and your printer will automatically be available to you […]