I agree, this looks good. However, the link to the seam-example-confbuzz github project is broken on the ConfBuzz getting started guide (<a href="http://seam.awestruct.org/tutorial/index.html">http://seam.awestruct.org/tutorial/index.html</a>). It should be <a href="https://github.com/seam/seam-example-confbuzz">https://github.com/seam/seam-example-confbuzz</a>.<div>
<br></div><div>Great start!<br><br></div><div>Best,</div><div>Jordan</div><div><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 10:12 AM, Pete Muir <span dir="ltr"><<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I took a quick look at this, it's very nicely done, nice job!<br>
<br>
Config is a difficult one, a everyone needs it once, and never again.... Dan's suggestion is good I think.<br>
<div><div></div><div class="h5"><br>
On 19 Aug 2011, at 22:44, Dan Allen wrote:<br>
<br>
> On Fri, Aug 19, 2011 at 04:17, Jason Porter <<a href="mailto:lightguard.jp@gmail.com">lightguard.jp@gmail.com</a>> wrote:<br>
> I would greatly appreciate feedback people have for the items in <a href="https://github.com/LightGuard/seam_site_awestruct/tree/develop/tutorial" target="_blank">https://github.com/LightGuard/seam_site_awestruct/tree/develop/tutorial</a>. They will be the base for our getting started guide for Seam 3. The pages are backed by an example that can be checked out and built (possibly broken right now, I haven't tried to build / run it for a while).<br>
><br>
><br>
> Jason, there's a lot of great content in this tutorial so far. I like that you cite the motivation for each snippet rather than just saying "paste this code". For instance, you do a nice job explaining the purpose of the BOM and the need for the Java EE APIs as a provided scope dep. I also like that you forewarn the developer of potential missteps to prevent them from tripping up early on and getting discouraged.<br>
><br>
> I would like to see the tutorial be more development-oriented rather than configuration-oriented. At first glance of the index, we see that the tutorial is structured based on the activation of Seam modules (i.e., configuration). Each section begins with dependency configuration, followed by configuration for activating features of Java EE or a Seam module. As a reader, I'm looking at this saying "wow, all I'm doing is configuring stuff"...and that leaves it being very dry. I don't think this is the right way to structure it.<br>
><br>
> (To cite a very specific example, showing the configuration for the transaction interceptor in beans.xml is way too premature. That should be added once we visit persistence the first time).<br>
><br>
> So we are still stuck in the "I can tell you everything you'll need to setup so that you can code" mentality. Rather, what we want is, "I want to write code, stop me when I need to configure something so I can continue writing code." and "How am I doing?" We need to feed the reader those rewards and assurances.<br>
><br>
> What I like about the play framework tutorial is that it focuses on adding some code, configuring it to run, then seeing the result. To get there with this tutorial, here is the general idea of the structure I would propose:<br>
><br>
> - Starting the project<br>
> (create an alternative version of the first chapter for starting the project using Seam Forge)<br>
> - Creating your first pages with pretty URLs<br>
> - Querying the database and displaying the results<br>
> - Authenticating a user<br>
> - Handling errors gracefully<br>
> - Writing integration tests<br>
> - ...<br>
><br>
> Then you just cover the configuration as it comes along. Take it in stride. If a developer wants to see just the instructions for how to activate a Seam module, that's what the reference guide is for. Here we need to be in a flow. You should try to show code first, then show the configuration to activate it (unless you need the API deps, then maybe switch it) and finally, tell them how to run the application at that stage.<br>
><br>
> For instance, I want to see what's in conferences.xhtml. Maybe at first, it's just a shell since we haven't queried the database. So we just have placeholders where the data will be. But at least the user can run it and see that the pretty URLs are working.<br>
><br>
> If you want, at the very beginning of each section you can mention which modules will get used, and which ones will be activated for the first time. Something like:<br>
><br>
> "In this section, we'll setup Seam Faces and use it to map URLs to JSF views. We'll also use more features of Seam XXX that you configured in the last section."<br>
><br>
> I think you can re-purpose the existing content into this new structure rather easily.<br>
><br>
> Let me know if you need more specific feedback.<br>
><br>
> -Dan<br>
><br>
> p.s. I also think that this structure will make the tutorial a lot more fun to write.<br>
><br>
> --<br>
> Dan Allen<br>
> Principal Software Engineer, Red Hat | Author of Seam in Action<br>
> Registered Linux User #231597<br>
><br>
> <a href="http://www.google.com/profiles/dan.j.allen#about" target="_blank">http://www.google.com/profiles/dan.j.allen#about</a><br>
> <a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
> <a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> seam-dev mailing list<br>
> <a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br>
<br>
_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jordan Ganoff<br>
</div>