Michael Könings Blog

a generalist's specialties

Oktober 2007 - Einträge

MVC, Castle, SubSonic, bye bye WebForms ?

(Ab jetzt schreibe ich in deutsch :-)  )

Microsofts ASP.NET Team rund um Mastermind Scott Guthrie hat einen bemerkenswerten Schritt gemacht: Alternativ zu dem bekannten WebForms Konzept wir es bald eine Unterstützung in ASP.NET für das Model View Controller Konzept geben (Video).  

Warum ist das so interessant ?  

MVC ist (ebenso wie MVP) die Basis für eine gute Testbarkeit von Modulen innerhalb einer Applikation. Beim "klassischen" WebForms Konzept ist die Verbindung zwischen der Darstellung  und der Logik  in den Pages zu einer Einheit verschweisst. Es ist also nur schwer möglich, die Programmlogik in den Code Behind Files isoliert zu testen (Unit Tests), ohne die Seiten im Webserver laufen zu lassen. Es gibt einige interessante Projekte im .NET Umfeld( z.B. Castle Monorail), die Alternativen bieten. Dort hat man die Trennung zwischen View und Controller konsequent vollzogen. Die Anregung für die Architektur kommt hier (wie so oft)von Ruby on Rails

RoR hat wohl wie kein anderes Framework die Szene aufgemischt, da es einfache  Programmierung mit sauberer Architektur und konsequenter Unterstützung von Unit Tests verbindet.  

Das Open Source Projekt SubSonic ist eine weiteres Framework, das von RoR die ActiveRecords und coole Ideen wie das Scaffolding übernommen hat. SubSonic hat sich dabei zum Ziel gesetzt, im Rahmen der Möglichkeiten von ASP.NET (mit WebForms) die Produktivität des Entwicklers maximal zu erhöhen. Der Schwerpunkt liegt auf einer extrem komfortablen O/R Mapping Library, die "on the fly" das Klassenmodell für eine Datenbank generiert. SubSonic erlaubt (mit den entsprechenden Templates) immerhin das Generieren von MVC-Style Controllern, ein wichtiger Schritt in Richtung Testbarkeit und Aufgabentrennung.

Hinter den vielen guten Ideen in SubSonic steckt Rob Conery, der letzte Woche seinen Vertrag bei Microsoft unterschrieben hat... Er schwört auf seinem Blog das er das SubSonic  Projekt weiterführen will... Wir können uns also auf extrem interessante Entwicklungen freuen. Ich bin überzeugt, dass das Team um Scott Guthrie mit der Einführung vom MVC einen guten Job machen wird. 

Posted: Okt 29 2007, 10:52 von admin | mit no comments
Abgelegt unter: , , ,
How To: claim your blog with Technorati

Technorati is an important service for all bloggers: it's not only a bookmarking and tagging community but also a blog search engine that provides information to other search engines like Google. In order to push your posts higher in the rankings it's good to have an account with Technorati and claim your blog. Why is that important?

Technorati provides a Pinging Service. Our blog-server calls a web service every time we post something on our blog. This web service  tells Technorati: "hey, here is something new, put it in your catalog!" Your post can be found on Technorati only some minutes later.  And: other services (Google!) take this information out of Technorati frequently.  There are other Ping Services too, check out this one: you can see in real time what blogs get updated..

This is the reason why blogging is such a fast medium: you can push your stuff into the search engines, you don't have to wait until a spider comes along, like with static content.

But: since there are more than 100 million blogs registered with Technorati, well... you have to provide some interesting stuff to get traffic right away.

Tagging is very important too: Technorati has it's own tags, it makes sense to use tags that already exist in order to get found. Technorati will add your new tags to it's catalog. But people will probably  search for common tags, so keep that in mind. Try this tag search. This tag was introduced to filter blog posts that are relevant for the Trivadis blog server. Sven did a good job :-)

So, take my advice: register with Technorati and claim your blog!

What does that mean?  Technorati wants you to proof that the blog you want to register is really owned by yourself. With our Community Server blogs it works like this:

  • Join Technorati
  • navigate to the "claim your blog" page
  • Enter your blog's URL
  • Technorati provides a little HTML snippet with a random generated key in it.
  • Open your blog in a second tab or window.
  • Put that key-link on your blog's header and save it. (click picture for bigger size)

put a link to technorati on your blog

  • Switch back to Technorati and click the button: Technorati sends out the "spiders" to scan your page.
  • If it finds the key: your blog is claimed!
  • You can delete the link now.

You have to do this in one go, since Technorati creates new keys every time you use this function. So just leave the page open in one window, while you setup the link in another window.

What's next ?

Did you subscribe to your blog's RSS feed already? The more subscribers the better. We utilize FeedBurner to gain more information about feed subscribers. And guess what: FeedBurner is a Google company... Google tracks the number of subscribers to evaluate the "importance" of a blog.

Subscribe to all blogs on the triBLOG Server! Use Google Reader for it...

I put an OPML file here. You can import that easily with any RSS reader, so you don't have to import them manually.

Bookmark your colleague's posts on Delicious or Mister Wong (a great german bookmarking service)!

Every link counts! :-)

Technorati Tags: , ,
Posted: Okt 05 2007, 02:26 von admin | mit 3 comment(s) |
Abgelegt unter: , ,