Artikel mit Tag configuration

myndian.de

Artikel mit Tag configuration

Verwandte Tags

internet datenschutz documentation web development dj set friends javascript xml enttäuschung flash kommunikation shop fun bookmarks video gallerien deejay sommer firefox amazon electronic music songbird web web2.0 news wissenschaft mozilla werbung web-applikationen action montag integration foren blogs itunes recht tagging comic strong typing java dynamic typing internet radio declarative spring framework groovy ibatis sql maps myndian.de mvc sql optimization antipattern strindtemplate nice scala jdbc velocity performance c# object orientation jsp model driven software development groocy test ms sql server database fehlerbehandlung language framework open source

Sonntag, 16. März 2008

Simpler implementation of ApplicationContextAware

public class MyApplicationContextAwareClass
{

  @Autowired(required = true)
  private ApplicationContext applicationContext;

  // ...
}
Probably not very usable if you like to test your class (or you have to made the property package visible). But if your class is a test it is very nice and quite usefull.
Geschrieben von Jörg in Softwaretechnik um 13:59 | Kommentare (0) | Trackbacks (0)
Tags für diesen Artikel: configuration, spring framework

Montag, 9. April 2007

Machine Tags tuned

Schon vor einiger Zeit hatte ich bei Frank Westphal über Machine Tags gelesen. Geniales Konzept? Jain. Genial schon, aber eigentlich alles alte Bekannte. Worum geht es?

In Kürze: Normale Tags sind vollkommen ungeordnete Schlagwörter die entweder “vorhanden” oder “zugeordnet” sind oder nicht. Machine Tags haben auch einen Wert und sogar noch einen Namensraum:

<namespace>:<key>=<value>

Also zum Beispiel:

lang:name=java
lang:ver=1.5

Erinnert natürlich stark an XML oder? Oder auch an Properties-Dateien mit Prefixen, wie sie mein Chef gerne verwendet. (Prefixe beispielsweise für Staging, siehe auch Java Magazine 3/07.)

Sie heißen Machine Tags, weil man davon ausgegangen ist, dass sie hauptsächlich von Maschinen benutzt werden würden. Wie Westphals Artikel aber zeigt, ist dies absolut nicht der Fall und sie eröffnen eine ganz neue Dimension des Taggings.

Wie bin ich darauf gekommen diesen Artikel heute wieder auszugraben? Ich habe via iTunes Musik gehört, bewertet, kategorisiert und mich zum wiederholten Mal darüber geärgert, dass man hier nicht vernünftig taggen kann. Ich hatte mir vor einiger Zeit deshalb schon mal ein Tagging-System überlegt, welches ich den Jungs von Songbird vorgeschlagen habe, aber leider in den Wirren ihres beschi... bescheidenen Forums unterging. Und wenn ich drüber nachdenke ist es fast das gleiche.

Was ich würde gerne Tags wie folgend zu vergeben können:

dance:jive=4
dance:foxtrott=5
rating:jens=4
rating:nils=3
rating:jörg=5
rating:anna=4
rating:average=4
occasion:party=5
occasion:cocktails=4
occasion:work=1
...

Man sieht es: Kategorisierte Tags mit Gewichtung. (Hier mit dem praktikablen 1-5 Sterne Prinzip)

Vielleicht sogar:

occasion:party:jens=5
occasion:party:nils=4
occasion:party:joerg=5
...

Dann noch entsprechende Filtrierungen in “intelligenten Wiedergabelisten” und Ad-hoc.

Sahnehäubchen: Das ganze als p2p-social-tagging-community ...
Geschrieben von Jörg in Internet, Musik, Softwaretechnik um 11:27 | Kommentare (0) | Trackbacks (0)
Tags für diesen Artikel: configuration, internet, itunes, songbird, tagging, web2.0

Montag, 15. Mai 2006

static vs. dynamic typed configuration

This mornig I had to think a little about how to configure a particular system. Some parts of the system use different implementations of specific modules defined by interfaces. If there should be used a special implementation among the standard one, it is configured in a properties file. The value is the full qualified name of the implementing class, which is loaded and instanciated via reflection. Because we use Java and Java is a statically typed language, we have to cast the instance from Object to the interface.

This is a common pattern, I think. It is used by log4j for example.

Because we use a property configuration, which is not typed and validated against anything, the implementations can be configured as needed.

The opposite may be an XML configuration, which is validated against a schema. If we would use this and wanted to use it continuous for all modules, we had to design an universal schema for all modules or one for every implementation, which is imported into the main configuration.

It is very clear which one is faster and improves development speed. I have seen this pattern with dynamic configurations (even with an xml like syntax) several times in different Java applications and frameworks, but I just remember one with a statically typed, xml based configuration. But even this one used a universal, not really typed schema for the dynamic modules. So I think it’s just the same.

Applications, developed in a statically typed language, but dynamically typed. As I think about it, a common error in those applications are wrong configurations, mostly these little typos you do not find very fast and drive you crazy. Much like in dynamic languages. But would a strong and statically typed configuration, validated against some genius schemas, be worth the effort?

Just a little a thought, that crossed my mind.
Geschrieben von Jörg in Softwaretechnik um 12:29 | Kommentare (0) | Trackbacks (0)
Tags für diesen Artikel: configuration, dynamic typing, java, strong typing
(Seite 1 von 1, insgesamt 3 Einträge)

Suche

Inhalt

Startseite
Galerien
Impressum

Kategorien

  • XML Alltag
  • XML Internet
  • XML Musik
  • XML Politik
  • XML Softwaretechnik
  • XML Sonstiges
  • XML Visuelles

Alle Kategorien

Archive

Juli 2010
Juni 2010
Mai 2010
Das Neueste ...
Älteres ...

Blog abonnieren

XML RSS 2.0 feed
ATOM/XML ATOM 1.0 feed
XML RSS 2.0 Kommentare

Login

Verwaltung des Blogs

Login

Aktuelle Einträge

Netzwerkkultur verändert die Gesellschaft
Dienstag, 17. November

Absolute and relative date and time
Sonntag, 18. Oktober

Oren Lavie - Her Morning Elegance
Dienstag, 6. Oktober

Twitter & Blogroll
Samstag, 8. August

Read It Later: Round-Trip-Integration mit Firefox und Google-Reader
Montag, 3. August

Blogroll

* Jörg bei Twitter
* Jens bei Twitter
* Nils bei Twitter

* Beetlebum
* a life less ordinary?
* Martin Fowler's Bliki
* Springify
* BILDblog
* Plazeboalarm
* LawBlog
* ADOM Blog
* Being busy
* Dr. Gero Presser

Links

* Heise
* The Scala Programming Language
Nils' Fotos bei fotocommunity.de
Jogi auf Qype
Get Firefox!
Use OpenOffice.org

Heise News

* Alcatel-Lucent bleibt in den roten Zahlen

* IBM kauft Kompressionsspezialisten

* Speicherhersteller erwarten Preissteigerung

* Britischer Datenschützer findet in Googles WLAN-Datensammlung keine persönliche Daten

* Österreich wegen verpasster Einführung der Vorratsdatenspeicherung verurteilt

kostenloser Counter