• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code generators, why?

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, first off, I love Seam.

<rant>
But I always have this major problem of code generators like seam-gen and what php and Ruby on Rails have. They never write pages that I would want in my site. They look awful, never a good UI for users, and makes it more difficult to change and overwrite what got created.

I definitely like the idea of building scaffolding for the directory structure and automatically creating build scripts, but it should stop there. Is there ever a site that you hae seen that have actually put those generated pages onto the web for public consumption?
</rant>

Thanks

Mark
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are slightly missing the point about the purpose of seam-gen (I can't speak for other code generators). The main goal of seam-gen is to allow you to begin evaluating Seam with next to little overhead. To make the evaluation relevant and productive, it offers a code generator so that you can get some screens together and start hacking on them (and perhaps to show your boss you actually did something). We are still a ways off (I'm not ruling it out) from when code generation can replace custom development. For that reason, seam-gen doesn't try to build the perfect application.

With all of that said, if you are looking for better code to be generated, it's easy (if you understand FreeMarker and Hibernate Tools) to modify the templates and generate more of what you want. But please don't lose focus on the fact that seam-gen is there to produce a custom example that you can build on. Seam is about much more than just seam-gen.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I know Seam is not just seam-gen, and my first statement says I love Seam. I used it when working on the embedded-jopr project.

I was just remarking in general about these code generators because all the different communities all glow and praise their generator and why their community makes web development such a breeze, just 10 minutes and your site is up. Where when you want to actually create a real site you ahve to go through all the pains of the learning curve and normally all take the same amount of development time. There is never a project that you can create in such a short period of time, there just isn't any projects out there that can.

Mark
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly. If it were so easy to create projects, then the success rate of projects would be a lot higher. I do think it can be that easy to evaluate a framework though.
 
Padmarag Lokhande
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
When some communities say they have a great code-generator, they mean it works for them!
That doesn't necessarily mean that they develop the complete site/app using code generators.
In a way it is good that code generators do not develop complete app - otherwise we would be out of work ;)
Generally code generators are useful only for specific repetitive tasks.

 
Mourouganandame Arunachalam
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code generators are always good to start new things to learn, instead of breaking head with clean white paper.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic