logoblogg.de • autotest.de 

Freitag, 24.08.2007

Dies ist ein Testeintrag, um das Kommentieren zu testen.

Dies ist der Text zu dem Testeintrag.  Kommentare ist explizit erlaubt!!!

Donnerstag, 23.08.2007

Traits or objects may not have parameters

Is this really a good idea?  E.g. if one wants to set up a singleton for a database connection it could be worthwile to have constructor parameters like DNS.  I understand the design of traits not having parameters, but I don't understand why singletons may not have any class parameters. Any idea?

def foo () = […] vs. def foo () = { […] }

Actually, this one is simple and apperntly is just syntactic sure: A method body does not have to be surrounded by curly braces if it consists of a single expression.

Mittwoch, 22.08.2007

Class parameters

Scala is a object-oriented language, and as such it has a concept of class.  One important difference to Java is, that classes in Scala can have parameters.  E.g.:

    class Complex(real: double, imaginary: double) {
        def re() = real
        def im() = imaginary
    }

This complex class takes two arguments, which are the real and imaginary part of the complex.  These arguments must be passed when creating an instance of class Complex, as follows: new Complex(1.5, 2.3). The class contains two methods, called re and im, which give access to these two parts [taken form Scala tutorial].

Are these class parameters similar to constructor parameters in Java?

Scala entries transfered from locutor's blog


[2007-08-19]

functional implementations require more transient memory than imperative one

Where imperative implementations operate in place, e.g. by modifying
an argument array, the functional implementation returns a new sorted
array and leaves the argument array unchanged.

/nm

[2007-08-19]
def foo () = […] vs. def foo () = { […] }

What is the difference between defining a function by
def foo (
) = […]
versus def foo (
) = { […] }
?

/nm

[2007-08-19]
Functions nested inside other functions.

I have just re-started to improve my Scala skills and I am bit confused about the advantages of functions nested inside other functions.
One advantage of using this feature, for sure, is the accessibility of
parameters and local variables of the enclosing function, but what
about code readability and thus maintainability. As I am originally a
Java coder, I prefer to not to have nested functions, but to
externalize those ones.

I will keep on examining this issue and return to this post as soon as I have achieved more insights.


/nm



Diary transfered from locutor's blog



[2007-08-22]

First draft of my DAAD application forms accomplished. Now, going back to mdiff...

Thanks to my supervisor Michael Kohlhase, today I got all my DAAD
application forms done and sent them to Rice for validation purpose.
Eventually I can keep on with my mdiff implementation. Though, today I
will only keep on learning scala and tomorrow morning I will continue
on my formalization tasks: I am currently formalizing the terms dependency, dependency type, change type, equivalence of document fragments, and propagation
of changes, w.r.t. the formerly mentioned types and their correlation
to induced equivalence class, in a change relation calculus. This
calculus will constitute the basis for my mdiff and locutor,
respectively.

[2007-08-20]
DAAD

Today no research :-( only DAAD application preparations…

/nm

[2007-08-19]
mdiff kick-off

Today I seriously started to implement my first version of mdiff.
This is going to be a collection of modeled based diff-algorithms. In
the first step I am going to implement a mdiff for the following
document formats: ASCII, TeX, OMDoc. Therefore I am utilizing the
following design patterns: Strategy, Builder, Abstract Factory.
Currently I am giving Scala a shot! On the one hand, this thwarts me
bit, but on the other hand, as soon as I figured out how to write
things down in this new compact syntax it just looks awesome, i.e.
simple and straightforward! I accomplished so far: Simple command line
parsing, Suffix checking, Strategy infrastructure setup. So let’s see
what’s coming next…stay tuned!

/nm


Donnerstag, 12.10.2006

LWA 2006



Just came back from the LWA workshop yesterday, and found out that there is a set of
pictures on Flickr (thanks to
brunkhor): http://flickr.com/photos/34981199@N00/sets/72157594321365068/ It was really nice to meet so many friendly people and discussing arising
aspects on (web-based) knowledge management and some recent progresses in
learning. And well, it was of course really good to have some drinks with
Normen and Chrsitine again? :-)

Sonntag, 25.06.2006

Hackers and Painters


Some days ago I came back from the KI06 conference in Bremen - the weather at my return was very sunny and the highways were free... :-) However, my car caught a lot of flies and I had to clean it again. So, I stood at the car wash and watched all the guys mounting their "germany flags" again on their cleaned cars. Germany is quite funny these days because the world cup made lot of people crazy: it's not that bad, but it looks funny that "we" now have discovered the german flag on cars for expressing our happiness and proud regarding the soccer world cup in our land.

Whatever, I remembered a chat with Immanuel Normann after the match "Netherlands - Cote d'Ivoire" talking about Lisp and all the stuff on programming languages. Finally, I recommended the book "Hackers and Painters" by Paul Graham, which is a good-old-fashioned Lisp programmer but interestingly also a studied painter. I think he made some million dollars with selling the first-ever web-shop builder to Yahoo! (of course it was written in Lisp, but nobody should know...) and then got famous for his books "ANSI CommonLisp" and "On Lisp".

Samstag, 17.06.2006

Make others lurk around your Mac

When I started to use my Mac the first time I was really inspired by my supervisor, Michael Kohlhase, already using a Mac for couple of years. Besides a lot of other stuff, he has that wicked 'cube-switching-desktop'-thing installed and that looks pretty cool to me. Finally after a little google session I found it: Desktop Manager. Unfortunately with this tool installed some default keyboard shut-cuts I already got used to, e.g. switching tabs in Firefox, didn't work anymore. But one of the biggest drawbacks to me was using the commond-tab short-cut didn't switch to the desktop of the application I chose. So I decided to give up using Desktop Manager.

Lately --- to be honest I don't why --- I started to google again for a virtual desktop manager and found the next generation of Desktop Manager: VirtueDesktop.

This gimmick is much more configurable and a lot of features have been added compared to Desktop Manager, e.g. now desktops are automatically switched to the chosen application. What I also like very much, already the default installation was fine for me. So actually you do not have to spent much time on setting this tool up, just start using it. Anyway, what the heck else shall I say, go ahead and check it  out by yourself ... 

Turn off annoying startup sound

The tone you hear when you start up your Mac is a good-news sound?it tells you that the machine has made it through its basic hardware tests just fine. But it can also be annoying, especially if you?re in a library, a classroom, or a nursery [macworld].

So check this out: StartupSound