dzhigital.blogspot.com
dzhigital joy of coding: Nullable AnyVal in Scala
http://dzhigital.blogspot.com/2009/03/nullable-anyval-in-scala.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Saturday, March 28, 2009. Nullable AnyVal in Scala. DISCLAIMER: Please don't treat it too seriously. And never ever use the following code for anything serious. Usually we want to get rid of potential nulls in the code. Here I'll go the opposite way. All things in Scala are instances of classes. Full OO. The base type for everything is Any. On the other hand there are simple types (still objects! Val anyval1: AnyVal = null.
dzhigital.blogspot.com
dzhigital joy of coding: March 2009
http://dzhigital.blogspot.com/2009_03_01_archive.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Saturday, March 28, 2009. Nullable AnyVal in Scala. DISCLAIMER: Please don't treat it too seriously. And never ever use the following code for anything serious. Usually we want to get rid of potential nulls in the code. Here I'll go the opposite way. All things in Scala are instances of classes. Full OO. The base type for everything is Any. On the other hand there are simple types (still objects! Val anyval1: AnyVal = null.
dzhigital.blogspot.com
dzhigital joy of coding: Dynamic method calls in Scala
http://dzhigital.blogspot.com/2009/03/dynamic-method-calls-in-scala.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Wednesday, March 11, 2009. Dynamic method calls in Scala. This is a trick that I showed to quite experienced Scala coders and some were surprised by it. Let's give it some persistence in the blogosphere. If you spent some time hacking Scala you probably heard of "asInstanceOf[T]". Which is a Scala's notation for casting. You probably used it in the way similar to this. Compare this to Java's way of doing reflective call:.
monkeyisland.pl
//given //when //then forever | monkey island
https://monkeyisland.pl/2009/12/07/given-when-then-forever
Given / when / then forever. Test public void shouldDoSomethingCool() throws Exception { / given / when / then }. I like to call it the Ultimate Test Template. Don’t be a fool like me. And start writing / given / when / then today. Life is too short for messing around – you want to get level 85 in software craftsmanship soon, right? BTW If you need to document some ‘exceptional’ behavior in your test somewhere there. Is the template for tests with exceptions. So don’t miss it! I heard rumors that Wroclaw.
dzhigital.blogspot.com
dzhigital joy of coding: Cloning Scala actors
http://dzhigital.blogspot.com/2009/03/cloning-scala-actors.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Friday, March 20, 2009. I thought I'd base one of my projects on Scala actors. On the other hand seeing how actors are dynamically typed reminded me of my experiments with dynamic, clone based languages (Io, Ioke, Self, JavaScript). The preferred way to create an actor in Scala is something like this:. Val anActor = actor {. Here goes the body of an actor.: a loop, call to receive/react, message patterns. Javalang.Ille...
coding-journal.com
Installing Gitorious on Ubuntu 11.04 | The Coding Journal ツ
http://coding-journal.com/installing-gitorious-on-ubuntu-11-04
The Coding Journal ツ. Notes taken on an epic coding journey. Skip to primary content. Skip to secondary content. Installing Gitorious on Ubuntu 11.04. September 6, 2011. This guide is based on the Ubuntu Installation Guide. From the Gitorious Wiki. But it is a little outdated, so here’s my updated version. Pretty much all of the following commands need to be executed as the superuser, so first of all we make ourselves root (alternatively you could prepend. REALLY GEM UPDATE SYSTEM. Gem update - system.
dzhigital.blogspot.com
dzhigital joy of coding: About the weird title of this blog
http://dzhigital.blogspot.com/2009/03/about-freaking-weird-title-of-this-blog.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Wednesday, March 11, 2009. About the weird title of this blog. Some of you may wonder why I named my blog in such a hard to remember, user unfriendly way. (Hint: Use RSS or bookmark it. Don't try to remember it.). Dzhigital" is a neologism I just came up with after reading on wikipedia about "dzhigit". Picture. (compare to this. The stuff that usually nobody wants to pay you for. . Subscribe to: Post Comments (Atom).