rblog

“Aldri Kaffe, Aldri Golf”

This one is kind’a geeky, but I have to show it to you. I’m reading chapter three of my SCJP-book (Sun Certified Java Programmer) where I found this example (which won’t compile…it’s not meant to, it’s just an example 🙂 ) Read through the code, and pay special attention to the comments, I really like the last one

interface Sporty() {
	void beSporty();
}

class Ferrari extends Car implements Sporty {
	public void beSporty() {
		// implements cool sporty method 
		// in a Ferrari-specific way
	}
}
class RacingFlats extends AthleticShoe implements Sporty {
	public void beSporty {
		// implements cool sporty mehtod 
		// in a RacingShoe-specific way
}
class GolfClub { }
class TestSportyThings {
	public static void main (String[] args) {
		Sporty[] sportyThings = new Sporty[3];
		sportyThings[0] = new Ferrari(); 	
		// Ok, Ferrari implements Sporty
		sportyThings[1] = new RacingFlats(); 	
		// Ok, RacingFlats implements Sporty
		sportyThings[2] = new GolfClub();	
		// Not ok, GolfClub does not implement Sporty
		// I don't care what anyone says!!
	}
}

As some of you might know, I have a saying that goes like this “Never coffee, never golf”. I’m starting to like this book

Funny dialogue between Elin and my sister Ingrid

I was out in the garden, while the computer was on and I was logged on to MSN. Elin did some stuff on the computer when all of a sudden a msn window popped up, and Ingrid saying hi. That was Ingrid, my sister, but Elin thought it was her sister…funny!

Ingrid says:
Hei

Rune Hellem says:
Hei, så fancy det var da. Jeg kan ikke skrife så lenge, for jeg skal rette prøver. Det er så kjeeeeeeeeeeeedelig!!! Ville mye heller vært ute og gjort. noe. Rune er ute og tar opp en ripsrot for venninna si i første etasje på 70 år. Du, sang nr seks på nordstoga er jo bare helt fantastisk. Elsker hvordan den bygger seg opp
Ingrid says:
ok

Rune Hellem says:
ja jeg kunne godt tenke meg å dra på konsert. Hva driver du med?

Ingrid says:
ikke noe spesielt

You have just sent a Nudge!
You may not send a Nudge that often.

Ingrid just sent you a Nudge!

Rune Hellem says:
skjønner ikke noe av alle disse tinga. nå rista liksom skjermen. Når var det lars tormod kom igjen? 11.nov? for da ber vi inn dere og skuespilleren/arkitekten til lag her
Ingrid says:
ok

Rune Hellem says:
Heia Ingrid, Rune her

Ingrid says:
hei

Rune Hellem says:
Elin trudde hun snakket med Ingrid, sin søster, ikke deg, derfor skrev hun så rart

Concert with Danko Jones

Loy, Espen and I went to concert with Danko Jones this evening. It started out at 80 kmph, and accelerated up to 130 kmph, but then all of a sudden, when doing the extra songs, ithe concert passed 200 kmph with a good margin. All of a sudden, on the stage: John Garcia from Kyuss…ohhh, that was cool!!!

http://www.dankojones.com/ and http://en.wikipedia.org/wiki/John_Garcia

Boys at Danko

Danko