typeclass-based XML data binding
Ultimately, the users of scalaxb are interested the real problems that the entity objects express, not how they persist into XML. That’s why I knew I eventually had to vacate the singleton/companion object of the case class to implement the data binding. Until recently it has been generating the data binding implementation as follows: object Address extends rt.ElemNameParser[Address] { val targetNamespace = "http://www.example.com/IPO" def parser(node: scala.xml.Node): Parser[Address] = ... def toXML(__obj: Address, __namespace: String, __elementLabel: String, __scope: scala.git memo
global gitignore
See Create a global .gitignore.
$ git config --global core.excludesfile ~/.gitignore_global
checking out pull requests locally
See Checking out pull requests locally.
[remote "origin"]
url = git@github.com:sbt/sbt.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
Scala and OSGi using NetBeans
For some reason, I can’t keep OSGi in my head. Everything I read about it slips away in a few weeks, and I have re-read the guides and tutorials. Here’s a memo of setting up OSGi bundle written in Scala using NetBeans, following Neil Barlett’s OSGi in Practice, except the book uses Eclipse. Installing Scala on Mac Skip this section if you use non-Mac. Install MacPorts. Run the following from Terminal:Layered Architecture
One of my favorites from msdn is Application Architecture for .NET: Designing Applications and Services by Eduardo Jezierski. The version 2.0 is Microsoft Application Architecture Guide by J.D. Meier et al, but it’s much more beefier than the original. Currently 1.0 is put under Retired node in msdn.
Scala and Evaluation Strategy
Once you use any technology to a significant extent, you understand its strength and shortcomings. I’ve probably written tens of thousands of lines of code in Delphi or C++, Java and C# too to some extent. I’ve depended on those languages, but gripe about them too. The new language obviously has the advantage of just being new. Since I haven’t written anything significant in Scala besides Tetris, I haven’t hit the shortcomings yet.
Where the Wild Things Are (2009)
![](/images/16where_600.jpg)
I haven’t read the original book, so this is purely based on the film work by Spike Jonze.