Artikel mit Tag dynamic typing

myndian.de

Artikel mit Tag dynamic typing

Verwandte Tags

configuration internet songbird strong typing itunes web2.0 spring framework java tagging test groovy ibatis sql maps c# grails windows enttäuschung book mocks tests tutorial unittests nice eclipse scala myndian.de web development mvc sql fun optimization antipattern strindtemplate jdbc velocity performance object orientation jsp web-applikationen model driven software development groocy ms sql server database fehlerbehandlung language framework open source

Samstag, 22. Dezember 2007

More about Groovy SQL Maps

A week ago I posted about a GroovyIBatisDao. Here I like to tell you about a few details as I announced.



"More about Groovy SQL Maps" vollständig lesen

Geschrieben von Jörg in Softwaretechnik um 15:33 | Kommentare (0) | Trackbacks (0)
Tags für diesen Artikel: dynamic typing, groovy, ibatis, java, sql maps, test

Samstag, 15. Dezember 2007

Make your SQL Maps Groovy!

At work we mainly use Java as general purpose language, but we also pay attention to groovy. There are other scripting languages which are more mature and with a much better syntax, but for our purpose - scripting some Java applications and frameworks - it’s best suited. (You may read a nice article from Fowler about that.)


In one case we use IBatis in the persistence layer and startet to write services which use our SqlMapDaos in Groovy. So I thought about an generic DAO for SQL-Maps using groovy. I had implemented a DAO using Spring Aspects before, like in this article about a generic Hibernate DAO. But this requires at least to define an interface for the DAO. But because Groovy it uses dynamic typing, we can even drop that also.



"Make your SQL Maps Groovy!" vollständig lesen

Geschrieben von Jörg in Softwaretechnik um 13:37 | Kommentare (0) | Trackback (1)
Tags für diesen Artikel: dynamic typing, groovy, ibatis, java, spring framework, sql maps

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

Statische Seiten

Startseite
Galerien
Impressum

Kategorien

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

Alle Kategorien

Archive

Juni 2013
Mai 2013
April 2013
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

* Manning-Prozess: Probleme mit dem Internetarchiv

* Lone Signal: Tweets für Außerirdische

* Aufgemotztes HTC Butterfly mit Snapdragon 600 und Ultrapixeln

* Custom-Eiswürfel: c't on the rocks

* Vodafone bessert Angebot für Kabel Deutschland nach

kostenloser Counter