while i was reading a post from jonas about grails, and grame's (grails project leader) response i began to think: are kiss and dry concepts together?
ok, i think i was not THAT clear.
I his post, jonas says that maven is a better than ant because it uses the dry concept: instead of writing a wonderfully big xml, you just write:
mvn archetype:create -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=0.4 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=your.proj.gid -DartifactId=your-proj-id
ok, no kiss (keep it simple, stupid) here.
in grails (that uses grant — a tool built on top of ant) you say:
grails create-app
easy, ha?
to create a controller, in grails, you say:
grails create-controller
in maven, you would just create the classes (both test and controller) by hand, cause they are just stub classes.
Well, what i have here is dry versus kiss.
altought i love the dry principle, i prefer the kiss one.
just typing maven amount of code, for me, is just impossible, and, maven needs a pom.xml, that i never understood completely.
in grails, you don't have to write xml (neither ant, nor maven) and, if you really need to add a grant script, is groovy syntax.
another thing is, writing mvn archetype:create… is gonna scare people.
rails is famous because is as simple as grails. that's it.
if i say to a person that's starting with java now "hey, go to groovy/grails — it's easier!" and that person sees that amount of code, he will be so scared that he will never go to grails site again.
I, myself, was that kind of person — that's why i never used ant, maven and etc. They are too verbose, and they both have an xml (and, i really hate to create, edit and maintein xml) that is so f***ink difficult.
i falled in love for "agile" frameworks (starting with python's turbogears) because i don't have to write a big amount of everything. is just:
create application
create domain
create controller
create html
run application
and, i don't have to memorize a lot of command-line for all this.
And, one last word.
Grails is used in windows.
Windows users are afraid of CLI.
If you show this the maven example for them, they will certanly say: WTF!
quarta-feira, 26 de março de 2008
Assinar:
Postagens (Atom)