<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" version="2.0">
  <channel>
    <title>ÜberConf</title>
    <link>http://uberconf.com</link>
    <description>ÜberConf</description>
    <item>
      <title>Why an Agile Project Manager is Not a Scrum Master</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/02/why_an_agile_project_manager_is_not_a_scrum_master</link>
      <description>&lt;p&gt;A reader asked why the lifecycle in &lt;a href="http://www.jrothman.com/blog/mpd/2012/01/agile-lifecycles-for-geographically-distributed-teams-part-1.html" target="_blank"&gt;Agile Lifecycles for Geographically Distributed Teams, Part 1&lt;/a&gt; is not Scrum. It&amp;#8217;s not Scrum for these reasons:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The project manager and product owner start the release planning and ask the team if the release planning is ok. The team does not generate the initial draft of release planning itself. In Scrum, the team is supposed to generate all of the planning itself.&lt;/li&gt;
&lt;li&gt;The checkin is different from the Scrum standup and the objectives of the checkin are different. I did suggest to the teams that if you want to create a cross-functional team where the functions are separated, if you ask people how they are working together, you might help them work together. Sometimes those questions work, and sometimes they don&amp;#8217;t. It depends on the team and whether the people want to work together.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I didn&amp;#8217;t mention retrospectives or backlogs in my examples so far, because I took them for granted. Yes, both examples of these teams do perform retrospectives and have product backlogs. They also have agile feature roadmaps, which are on my list to blog about.&lt;/p&gt;
&lt;p&gt;The real difference is the difference between a Scrum Master and an Agile Project Manager. A Scrum Master is not a project manager. A scrum master does not manage risk by him or herself. A project manager will take on the risk management responsibility without asking the team.&lt;/p&gt;
&lt;p&gt;A Scrum Master has only allegiance to the team. A project manager has responsibility to the team &lt;em&gt;and&lt;/em&gt; to the organization. That means that the project manager might feel torn when the organization pressures the project manager to do something stupid. (Although, I just downloaded the Scrum Guide, and the Scrum Master&amp;#8217;s responsibilities have grown considerably since I took my CSM with Jeff way back in 2006.)&lt;/p&gt;
&lt;p&gt;But agile provides transparency when the organization asks the agile project manager to do something stupid, so it&amp;#8217;s easier to retain your integrity as a project manager.&lt;/p&gt;
&lt;p&gt;Want to move a feature higher in the backlog? Change the feature roadmap with the product owner and then change the backlog with the product owner. I expect the agile project manager to collaborate on the feature roadmap and the backlog with the product owner.&lt;/p&gt;
&lt;p&gt;Want to change the velocity of the team to please some crazed manager? Both the Scrum Master or the agile project manager protects the team in these ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Explain that velocity is not a productivity metric&lt;/li&gt;
&lt;li&gt;Say No and explain why&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.itjoblog.co.uk/2010/07/agile-management-new-schedule-game.html" target="_blank"&gt;Play the Double Your Velocity &lt;/a&gt;schedule game&lt;/li&gt;
&lt;li&gt;Or choose some other way to remove this management obstacle.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Agile makes it easy to protect the team. The question is this: does the Scrum Master have other responsibilities in addition to protecting the team or is the Scrum Master full time? An agile project manager tends to be full time on a geographically distributed team. Even on a geographically distributed team, a Scrum Master is not seen as a full time position. Bless their tiny little hearts, managers don&amp;#8217;t seem to understand that transitioning to agile, especially for silo&amp;#8217;d distributed teams with different cultural norms is non-trivial. They will make room for a project manager, but a Scrum Master? Oh no. Makes me nuts.&lt;/p&gt;
&lt;p&gt;Cut corners on quality? I don&amp;#8217;t see how. The team doesn&amp;#8217;t meet the acceptance criteria on the stories and doesn&amp;#8217;t meet their criteria of done for an iteration, and can&amp;#8217;t show a demo. How does that serve anyone?&lt;/p&gt;
&lt;p&gt;Help a team go faster? This is the one place where a project manager &lt;em&gt;may&lt;/em&gt; have an edge over a Scrum Master, and that&amp;#8217;s only because of education. An agile project manager is a project manager. That means he or she is actively studying project management, which means he or she is studying lean also, looking into work in progress. (I realize many project managers do not actively study project management.) I have high expectations of an agile project manager, and that is to limit WIP, work in progress, to measure cumulative flow. But, Johanna, that&amp;#8217;s a lean project manager. Yes, that&amp;#8217;s correct. Why not use all of the tools available to us at all times? This is not to help a team actually go faster, but to provide feedback to the team about their WIP. If everyone takes a story at the start of the iteration and everyone always works on their own story, it&amp;#8217;s likely the team is at the slowest possible velocity. It&amp;#8217;s worth knowing that, or at least retrospecting about the data. A project manager will gather the data. A Scrum Master, especially one who was not a trained project manager, may not know to gather the data.&lt;/p&gt;
&lt;p&gt;I have nothing against Scrum Masters. Some of my good friends are CSTs (Certified Scrum Trainers). However, they are not all project managers, and have not been project managers, and have not studied the field of project management. Some have been. And, the real issue is this: In a two or three day workshop, they cannot convey to a person who may or may not have been a practicing project manager all of their project knowledge.&lt;/p&gt;
&lt;p&gt;Organizations do not always pick project managers to be Scrum Masters. And, with good reason. Some project managers are command-and-control project managers. I suspect back in my long-ago past, I was. I gave it up long ago because it didn&amp;#8217;t work. Some people never gave up command-and-control project management. Those people are not good project managers for agile projects. They are terrible project managers for geographically distributed projects, where you must work through influence.&lt;/p&gt;
&lt;p&gt;You can have self-managing teams that are geographically distributed. You can have self-directed teams that are geographically distributed. But, they don&amp;#8217;t start that way. They evolve into self-directed and self-managing teams. They start as management-led teams.&lt;/p&gt;
&lt;p&gt;And, especially when they are silo&amp;#8217;d teams, they need the coordination of a project manager, someone who will manage the risk between the silos, and someone who has the organizational backing, and yes, someone who has the allegiance to the organization to say, &amp;#8220;We need to do this project&amp;#8221; to write the project charter.&lt;/p&gt;
&lt;p&gt;In a geographically distributed team, the agile project manager writes the project charter either with the team, or as a strawman for the people to edit and approve. Shane and I recommend that the people get together to write it together. We like it if people get together in person. We know how rarely that happens. (Penny wise, pound foolish.) So we teach people how to write a project charter when they are divided in space.&lt;/p&gt;
&lt;p&gt;Because until there is a project charter, there is no organizing principle for the silo&amp;#8217;d teams. Those developers in France, testers in Belarus, product managers and project manager in San Francisco, they all need something to coalesce around. The charter, which includes the project vision provides that. The iterations provide the project heartbeat.&lt;/p&gt;
&lt;p&gt;So, that&amp;#8217;s why I don&amp;#8217;t think &lt;a href="http://www.jrothman.com/blog/mpd/2012/01/agile-lifecycles-for-geographically-distributed-teams-part-1.html" target="_blank"&gt;Agile Lifecycles for Geographically Distributed Teams, Part 1&lt;/a&gt; is Scrum. It&amp;#8217;s close, but no cigar. I respect Ken and Jeff&amp;#8217;s work too much to call it Scrum when it&amp;#8217;s not.&lt;/p&gt;
&lt;p&gt;Now that I&amp;#8217;m mostly recovered from my cold, I can continue the series about lifecycles.&lt;/p&gt;
&lt;p&gt;(Want to learn to work more effectively on your geographically distributed team? Join Shane Hastie and me in a &lt;a href="../../../2012/01/working-effectively-in-geographically-distributed-agile-project-teams/" target="_blank"&gt;workshop&lt;/a&gt; April 17-18, 2012.)&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=l5rftu71S1Q:IblcfQgxFlo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=l5rftu71S1Q:IblcfQgxFlo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=l5rftu71S1Q:IblcfQgxFlo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=l5rftu71S1Q:IblcfQgxFlo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=l5rftu71S1Q:IblcfQgxFlo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=l5rftu71S1Q:IblcfQgxFlo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=l5rftu71S1Q:IblcfQgxFlo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=l5rftu71S1Q:IblcfQgxFlo:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/l5rftu71S1Q" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 01 Feb 2012 10:01:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11105</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>LinkedIn Etiquette</title>
      <link>http://uberconf.com/blog/howard_lewis_ship/2012/01/linkedin_etiquette</link>
      <description>&lt;p&gt;I've used &lt;a href="http://linkedin.com"&gt;LinkedIn&lt;/a&gt; for many years now, long before I joined Facebook ... I liked the concept of never losing contact information with business contacts and technologist. It just seemed like a good idea (though I do sometimes wonder &lt;a href="http://www.youtube.com/watch?v=NcfXij6t4LA"&gt;if LinkedIn has any particular purpose&lt;/a&gt;).
&lt;p&gt;I tend to only connect with people I've met in person, or at least talked to on the phone.
&lt;p&gt;One thing that drives me crazy about LinkedIn is that you aren't forced to customize the message. As far as I'm concerned, the default message is like no message at all, and its a sign that you are just trolling for contacts. Just like you should always write a cover letter for a resume.
&lt;p&gt;So the first rule of LinkedIn is: &lt;strong&gt;always customize the message&lt;/strong&gt;. You chances of a connection go up significantly (at least with me) ... and with the default message, your chances drop down to near zero.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4110180-3214990755545065639?l=tapestryjava.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/TapestryCentral/~4/7DjI04zp4n0" height="1" width="1"/&gt;</description>
      <pubDate>Fri, 27 Jan 2012 10:07:08 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-4110180.post-3214990755545065639</guid>
      <dc:creator>Howard Lewis Ship</dc:creator>
    </item>
    <item>
      <title>Tapestry Advantages</title>
      <link>http://uberconf.com/blog/howard_lewis_ship/2012/01/tapestry_advantages</link>
      <description>&lt;p&gt;A summary of a &lt;a href="http://tapestry.1045711.n5.nabble.com/Stuts-VS-Tapestry-I-need-some-ammo-td5432282.html"&gt;discussion about the advantages of Tapestry over Struts&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;Exceptional exception reporting&lt;/li&gt;
&lt;li&gt;Significantly less code&lt;/li&gt;
&lt;li&gt;Live class reloading&lt;/li&gt;
&lt;li&gt;Sensible defaults, especially for &lt;a href="http://en.wikipedia.org/wiki/SEO"&gt;SEO&lt;/a&gt;-friendly URLs&lt;/li&gt;
&lt;li&gt;Great community&lt;/li&gt;
&lt;li&gt;Flexibility and customizability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Interestingly, the quality of Tapestry's documentation was mentioned ... favorably! Between the revised &lt;a href="http://tapestry.apache.org"&gt;home page&lt;/a&gt;, and &lt;a href="http://jumpstart.doublenegative.com.au/home.html"&gt;Tapestry JumpStart&lt;/a&gt; (and &lt;a href="http://blog.tapestry5.de/index.php/2011/09/23/publishing-tapestry-5-in-action-book-on-my-own/"&gt;Igor's coming book&lt;/a&gt;), I think we're headed in the right direction in terms of documentation going from a liability to an asset.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4110180-3557656971524285189?l=tapestryjava.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/TapestryCentral/~4/Rw7zKtUFgjI" height="1" width="1"/&gt;</description>
      <pubDate>Thu, 26 Jan 2012 12:26:50 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-4110180.post-3557656971524285189</guid>
      <dc:creator>Howard Lewis Ship</dc:creator>
    </item>
    <item>
      <title>Github Ribbons in CSS</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/github_ribbons_in_css</link>
      <description>&lt;p&gt;&lt;img style="float: right;" src="/blog/assets/content/ribbon.png" alt="" width="305" height="179" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com"&gt;Github&lt;/a&gt; has these &lt;a href="https://github.com/blog/273-github-ribbons"&gt;cool ribbon images&lt;/a&gt; that you can use if you want to encourage forking your project on your site. They're great and I wanted to use them on a little project I am working on. However, one of my goals was not to use any images, but rather produce all display elements with CSS. &lt;/p&gt;
&lt;p&gt;It was a little bit of trial and error but I got it working. Basically you do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a link in a div with an id of "banner"&lt;/li&gt;
&lt;li&gt;Force div#banner to be 149px x 149px.&lt;/li&gt;
&lt;li&gt;Set overflow to "hidden"&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="clear: both"&gt;This creates a square display area that won't show things that stretch out past the bounds of the box.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create an A link&lt;/li&gt;
&lt;li&gt;Tilt it using a CSS transform&lt;/li&gt;
&lt;li&gt;Use relative positioning to pull the ribbon into place&lt;/li&gt;
&lt;li&gt;Use CSS shadows to tweak the text and ribbon shadows&lt;/li&gt;
&lt;li&gt;Finally I use a CSS gradient in the background of the ribbon to give it the bands that run along the edge.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;script src="https://gist.github.com/1679040.js"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p style="clear: both"&gt;&lt;strong&gt;Issues&lt;/strong&gt;:&lt;/p&gt;
&lt;ul style="clear: both"&gt;
&lt;li&gt;It's not a pixel perfect representation. &lt;/li&gt;
&lt;li&gt;It doesn' work on IE before 9. It doesn't appear at all. &lt;/li&gt;
&lt;/ul&gt;
&lt;p style="clear: both"&gt;I'm not sure if I'm going to use this. I'll sound judgmental here, but the fact that it doesn't show up on IE less than 9 seems like a good thing. Do I want a developer on my project that isn't using the latest browser? Probably not. &lt;/p&gt;
&lt;p style="clear: both"&gt;&lt;strong&gt;Demo&lt;/strong&gt;&lt;br /&gt;&lt;a href="/examples/ribbon/"&gt;See the live demo here.&lt;/a&gt;&lt;/p&gt;
&lt;p style="clear: both"&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;
&lt;p style="clear: both"&gt;A couple people pointed out that there was a weird doubling of the letters on their browser (Chrome on Windows, and Safari on iPad.) Looks like it was caused by a slight text-shadow I had on the text. The text on the original banner has some anti-aliasing going on, and on some browsers, the text shadow helps it look a little smoother, but on others you get that doubling. So I've removed the text shadow.  Display should be a little more consistent. &lt;/p&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:55:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/github-ribbons-in-css</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>Agile Lifecycles for Geographically Distributed Teams, Part 2</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/01/agile_lifecycles_for_geographically_distributed_teams_part_2</link>
      <description>&lt;h2&gt;Example 2: Using a Project Manager with Kanban, Silo&amp;#8217;d Teams&lt;/h2&gt;
&lt;p&gt;This is a product development organization with developers in Italy, testers in India, more developers in New York, product owners and project managers in California.&lt;/p&gt;
&lt;p&gt;This organization first tried iterations, but the team could never get to done. The problem was that the stories were too large. Normally I suggest smaller iterations, but one of the developers suggested they move to kanban.&lt;/p&gt;
&lt;p&gt;The New York developers had a problem biting off more than they could chew. So nothing moved across their board. The Italy developers had a board where the work did move across the board. The teams took pictures of their boards every day and shared the work across a project-based wiki. That allowed the New York-based developers to see the work move across the Italy board. And, that encouraged the New Yorkers to call the Italians and ask some questions. That helped the New Yorkers to change the size of their work by working with the product owners.&lt;/p&gt;
&lt;p&gt;Now, why did the New Yorkers have such trouble originally? Because the developers &amp;#8220;knew better&amp;#8221; than the product owners, so they changed the stories into architectural features when they had originally received them. (Now they don&amp;#8217;t. They leave the stories as real stories.)&lt;/p&gt;
&lt;p&gt;Release planning: Management in California plan with agile roadmaps. They have features planned specifically week-by-week for the next 6 weeks, and have more of a quarter-by-quarter approach after that.&lt;/p&gt;
&lt;p&gt;Iteration planning: No iteration planning because they are using kanban.&lt;/p&gt;
&lt;p&gt;Daily commitment: No daily commitment needed because they use kanban. They do have a checkin a few times a week with each other as a technical team to make sure they don&amp;#8217;t create bottlenecks and that they respect the WIP (work in progress) limits.&lt;/p&gt;
&lt;p&gt;At one point, both the New York and Italy developer teams created automated tests so that the testers could catch up and stay caught up with regression tests. They add a story like that every couple of weeks, and they are paying down their automated testing debt.&lt;/p&gt;
&lt;p&gt;The Project manager keeps an eye on the WIP, work in progress. Project manager also shepherds the product owner into keeping the queue of incoming work full and properly ranked. The product owner is notorious for changing the incoming work queue &lt;em&gt;all&lt;/em&gt; the time. Project manager makes sure the team does retrospectives and is a little unclear how to do them in such a distributed team. The project manager is not so sure their retrospectives are working, and has started an obstacle list, to make sure the team has transparency for their obstacles.&lt;/p&gt;
&lt;p&gt;Measurements: cumulative flow, average time to release a feature into the product.&lt;/p&gt;
&lt;p&gt;(Want to learn to work more effectively on your geographically distributed team? Join Shane Hastie and me in a &lt;a href="http://www.jrothman.com/2012/01/working-effectively-in-geographically-distributed-agile-project-teams/" target="_blank"&gt;workshop&lt;/a&gt; April 17-18, 2012.)&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Tsz7O6IOAko:F9o-L0VxMWs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Tsz7O6IOAko:F9o-L0VxMWs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Tsz7O6IOAko:F9o-L0VxMWs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=Tsz7O6IOAko:F9o-L0VxMWs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Tsz7O6IOAko:F9o-L0VxMWs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=Tsz7O6IOAko:F9o-L0VxMWs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Tsz7O6IOAko:F9o-L0VxMWs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Tsz7O6IOAko:F9o-L0VxMWs:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/Tsz7O6IOAko" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 25 Jan 2012 10:06:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11076</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>Tapestry 5.4: Focus on JavaScript</title>
      <link>http://uberconf.com/blog/howard_lewis_ship/2012/01/tapestry_5_4_focus_on_javascript_1</link>
      <description>&lt;div&gt;
  &lt;p&gt;
       Tapestry 5.3.1 is out in the wild ... and if Tapestry is to
       stay relevant, Tapestry 5.4 is going to need to be something
       quite (r)evolutionary.
  &lt;/p&gt;

&lt;blockquote&gt;
  There was some confusion on the Tapestry developer mailing list in
  advance of this blog post; I'd alluded that it was coming, and some
  objected to such pronouncements coming out fully formed, without
  discussion. In reality, this is just a distillation of ideas, a
  starting point, and not a complete, finalized solution. If it's more
  detailed than some discussions of Tapestry's evolution in the past,
  that just means that the mailing list discussion and eventual
  implementation will be that much better informed.
&lt;/blockquote&gt;
  &lt;p&gt;
    In posts and other conversations, I've alluded to my vision for
    Tapestry 5.4. As always, the point of Tapestry is to allow
    developers to &lt;em&gt;code less, deliver more&lt;/em&gt;, and that has been
    the focus of Tapestry on the server side: everything drives that
    point: terseness of code and templates, live class reloading, and
    excellent feedback are critical factors there. Much of what went
    into Tapestry 5.3 strengthened those points ... enhancements to
    Tapestry's meta-programming capabilities, improvements to the IoC
    container, and reducing Tapestry's memory footprint in a number of
    ways. I have one client reporting a 30% reduction in memory
    utilization, and another reporting a 30 - 40% improvement in
    execution speed.
  &lt;/p&gt;

  &lt;p&gt;
    Interestingly, I think that for Tapestry to truly stay relevant,
    it needs to shift much, much, more of the emphasis to the client
    side. For some time, Tapestry has been walking a fine line with
    regards to the critical question of &lt;em&gt;where does the application
    execute?&lt;/em&gt;  Pre-Ajax, that was an easy question: the
    application runs on the server, with at most minor JavaScript
    tricks and validations on the client.  As the use of Ajax has
    matured, and customer expectations for application behavior in the
    browser have expanded, it is no longer acceptable to say that
    Tapestry is page based, with limited Ajax
    enhancements. Increasingly, application flow and business logic
    need to execute in the browser, and the server-side's role is to
    orchestrate and facilitate the client-side application, as well as
    to act as a source and sink of data ultimately stored in a
    database.
  &lt;/p&gt;

  &lt;p&gt;
    As Tapestry's server-side has matured, the client side has not
    kept sufficient pace. Tapestry does include some excellent
    features, such as how it allows the server-side to drive
    client-side JavaScript in a modular and efficient way. However,
    that is increasingly insufficient ... and the tension caused by
    give-and-take between client-side and server-side logic has grown
    with each release.
  &lt;/p&gt;

  &lt;p&gt;
    Nowhere is this more evident than in how Tapestry addresses HTML
    forms. This has always been a tricky issue in Tapestry, because
    the dynamic rendering that can occur needs to be matched by
    dynamic form submission processing. In Tapestry, the approach is
    to serialize into the form instructions that will be used when the
    form is submitted (see the &lt;code&gt;store()&lt;/code&gt; method of the
    &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/FormSupport.html"&gt;FormSupport&lt;/a&gt;
    API). These instructions are used during the processing of the
    form submission request to re-configure the necessary components,
    and direct them to read their query parameters, perform
    validations, and push updated values back into server-side objects
    properties. If you've ever wondered what
    the &lt;code&gt;t:formdata&lt;/code&gt; hidden input field inside every
    Tapestry forms is about ... well, now you know: it's a serialized
    stream of Java objects, GZipped and MIME encoded.

  &lt;/p&gt;
  &lt;p&gt;
    However, relative to many other things in Tapestry, this is a bit
    clumsy and limited. You start to notice this when you see the
    tepid response to questions on the mailing list such as "&lt;em&gt;how
    to do cross-field validation?&lt;/em&gt;" Doing more complicated things,
    such as highly dynamic form layouts, or forms with even marginal
    relationships between fields, can be problematic (though still
    generally possible) ... but it requires a bit too much internal
    knowledge of Tapestry, and the in-browser results feel a bit
    kludgy, a bit clumsy. Tapestry starts to feel like it is getting
    in the way, and that's never acceptible.
  &lt;/p&gt;
  &lt;p&gt;
    Simply put, Tapestry's abstractions on forms and fields is
    both &lt;a href="http://en.wikipedia.org/wiki/Leaky_abstraction"&gt;leaky&lt;/a&gt;
    and insufficient. Tapestry is trying to do too much, and simply
    can't keep up with modern, reasonable demands in terms of
    responsiveness and useability inside the client. We've become used
    to pages rebuilding and reformatting themselves even while we're
    typing.  For Tapestry to understand how to process the form
    submission, it needs a model of what the form looks like on the
    client-side, and it simply doesn't have it. There isn't an
    effective way to do so without significantly restricting what is
    possible on the client side, or requiring much more data to be
    passed in requests, or stored server-side in the session.
  &lt;/p&gt;
  &lt;p&gt;
    The primary issue here is that overall form submission cycle,
    especially combined with Tapestry's need to serialize commands
    into the form (as the hidden &lt;code&gt;t:formdata&lt;/code&gt; field). Once
    you add Ajax to this mix, where new fields and rules are created
    dynamically (on the server side) and installed into the
    client-side DOM ... well, it gets harder and harder to manage.
    Add in a few more complications (such as a mix of transient and
    persistent Hibernate entities, or dynamic creation of sub-entities
    and relationships) into a form, it can be a brain burner getting
    Tapestry to do the right thing when the form is submitted: you
    need to understand exactly how Tapestry processes
    that &lt;code&gt;t:formdata&lt;/code&gt; information, and how to add your own
    callbacks into the callback stream to accomplish just exactly the
    right thing at just exactly the right time. Again, this is not the
    Tapestry way, where things are expected to &lt;em&gt;just work&lt;/em&gt;.
  &lt;/p&gt;
  &lt;p&gt;
    Further, there is some doubt about even the desirability of the
    overall model. In many cases, it makes sense to batch together a
    series of changes to individual properties ... but in many more,
    it is just as desirable for individual changes to filter back to
    the server (and the database) as the user
    navigates. Form-submit-and-re-render is
    a &lt;a href="http://en.wikipedia.org/wiki/IBM_3270"&gt;green screen&lt;/a&gt;
    style of user interaction. Direct interaction is the expectation
    now, and that's something Tapestry should embrace.
  &lt;/p&gt;
  &lt;p&gt;
    What's the solution, then? Well, it's still very much a moving
    target. The goal is to make creating client-side JavaScript
    libraries easier, to make it easier to integrate with libraries such
    as &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt; (and its vast library
    of extensions), make things simpler and more efficient on the
    client side, and not sacrifice the features that make Tapestry fun
    and productive in the first place.&lt;/p&gt;

  &lt;h3&gt;Overall Vision&lt;/h3&gt;

  &lt;p&gt;The overall vision breaks down into a number of steps:&lt;/p&gt;

  &lt;ul&gt;
    &lt;li&gt;Reduce or remove outside dependencies&lt;/li&gt;
    &lt;li&gt;Modularize JavaScript&lt;/li&gt;
    &lt;li&gt;Change page initializations to use modules&lt;/li&gt;
    &lt;li&gt;Embrace client-side controller logic&lt;/li&gt;
  &lt;/ul&gt;

  &lt;p&gt;
    Of course, all of these steps depend on the others, so there isn't
    a good order to discuss them.
  &lt;/p&gt;

  &lt;h3&gt;Reducing and removing outside dependencies&lt;/h3&gt;

  &lt;p&gt;
    Tapestry's client-side strength has always been lots of "out of
    the box" functionality: client-side validation, Zones and other
    Ajax-oriented behaviors, and a well-integrated system for
    performing page-level initializations.
  &lt;/p&gt;
  &lt;p&gt;
    However, this strength is also a weakness, since that out of the
    box behavior is too tightly tied to the &lt;a href="http://prototypejs.org/"&gt;Prototype&lt;/a&gt; and
    &lt;a href="http://script.aculo.us/"&gt;Scriptaculous&lt;/a&gt; libraries ... reasonable choices in 2006, but
    out-of-step with the industry today. Not just in terms of the
    momentum behind jQuery, but also in terms of very different
    approaches, such
    as &lt;a href="http://www.sencha.com/"&gt;Sencha/ExtJS&lt;/a&gt; and
    others.&lt;/p&gt;

  &lt;p&gt;
    It was a conscious decision in 2006 to not attempt to create an
    abstraction layer before I understood all the abstractions. I've
    had the intermediate time to embrace those abstractions. Now the
    big problem is momentum and backwards compatibility.&lt;/p&gt;

  &lt;p&gt;
    Be removing unnecessary behaviors, such as animations, we can
    reduce Tapestry's client-side needs. Tapestry needs to be able
    to &lt;strong&gt;attach event handlers&lt;/strong&gt; to elements. It needs to
    be able to easily &lt;strong&gt;locate elements&lt;/strong&gt; via unique ids,
    or via &lt;strong&gt;CSS selectors&lt;/strong&gt;. It needs to be able
    to &lt;strong&gt;run Ajax requests&lt;/strong&gt; and handle the responses,
    including &lt;strong&gt;dynamic updates to elements&lt;/strong&gt;.&lt;/p&gt;
  &lt;p&gt;

    &lt;p&gt;All of these things are reasonable to abstract, and by making
    it even easier to execute JavaScript as part of a page render or
    page update
    (&lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/ajax/AjaxResponseRenderer.html"&gt;something
    already present in Tapestry 5.3&lt;/a&gt;), currently built-in features
    (such as animations) can be delegated to the application, which is
    likely a better choice in any case.&lt;/p&gt;

  &lt;h3&gt;Modularizing JavaScript&lt;/h3&gt;

  &lt;p&gt;
    Tapestry has always been careful about avoiding client-side
    namespace polution.  Through release 5.2, most of Tapestry's
    JavaScript was encapulated in the &lt;code&gt;Tapestry&lt;/code&gt; object. In
    Tapestry 5.3, a second object, &lt;code&gt;T5&lt;/code&gt; was introduced with
    the intention that it gradually replace the
    original &lt;code&gt;Tapestry&lt;/code&gt; object (but this post represents a
    change in direction).&lt;/p&gt;
  &lt;p&gt;
    However, that's not enough. Too often, users have created in-line
    JavaScript, or JavaScript libraries that defined "bare" variables
    and functions (that are ultimately added to the
    browser's &lt;code&gt;window&lt;/code&gt; object). This causes problems,
    including collisions between components (that provide competing
    definitions of objects and functions), or behavior that varies
    depending on whether the JavaScript was added to the page as part
    of a full-page render, or via an Ajax partial page render.&lt;/p&gt;
  &lt;p&gt;
    The right approach is to encourage and embrace some form of
    &lt;a href="http://yuiblog.com/blog/2007/06/12/module-pattern/"&gt;JavaScript
      module architecture&lt;/a&gt;, where there are no explicit global
    variables or functions, and that all JavaScript is evaluated
    inside a function, allowing for private variables and
    functions.&lt;/p&gt;
  &lt;p&gt;
    Currently, I'm thinking in terms of &lt;a href="http://requirejs.org/"&gt;RequireJS&lt;/a&gt; as
    the way to organize the JavaScript. Tapestry would faciliate
    organizing its own code into modules, as well as
    application-specific (or even page-specific) JavaScript
    modules. This would mean that de-referencing the &lt;code&gt;T5&lt;/code&gt;
    object would no longer occur (outside of some kind of temporary
    compatibility mode).&lt;/p&gt;
  &lt;p&gt;
    For example, clicking a button inside some container element
    might, under 5.3, publish an event using Tapestry's client-side
    publish/subscribe system. In the following example, the click
    events bubble up from the buttons (with the &lt;code&gt;button&lt;/code&gt;
    CSS class name) to a container element, and are then published
    under the topic name &lt;code&gt;button-clicked&lt;/code&gt;.
  &lt;/p&gt;
  &lt;script src="https://gist.github.com/1603920.js?file=53pubsubexample.js"&gt;&lt;/script&gt;
  &lt;p&gt;
    Consider this an abbreviated example, as it doesn't explain where
    the &lt;code&gt;element&lt;/code&gt; variable is defined or initialized; the
    important part is the interaction with Tapestry's client-side
    library: the reference to the &lt;code&gt;T5.pubsub.publish&lt;/code&gt; function.
  &lt;/p&gt;
  &lt;p&gt;
    Under 5.4, using the RequireJS &lt;code&gt;require&lt;/code&gt; function, this
    might be coded instead as:
  &lt;/p&gt;
  &lt;script src="https://gist.github.com/1603930.js?file=54pubsubexample.js"&gt;&lt;/script&gt;
  &lt;p&gt;
    Here, the &lt;code&gt;t5/pubsub&lt;/code&gt; module will be loaded by RequireJS and
    passed as a parameter into the function, which is automatically
    executed. So, this supports JavaScript modularization, and
    leverages RequireJS's ability to load modules on-the-fly, 
    as needed.
  &lt;/p&gt;
  &lt;p&gt;
    Notice the difference between the two examples; in the first
    example, coding as a module was &lt;em&gt;optional&lt;/em&gt; (but
    recommended), since the necessary &lt;code&gt;publish()&lt;/code&gt; function
    was accessible either way. In the 5.4 example, coding using
    JavaScript modules is virtually &lt;em&gt;required&lt;/em&gt;: the anonymous
    function passed to &lt;code&gt;require()&lt;/code&gt; is effectively a module,
    but its only through the use of &lt;code&gt;require()&lt;/code&gt; (or
    RequireJS's &lt;code&gt;define()&lt;/code&gt;) that the &lt;code&gt;publish()&lt;/code&gt;
    function can be accessed. &lt;/p&gt;
  &lt;p&gt;
    This is both the carrot and the stick; the carrot is how easy it
    is to declare dependencies and have them passed in to your
    function-as-a-module. The stick is that (eventually)
    the &lt;em&gt;only&lt;/em&gt; way to access those dependencies is by providing
    a module and declaring dependencies.
  &lt;/p&gt;
  &lt;h3&gt;Change page initializations to use modules&lt;/h3&gt;

  &lt;p&gt;
    Tapestry has a reasonably sophisticated system for allowing
    components to describe their JavaScript requirements as they
    render, in the form of
    the &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/javascript/JavaScriptSupport.html"&gt;JavaScriptSupport&lt;/a&gt;
    environmental (an environmental is a kind of
    per-thread/per-request service object).  Methods on
    JavaScriptSupport allow a component to request that a JavaScript
    library be imported in the page (though this is most commonly
    accomplished using
    the &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/Import.html"&gt;Import&lt;/a&gt;
    annotation), and to request the &lt;em&gt;initialization functions&lt;/em&gt;
    get executed.&lt;/p&gt;
  &lt;p&gt;
    Part of Tapestry's Ajax support is that in an Ajax request, the
    JavaScriptSupport methods can still be invoked, but a completely
    different implementation is responsible for integrating those
    requests into the overall reply (which in an Ajax request is a JSON object, rather
    than a simple stream of HTML).
  &lt;/p&gt;
  &lt;p&gt;
    Here's an example component from the TapX library:&lt;/p&gt;

&lt;script src="https://gist.github.com/1673763.js?file=Expando.java"&gt;&lt;/script&gt;

  &lt;p&gt;
    The @Import annotation directs that a stack (a set of related
    JavaScript libraries, defined elsewhere) be imported into the
    page; alternately, the component could import any number of
    specific JavaScript files, located either in the web application
    context folder, or on the classpath.&lt;/p&gt;
  &lt;p&gt;
    Inside the &lt;code&gt;afterRender()&lt;/code&gt; method, the code constructs
    a &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/json/JSONObject.html"&gt;JSONObject&lt;/a&gt;
    of data needed on the client side to perform the operation. The
    call to &lt;code&gt;addInitializerCall&lt;/code&gt; references a function by
    name: this function must be added to
    the &lt;code&gt;T5.Initializers&lt;/code&gt; namespace object.  Notice the
    naming: &lt;code&gt;tapxExpando&lt;/code&gt;: a prefix to identify the
    library, and to prevent collisions with any other application or
    library that also added its own functions to
    the &lt;code&gt;T5.initializers&lt;/code&gt; object.
  &lt;/p&gt;
  &lt;p&gt;
    The JavaScript library includes the function that will be invoked:
  &lt;/p&gt;
  &lt;script src="https://gist.github.com/1673810.js?file=tapx-core.js"&gt;&lt;/script&gt;
  &lt;p&gt;
    Under 5.4, this would largely be the same except:
  &lt;/p&gt;
  &lt;ul&gt;
    &lt;li&gt;There will be a specific Java package for each library (or the
      application) to store library modules.&lt;/li&gt;
    &lt;li&gt;The JavaScriptSupport environmental will have new methods to
      reference a function, inside a module, to invoke.&lt;/li&gt;
      &lt;li&gt;Stacks will consist not just of individual libraries, but
 also modules, following the naming and packaging
 convention.&lt;/li&gt;
  &lt;/ul&gt;

  &lt;h3&gt;Embrace client-side controller logic&lt;/h3&gt;

&lt;p&gt;
  The changes discussed so far only smooth out a few rough edges;
  they still position Tapestry code, running on the server, as driving
  the entire show. 
 &lt;/p&gt;

&lt;p&gt;
  As alluded to earlier; for any sophisticated user interface, the
  challenge is to coordinate the client-side user interface (in terms
  of form fields, DOM elements, and query parameters) with the
  server-side components; this is encoded into the
  hidden &lt;code&gt;t:formdata&lt;/code&gt; field. However, it is my opinion that
  for any dynamic form, Tapestry is or near the end of the road for
  this approach.&lt;/p&gt;
&lt;p&gt;Instead, it's time to embrace client-logic, written in JavaScript,
  in the browser. Specifically, break away from HTML forms, and
  embrace a more dynamic structure, one where "submitting" a form
  always works through an Ajax update ... and what is sent is not a
  simple set of query parameters and values, but a JSON representation
  of what was updated, changed, or created.
&lt;/p&gt;
&lt;p&gt;
  My specific vision is to
  integrate &lt;a href="http://documentcloud.github.com/backbone/"&gt;Backbone.js&lt;/a&gt;
  (or something quite similar), to move this logic solidly to the
  client side. This is a fundamental change: one where the client-side
  is free to change and reconfigure the UI in any way it likes, and is
  ultimately responsible for packaging up the completed data and
  sending it to the server.
&lt;/p&gt;
&lt;p&gt;
  When you are used to
  the &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/BeanEditForm.html"&gt;BeanEditForm&lt;/a&gt;
  component, this might feel like a step backwards, as you end up
  responsible for writing a bit more code (in JavaScript) to
  implement the user interface, input validations, and relationships
  between fields. However, as fun as BeanEditForm is, the declarative
  approach to validation on the client and the server has proven to be
  limited and limiting, especially in the face of cross-field
  relationships. We could attempt to extend the declarative nature,
  introducing rules or even scripting languages to establish the
  relationships ... or we could move in a situation that puts the
  developer back in the driver's seat.&lt;/p&gt;
&lt;p&gt;
  Further, there are some that will be concerned that this is a
  violation of
  the &lt;a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself"&gt;DRY
  pricipal&lt;/a&gt;; however I subscribe to different philosophy that
  client-side and server-side validation are fundamentally different
  in any case; this is discussed in an excellent
  &lt;a href="http://blog.ianbicking.org/2011/03/30/js-on-server-and-client-is-not-a-big-deal/"&gt;blog
  post by Ian Bickling&lt;/a&gt;.

&lt;p&gt;
  Certainly there will be components and services to assist with this
  process, in term of extracting data into JSON format, and converting
  JSON data into a set of updates to the server-side objects. There's
  also a number of security concerns that necessitate careful
  validation of what comes up from the client in the Ajax request.
  Further, there will be new bundled libraries to make it easier to
  build these dynamic user interfaces.&lt;/p&gt;

&lt;h3&gt;Conclusion&lt;/h3&gt;

&lt;p&gt;
  In this vision of Tapestry's future, the server-side framework
  starts to shift from the focus of all behavior to
  the &lt;em&gt;facilitator&lt;/em&gt;: it paints the broad stokes on the server,
  but the key interactions end up working exclusively on the
  client. &lt;/p&gt;
&lt;p&gt;
  I'm sure this view will be controversial: after all, on the surface,
  what the community really wants is just "jQuery instead of
  Prototype". However, all of the factors described in the above
  sections are, I feel, critical to keeping Tapestry relevant by
  embracing the client-side in the way that the client-side
  demands.&lt;/p&gt;

&lt;p&gt;
  I think this change in focus is a big deal; I think it is also
  necessary for Tapestry to stay relevant in the medium to long
  term. I've heard from many individual developers (not necessarily
  Tapestry users) that what they really want is "just jQuery and a
  restful API"; I think Tapestry can be that restful API, but by
  leveraging many of Tapestry's other strengths, it can be a lot more.
  Building something right on the metal feels empowering ... until you
  hit all the infrastructure that Tapestry provides, including
  best-of-class exception reporting, on-the-fly JavaScript aggregation
  and minimization, and (of course) live class reloading during
  development.
java&lt;/p&gt;  
  &lt;p&gt;
    I'm eager to bring Tapestry to the forfront of web application
  development ... and to deliver it fast!  Monitor the Tapestry
  developer mailing list to see how this all plays out.&lt;/p&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4110180-7447306489952674714?l=tapestryjava.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/TapestryCentral/~4/mlpJ4i8ShSA" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 25 Jan 2012 09:46:00 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-4110180.post-7447306489952674714</guid>
      <dc:creator>Howard Lewis Ship</dc:creator>
    </item>
    <item>
      <title>Tapestry 5.4: Focus on JavaScript</title>
      <link>http://uberconf.com/blog/howard_lewis_ship/2012/01/tapestry_5_4_focus_on_javascript</link>
      <description>&lt;div&gt;
  &lt;p&gt;
       Tapestry 5.3.1 is out in the wild ... and if Tapestry is to
       stay relevant, Tapestry 5.4 is going to need to be something
       quite (r)evolutionary.
  &lt;/p&gt;

&lt;blockquote&gt;
  There was some confusion on the Tapestry developer mailing list in
  advance of this blog post; I'd alluded that it was coming, and some
  objected to such pronouncements coming out fully formed, without
  discussion. In reality, this is just a distillation of ideas, a
  starting point, and not a complete, finalized solution. If it's more
  detailed than some discussions of Tapestry's evolution in the past,
  that just means that the mailing list discussion and eventual
  implementation will be that much better informed.
&lt;/blockquote&gt;
  &lt;p&gt;
    In posts and other conversations, I've alluded to my vision for
    Tapestry 5.4. As always, the point of Tapestry is to allow
    developers to &lt;em&gt;code less, deliver more&lt;/em&gt;, and that has been
    the focus of Tapestry on the server side: everything drives that
    point: terseness of code and templates, live r2eloading, and
    excellent feedback are critical factors there. Much of what went
    into Tapestry 5.3 strengthened those points ... enhancements to
    Tapestry's meta-programming capabilities, improvements to the IoC
    container, and reducing Tapestry's memory footprint in a number of
    ways. I have one client reporting a 30% reduction in memory
    utilization, and another reporting a 30 - 40% improvement in
    execution speed.
  &lt;/p&gt;

  &lt;p&gt;
    Interestingly, I think that for Tapestry to truly stay relevant,
    it needs to shift much, much, more of the emphasis to the client
    side. For some time, Tapestry has been walking a fine line with
    regards to the critical question of &lt;em&gt;where does the application
    execute?&lt;/em&gt;  Pre-Ajax, that was an easy question: the
    application runs on the server, with at most minor JavaScript
    tricks and validations on the client.  As the use of Ajax has
    matured, and customer expectations for application behavior in the
    browser have expanded, it is no longer acceptable to say that
    Tapestry is page based, with limited Ajax
    enhancements. Increasingly, application flow and business logic
    need to execute in the browser, and the server-side's role is to
    orchestrate and facilitate the client-side application, as well as
    to act as a source and sink of data ultimately stored in a
    database.
  &lt;/p&gt;

  &lt;p&gt;
    As Tapestry's server-side has matured, the client side has not
    kept sufficient pace. Tapestry does include some excellent
    features, such as how it allows the server-side to drive
    client-side JavaScript in a modular and efficient way. However,
    that is increasingly insufficient ... and the tension caused by
    give-and-take between client-side and server-side logic has grown
    with each release.
  &lt;/p&gt;

  &lt;p&gt;
    Nowhere is this more evident than in how Tapestry addresses HTML
    forms. This has always been a tricky issue in Tapestry, because
    the dynamic rendering that can occur needs to be matched by
    dynamic form submission processing. In Tapestry, the approach is
    to serialize into the form instructions that will be used when the
    form is submitted (see the &lt;code&gt;store()&lt;/code&gt; method of the
    &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/FormSupport.html"&gt;FormSupport&lt;/a&gt;
    API). These instructions are used during the processing of the
    form submission request to re-configure the necessary components,
    and direct them to read their query parameters, perform
    validations, and push updated values back into server-side objects
    properties. If you've ever wondered what
    the &lt;code&gt;t:formdata&lt;/code&gt; hidden input field inside every
    Tapestry forms is about ... well, now you know: it's a serialized
    stream of Java objects, GZipped and MIME encoded.

  &lt;/p&gt;
  &lt;p&gt;
    However, relative to many other things in Tapestry, this is a bit
    clumsy and limited. You start to notice this when you see the
    tepid response to questions on the mailing list such as "&lt;em&gt;how
    to do cross-field validation?&lt;/em&gt;" Doing more complicated things,
    such as highly dynamic form layouts, or forms with even marginal
    relationships between fields, can be problematic (though still
    generally possible) ... but it requires a bit too much internal
    knowledge of Tapestry, and the in-browser results feel a bit
    kludgy, a bit clumsy. Tapestry starts to feel like it is getting
    in the way, and that's never acceptible.
  &lt;/p&gt;
  &lt;p&gt;
    Simply put, Tapestry's abstractions on forms and fields is
    both &lt;a href="http://en.wikipedia.org/wiki/Leaky_abstraction"&gt;leaky&lt;/a&gt;
    and insufficient. Tapestry is trying to do too much, and simply
    can't keep up with modern, reasonable demands in terms of
    responsiveness and useability inside the client. We've become used
    to pages rebuilding and reformatting themselves even while we're
    typing.  For Tapestry to understand how to process the form
    submission, it needs a model of what the form looks like on the
    client-side, and it simply doesn't have it. There isn't an
    effective way to do so without significantly restricting what is
    possible on the client side, or requiring much more data to be
    passed in requests, or stored server-side in the session.
  &lt;/p&gt;
  &lt;p&gt;
    The primary issue here is that overall form submission cycle,
    especially combined with Tapestry's need to serialize commands
    into the form (as the hidden &lt;code&gt;t:formdata&lt;/code&gt; field). Once
    you add Ajax to this mix, where new fields and rules are created
    dynamically (on the server side) and installed into the
    client-side DOM ... well, it gets harder and harder to manage.
    Add in a few more complications (such as a mix of transient and
    persistent Hibernate entities, or dynamic creation of sub-entities
    and relationships) into a form, it can be a brain burner getting
    Tapestry to do the right thing when the form is submitted: you
    need to understand exactly how Tapestry processes
    that &lt;code&gt;t:formdata&lt;/code&gt; information, and how to add your own
    callbacks into the callback stream to accomplish just exactly the
    right thing at just exactly the right time. Again, this is not the
    Tapestry way, where things are expected to &lt;em&gt;just work&lt;/em&gt;.
  &lt;/p&gt;
  &lt;p&gt;
    Further, there is some doubt about even the desirability of the
    overall model. In many cases, it makes sense to batch together a
    series of changes to individual properties ... but in many more,
    it is just as desirable for individual changes to filter back to
    the server (and the database) as the user
    navigates. Form-submit-and-re-render is
    a &lt;a href="http://en.wikipedia.org/wiki/IBM_3270"&gt;green screen&lt;/a&gt;
    style of user interaction. Direct interaction is the expectation
    now, and that's something Tapestry should embrace.
  &lt;/p&gt;
  &lt;p&gt;
    What's the solution, then? Well, it's still very much a moving
    target. The goal is to make creating client-side JavaScript
    libraries easier, to make it easier to integrate with libraries such
    as &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt; (and its vast library
    of extensions), make things simpler and more efficient on the
    client side, and not sacrifice the features that make Tapestry fun
    and productive in the first place.&lt;/p&gt;

  &lt;h3&gt;Overall Vision&lt;/h3&gt;

  &lt;p&gt;The overall vision breaks down into a number of steps:&lt;/p&gt;

  &lt;ul&gt;
    &lt;li&gt;Reduce or remove outside dependencies&lt;/li&gt;
    &lt;li&gt;Modularize JavaScript&lt;/li&gt;
    &lt;li&gt;Change page initializations to use modules&lt;/li&gt;
    &lt;li&gt;Embrace client-side controller logic&lt;/li&gt;
  &lt;/ul&gt;

  &lt;p&gt;
    Of course, all of these steps depend on the others, so there isn't
    a good order to discuss them.
  &lt;/p&gt;

  &lt;h3&gt;Reducing and removing outside dependencies&lt;/h3&gt;

  &lt;p&gt;
    Tapestry's client-side strength has always been lots of "out of
    the box" functionality: client-side validation, Zones and other
    Ajax-oriented behaviors, and a well-integrated system for
    performing page-level initializations.
  &lt;/p&gt;
  &lt;p&gt;
    However, this strength is also a weakness, since that out of the
    box behavior is too tightly tied to the &lt;a href="http://prototypejs.org/"&gt;Prototype&lt;/a&gt; and
    &lt;a href="http://script.aculo.us/"&gt;Scriptaculous&lt;/a&gt; libraries ... reasonable choices in 2006, but
    out-of-step with the industry today. Not just in terms of the
    momentum behind jQuery, but also in terms of very different
    approaches, such
    as &lt;a href="http://www.sencha.com/"&gt;Sencha/ExtJS&lt;/a&gt; and
    others.&lt;/p&gt;

  &lt;p&gt;
    It was a conscious decision in 2006 to not attempt to create an
    abstraction layer before I understood all the abstractions. I've
    had the intermediate time to embrace those abstractions. Now the
    big problem is momentum and backwards compatibility.&lt;/p&gt;

  &lt;p&gt;
    Be removing unnecessary behaviors, such as animations, we can
    reduce Tapestry's client-side needs. Tapestry needs to be able
    to &lt;strong&gt;attach event handlers&lt;/strong&gt; to elements. It needs to
    be able to easily &lt;strong&gt;locate elements&lt;/strong&gt; via unique ids,
    or via &lt;strong&gt;CSS selectors&lt;/strong&gt;. It needs to be able
    to &lt;strong&gt;run Ajax requests&lt;/strong&gt; and handle the responses,
    including &lt;strong&gt;dynamic updates to elements&lt;/strong&gt;.&lt;/p&gt;
  &lt;p&gt;

    &lt;p&gt;All of these things are reasonable to abstract, and by making
    it even easier to execute JavaScript as part of a page render or
    page update
    (&lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/ajax/AjaxResponseRenderer.html"&gt;something
    already present in Tapestry 5.3&lt;/a&gt;), currently built-in features
    (such as animations) can be delegated to the application, which is
    likely a better choice in any case.&lt;/p&gt;

  &lt;h3&gt;Modularizing JavaScript&lt;/h3&gt;

  &lt;p&gt;
    Tapestry has always been careful about avoiding client-side
    namespace polution.  Through release 5.2, most of Tapestry's
    JavaScript was encapulated in the &lt;code&gt;Tapestry&lt;/code&gt; object. In
    Tapestry 5.3, a second object, &lt;code&gt;T5&lt;/code&gt; was introduced with
    the intention that it gradually replace the
    original &lt;code&gt;Tapestry&lt;/code&gt; object (but this post represents a
    change in direction).&lt;/p&gt;
  &lt;p&gt;
    However, that's not enough. Too often, users have created in-line
    JavaScript, or JavaScript libraries that defined "bare" variables
    and functions (that are ultimately added to the
    browser's &lt;code&gt;window&lt;/code&gt; object). This causes problems,
    including collisions between components (that provide competing
    definitions of objects and functions), or behavior that varies
    depending on whether the JavaScript was added to the page as part
    of a full-page render, or via an Ajax partial page render.&lt;/p&gt;
  &lt;p&gt;
    The right approach is to encourage and embrace some form of
    &lt;a href="http://yuiblog.com/blog/2007/06/12/module-pattern/"&gt;JavaScript
      module architecture&lt;/a&gt;, where there are no explicit global
    variables or functions, and that all JavaScript is evaluated
    inside a function, allowing for private variables and
    functions.&lt;/p&gt;
  &lt;p&gt;
    Currently, I'm thinking in terms of &lt;a href="http://requirejs.org/"&gt;RequireJS&lt;/a&gt; as
    the way to organize the JavaScript. Tapestry would faciliate
    organizing its own code into modules, as well as
    application-specific (or even page-specific) JavaScript
    modules. This would mean that de-referencing the &lt;code&gt;T5&lt;/code&gt;
    object would no longer occur (outside of some kind of temporary
    compatibility mode).&lt;/p&gt;
  &lt;p&gt;
    For example, clicking a button inside some container element
    might, under 5.3, publish an event using Tapestry's client-side
    publish/subscribe system. In the following example, the click
    events bubble up from the buttons (with the &lt;code&gt;button&lt;/code&gt;
    CSS class name) to a container element, and are then published
    under the topic name &lt;code&gt;button-clicked&lt;/code&gt;.
  &lt;/p&gt;
  &lt;script src="https://gist.github.com/1603920.js?file=53pubsubexample.js"&gt;&lt;/script&gt;
  &lt;p&gt;
    Consider this an abbreviated example, as it doesn't explain where
    the &lt;code&gt;element&lt;/code&gt; variable is defined or initialized; the
    important part is the interaction with Tapestry's client-side
    library: the reference to the &lt;code&gt;T5.pubsub.publish&lt;/code&gt; function.
  &lt;/p&gt;
  &lt;p&gt;
    Under 5.4, using the RequireJS &lt;code&gt;require&lt;/code&gt; function, this
    might be coded instead as:
  &lt;/p&gt;
  &lt;script src="https://gist.github.com/1603930.js?file=54pubsubexample.js"&gt;&lt;/script&gt;
  &lt;p&gt;
    Here, the &lt;code&gt;t5/pubsub&lt;/code&gt; module will be loaded by RequireJS and
    passed as a parameter into the function, which is automatically
    executed. So, this supports JavaScript modularization, and
    leverages RequireJS's ability to load modules on-the-fly, 
    as needed.
  &lt;/p&gt;
  &lt;p&gt;
    Notice the difference between the two examples; in the first
    example, coding as a module was &lt;em&gt;optional&lt;/em&gt; (but
    recommended), since the necessary &lt;code&gt;publish()&lt;/code&gt; function
    was accessible either way. In the 5.4 example, coding using
    JavaScript modules is virtually &lt;em&gt;required&lt;/em&gt;: the anonymous
    function passed to &lt;code&gt;require()&lt;/code&gt; is effectively a module,
    but its only through the use of &lt;code&gt;require()&lt;/code&gt; (or
    RequireJS's &lt;code&gt;define()&lt;/code&gt;) that the &lt;code&gt;publish()&lt;/code&gt;
    function can be accessed. &lt;/p&gt;
  &lt;p&gt;
    This is both the carrot and the stick; the carrot is how easy it
    is to declare dependencies and have them passed in to your
    function-as-a-module. The stick is that (eventually)
    the &lt;em&gt;only&lt;/em&gt; way to access those dependencies is by providing
    a module and declaring dependencies.
  &lt;/p&gt;
  &lt;h3&gt;Change page initializations to use modules&lt;/h3&gt;

  &lt;p&gt;
    Tapestry has a reasonably sophisticated system for allowing
    components to describe their JavaScript requirements as they
    render, in the form of
    the &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/javascript/JavaScriptSupport.html"&gt;JavaScriptSupport&lt;/a&gt;
    environmental (an environmental is a kind of
    per-thread/per-request service object).  Methods on
    JavaScriptSupport allow a component to request that a JavaScript
    library be imported in the page (though this is most commonly
    accomplished using
    the &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/Import.html"&gt;Import&lt;/a&gt;
    annotation), and to request the &lt;em&gt;initialization functions&lt;/em&gt;
    get executed.&lt;/p&gt;
  &lt;p&gt;
    Part of Tapestry's Ajax support is that in an Ajax request, the
    JavaScriptSupport methods can still be invoked, but a completely
    different implementation is responsible for integrating those
    requests into the overall reply (which in an Ajax request is a JSON object, rather
    than a simple stream of HTML).
  &lt;/p&gt;
  &lt;p&gt;
    Here's an example component from the TapX library:&lt;/p&gt;

&lt;script src="https://gist.github.com/1673763.js?file=Expando.java"&gt;&lt;/script&gt;

  &lt;p&gt;
    The @Import annotation directs that a stack (a set of related
    JavaScript libraries, defined elsewhere) be imported into the
    page; alternately, the component could import any number of
    specific JavaScript files, located either in the web application
    context folder, or on the classpath.&lt;/p&gt;
  &lt;p&gt;
    Inside the &lt;code&gt;afterRender()&lt;/code&gt; method, the code constructs
    a &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/json/JSONObject.html"&gt;JSONObject&lt;/a&gt;
    of data needed on the client side to perform the operation. The
    call to &lt;code&gt;addInitializerCall&lt;/code&gt; references a function by
    name: this function must be added to
    the &lt;code&gt;T5.Initializers&lt;/code&gt; namespace object.  Notice the
    naming: &lt;code&gt;tapxExpando&lt;/code&gt;: a prefix to identify the
    library, and to prevent collisions with any other application or
    library that also added its own functions to
    the &lt;code&gt;T5.initializers&lt;/code&gt; object.
  &lt;/p&gt;
  &lt;p&gt;
    The JavaScript library includes the function that will be invoked:
  &lt;/p&gt;
  &lt;script src="https://gist.github.com/1673810.js?file=tapx-core.js"&gt;&lt;/script&gt;
  &lt;p&gt;
    Under 5.4, this would largely be the same except:
  &lt;/p&gt;
  &lt;ul&gt;
    &lt;li&gt;There will be a specific Java package for each library (or the
      application) to store library modules.&lt;/li&gt;
    &lt;li&gt;The JavaScriptSupport environmental will have new methods to
      reference a function, inside a module, to invoke.&lt;/li&gt;
      &lt;li&gt;Stacks will consist not just of individual libraries, but
 also modules, following the naming and packaging
 convention.&lt;/li&gt;
  &lt;/ul&gt;

  &lt;h3&gt;Embrace client-side controller logic&lt;/h3&gt;

&lt;p&gt;
  The changes discussed so far only smooth out a few rough edges;
  they still position Tapestry code, running on the server, as driving
  the entire show. 
 &lt;/p&gt;

&lt;p&gt;
  As alluded to earlier; for any sophisticated user interface, the
  challenge is to coordinate the client-side user interface (in terms
  of form fields, DOM elements, and query parameters) with the
  server-side components; this is encoded into the
  hidden &lt;code&gt;t:formdata&lt;/code&gt; field. However, it is my opinion that
  for any dynamic form, Tapestry is or near the end of the road for
  this approach.&lt;/p&gt;
&lt;p&gt;Instead, it's time to embrace client-logic, written in JavaScript,
  in the browser. Specifically, break away from HTML forms, and
  embrace a more dynamic structure, one where "submitting" a form
  always works through an Ajax update ... and what is sent is not a
  simple set of query parameters and values, but a JSON representation
  of what was updated, changed, or created.
&lt;/p&gt;
&lt;p&gt;
  My specific vision is to
  integrate &lt;a href="http://documentcloud.github.com/backbone/"&gt;Backbone.js&lt;/a&gt;
  (or something quite similar), to move this logic solidly to the
  client side. This is a fundamental change: one where the client-side
  is free to change and reconfigure the UI in any way it likes, and is
  ultimately responsible for packaging up the completed data and
  sending it to the server.
&lt;/p&gt;
&lt;p&gt;
  When you are used to
  the &lt;a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/BeanEditForm.html"&gt;BeanEditForm&lt;/a&gt;
  component, this might feel like a step backwards, as you end up
  responsible for writing a bit more code (in JavaScript) to
  implement the user interface, input validations, and relationships
  between fields. However, as fun as BeanEditForm is, the declarative
  approach to validation on the client and the server has proven to be
  limited and limiting, especially in the face of cross-field
  relationships. We could attempt to extend the declarative nature,
  introducing rules or even scripting languages to establish the
  relationships ... or we could move in a situation that puts the
  developer back in the driver's seat.&lt;/p&gt;
&lt;p&gt;
  Further, there are some that will be concerned that this is a
  violation of
  the &lt;a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself"&gt;DRY
  pricipal&lt;/a&gt;; however I subscribe to different philosophy that
  client-side and server-side validation are fundamentally different
  in any case; this is discussed in an excellent
  &lt;a href="http://blog.ianbicking.org/2011/03/30/js-on-server-and-client-is-not-a-big-deal/"&gt;blog
  post by Ian Bickling&lt;/a&gt;.

&lt;p&gt;
  Certainly there will be components and services to assist with this
  process, in term of extracting data into JSON format, and converting
  JSON data into a set of updates to the server-side objects. There's
  also a number of security concerns that necessitate careful
  validation of what comes up from the client in the Ajax request.
  Further, there will be new bundled libraries to make it easier to
  build these dynamic user interfaces.&lt;/p&gt;

&lt;h3&gt;Conclusion&lt;/h3&gt;

&lt;p&gt;
  In this vision of Tapestry's future, the server-side framework
  starts to shift from the focus of all behavior to
  the &lt;em&gt;facilitator&lt;/em&gt;: it paints the broad stokes on the server,
  but the key interactions end up working exclusively on the
  client. &lt;/p&gt;
&lt;p&gt;
  I'm sure this view will be controversial: after all, on the surface,
  what the community really wants is just "jQuery instead of
  Prototype". However, all of the factors described in the above
  sections are, I feel, critical to keeping Tapestry relevant by
  embracing the client-side in the way that the client-side
  demands.&lt;/p&gt;

&lt;p&gt;
  I think this change in focus is a big deal; I think it is also
  necessary for Tapestry to stay relevant in the medium to long
  term. I've heard from many individual developers (not necessarily
  Tapestry users) that what they really want is "just jQuery and a
  restful API"; I think Tapestry can be that restful API, but by
  leveraging many of Tapestry's other strengths, it can be a lot more.
  Building something right on the metal feels empowering ... until you
  hit all the infrastructure that Tapestry provides, including
  best-of-class exception reporting, on-the-fly JavaScript aggregation
  and minimization, and (of course) live class reloading during
  development.
java&lt;/p&gt;  
  &lt;p&gt;
    I'm eager to bring Tapestry to the forfront of web application
  development ... and to deliver it fast!  Monitor the Tapestry
  developer mailing list to see how this all plays out.&lt;/p&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4110180-7447306489952674714?l=tapestryjava.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/TapestryCentral/~4/mlpJ4i8ShSA" height="1" width="1"/&gt;</description>
      <pubDate>Tue, 24 Jan 2012 19:24:33 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-4110180.post-7447306489952674714</guid>
      <dc:creator>Howard Lewis Ship</dc:creator>
    </item>
    <item>
      <title>Review: Gradle Class with Luke Daley</title>
      <link>http://uberconf.com/blog/howard_lewis_ship/2012/01/review_gradle_class_with_luke_daley</link>
      <description>&lt;p&gt;Last week, Luke Daly arrived in Portland to teach a three day &lt;a href="http://gradle.org/"&gt;Gradle&lt;/a&gt; class; the folks at Gradleware were nice enough let me audit the class (so it only cost me a couple of thousand dollars of lost billing revenue to attend).  My goals for the class was to gain a deeper understanding of how Gradle works, so that I could write more efficient builds, diagnose problems, and write my own plugins. The class scored very high on all of those counts!&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;Much of the first day was spent on basics, including a very useful introduction to the Groovy programming language (which is the basis of the &lt;a href="http://gradle.org/docs/current/dsl/index.html"&gt;Gradle DSL&lt;/a&gt;). Even though I have used Groovy pretty extensively for testing purposes over the last couple of years, there were features I've glossed over in the past that turned out to be very useful.&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;The class is taught largely bottom up: from the basics of declaring tasks, then actions on tasks, and gradually working up towards defining tasks inputs and outputs. Compiling Java came pretty late, which seems curious since that's the primary job of Gradle, but this makes sense from a bottom-up approach as &lt;a href="http://gradle.org/docs/current/dsl/org.gradle.api.Project.html#org.gradle.api.plugins.JavaPluginConvention:sourceSets(groovy.lang.Closure)"&gt;SourceSets&lt;/a&gt; can then be described correctly. &lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;The class alternates between lecture and discussion, and short focused labs. At the end of the third day, we worked on tuning up our own builds, passing the video projector cable around ... we had a good time making the Tapestry build more efficient and readable, as well as adding new features to it.&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;I'm feeling very good about my Gradle skills after attending the course; I've already been able to make further improvements to the Tapestry build subsequently, and I have plans for more involving things going forward. &lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;The return on investment for this class is a bit tricky; Gradle simply does so much straight out of the box, and even without a strong understanding of its structure, you can &lt;em&gt;kind of&lt;/em&gt; get it to do what you want just by guesswork and Googling. If you've been using Gradle for a while, I give this a cautious recommendation: getting back the three days of invested time may take a while to pay off. On the other hand, if you are currently dependent on Ant or Maven ... &lt;a href="http://gradle.org/training"&gt;sign up for the next class&lt;/a&gt; and get yourself switched over, today!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4110180-4121218058413204699?l=tapestryjava.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/TapestryCentral/~4/stulP-4bay8" height="1" width="1"/&gt;</description>
      <pubDate>Tue, 24 Jan 2012 12:32:18 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-4110180.post-4121218058413204699</guid>
      <dc:creator>Howard Lewis Ship</dc:creator>
    </item>
    <item>
      <title>Agile Lifecycles for Geographically Distributed Teams, Part 1</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/01/agile_lifecycles_for_geographically_distributed_teams_part_1</link>
      <description>&lt;p&gt;I&amp;#8217;ve been working with geographically distributed and dispersed teams for the past couple of years. Some of them on quite large programs, some of them reasonably small. What they all have in common is that they all want to transition to agile.&lt;/p&gt;
&lt;p&gt;Most of them start this way: someone takes a Scrum class, gets all excited. This is good. Then reality hits. Scrum is meant for collocated geographically cross-functional teams. Uh oh.&lt;/p&gt;
&lt;p&gt;Almost all of these teams are separated by function: the developers are in one place, the testers are in another, the business analysts are in a third place, the project managers are in a fourth places, and if there are product owners (or what passes for product owners) they are often in a fifth location. It&amp;#8217;s not uncommon for every single &lt;em&gt;function&lt;/em&gt; of the team to be separate from every other member of the team. So, the teams don&amp;#8217;t fit the Scrum criteria. Uh oh.&lt;/p&gt;
&lt;p&gt;Since Scrum has so much brand recognition, these people think if they can&amp;#8217;t do Scrum, they can&amp;#8217;t do Agile. Nope, not so. What they need to do is start from the &lt;a href="http://www.agilemanifesto.org/principles.html" target="_blank"&gt;values and principles&lt;/a&gt; of the Agile Manifesto, and go from there. They create their own lifecycle, and their very own brand of Agile.&lt;/p&gt;
&lt;p&gt;When I worked with one client, that client thought they could extend their iteration. Nope, if anything, that means you keep the iterations even shorter, because you need &lt;em&gt;more&lt;/em&gt; frequent feedback when no one is in the same place. Well, there were words. And more words. But, if you start from the values, you see that short iterations are the way to go if you want to be agile. Otherwise, you get staged delivery, which is a lovely lifecycle, but not agile.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m blogging a series of examples. Please don&amp;#8217;t ask me why the people ended up in these locations. I have no idea. All I know is that&amp;#8217;s where the people are.&lt;/p&gt;
&lt;h2&gt;Example 1: Using a Project Manager With Iterations, Silo&amp;#8217;d Teams&lt;/h2&gt;
&lt;p&gt;One IT organization has teams with developers in the Ukraine, testers in India, product managers and project managers in the UK, and enterprise architecture and corporate management in the eastern US.&lt;/p&gt;
&lt;p&gt;This organization moved to two-week iterations. The developers were 3.5 hours ahead of the testers, which was not terrible. This organization had these problems:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The product managers had to learn to be product owners and write stories that were small enough to finish inside one iteration.&lt;/li&gt;
&lt;li&gt;The enterprise architects had to stop dictating the architecture without features to hang off the architecture.&lt;/li&gt;
&lt;li&gt;The developers and testers had to learn to implement by feature so the architects could help the team see the evolving architecture.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This organization had a ton of command-and-control to start. The project managers needed to facilitate the teams, not control them. The architects needed to help the teams see how to organize the product, not to tell the developers what to do. The testers needed to not be order-takers, as in taking orders from the developers.&lt;/p&gt;
&lt;p&gt;You might ask why the organization wanted to move to agile. Senior management wanted agile because the releases got longer and longer and longer, and could not accommodate change. Agile was a complete cultural shift. The two-week iterations, along with an agile roadmap of features helped a lot.&lt;/p&gt;
&lt;p&gt;The pilot project team consisted of the developers, testers, a product manager, and a project manager. The team rejected the enterprise architect as a member of the team because the architect refused to write code.&lt;/p&gt;
&lt;p&gt;Release planning: The project manager and the product manager do an initial cut at release planning as a strawman and presented it to the team. &amp;#8220;Can you do this? What do you think?&amp;#8221;&lt;/p&gt;
&lt;p&gt;Iteration planning: The team does iteration planning together, making sure every story is either small, medium, or large, where a large story can be done by the entire team in fewer than three days. The team makes sure they get every started story to done at the end of the iteration.&lt;/p&gt;
&lt;p&gt;Daily commitment: The team does a daily checkin, not a standup. They timebox the checkin to 15 minutes. They ask these questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What did you complete and with whom yesterday? (reinforces the idea that people work together)&lt;/li&gt;
&lt;li&gt;What are you working on and with whom today?&lt;/li&gt;
&lt;li&gt;What are your impediments?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The project manager who acts as a servant leader, not a command/controller manages the impediments.&lt;/p&gt;
&lt;p&gt;The pilot project has two experienced agile people: the project manager and a developer. Both act as servant leaders.&lt;/p&gt;
&lt;p&gt;Measurements: burnup charts, impediment charts&lt;/p&gt;
&lt;p&gt;The pilot team has been together for six months now, and is successful. This is not Scrum. It&amp;#8217;s not Kanban. It&amp;#8217;s agile and it&amp;#8217;s working. They are ready to start another project team, working by attraction.&lt;/p&gt;
&lt;p&gt;(Want to learn to work more effectively on your geographically distributed team? Join Shane Hastie and me in a &lt;a href="http://www.jrothman.com/2012/01/working-effectively-in-geographically-distributed-agile-project-teams/" target="_blank"&gt;workshop&lt;/a&gt; April 17-18, 2012.)&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=0BNXuAHvurA:-H5g8BLnnu8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=0BNXuAHvurA:-H5g8BLnnu8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=0BNXuAHvurA:-H5g8BLnnu8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=0BNXuAHvurA:-H5g8BLnnu8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=0BNXuAHvurA:-H5g8BLnnu8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=0BNXuAHvurA:-H5g8BLnnu8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=0BNXuAHvurA:-H5g8BLnnu8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=0BNXuAHvurA:-H5g8BLnnu8:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/0BNXuAHvurA" height="1" width="1"/&gt;</description>
      <pubDate>Tue, 24 Jan 2012 07:09:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11069</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>Speaking in Philly this Week</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/speaking_in_philly_this_week</link>
      <description>&lt;p style="clear: both"&gt;&lt;img style="float: right; margin: 0 0 10px 10px" src="http://maps.google.com/maps/api/staticmap?center=39.953633,-75.198806&amp;amp;zoom=16&amp;amp;markers=3800+Walnut Street Philadelphia, Pa &amp;amp;size=300x300&amp;amp;sensor=false" alt="" width="300" height="300" /&gt;I'll be speaking in my hometown this week. I'll be presenting at the &lt;a href="http://www.panma.org/organization/news/2012/01/jan-26th-event-adobe-and-html5-the-next-generation-of-tools"&gt;Philadelphia Area New Media Association (PANMA) meeting for January&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Topics&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;jQuery Mobile&lt;/li&gt;
&lt;li&gt;PhoneGap&lt;/li&gt;
&lt;li&gt;Typekit&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;CSS Shaders&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;:&lt;/p&gt;
&lt;blockquote style="clear: both"&gt;
&lt;p style="clear: both"&gt;Adobe and HTML5&lt;/p&gt;
&lt;p style="clear: both"&gt;In the past few months, there has been a number of new tools and new services from Adobe for HTML5. Some of these tools, like PhoneGap Build and jQuery contributions are aimed at developers and some, such as Edge, are more focused on designers. Adobe Evangelist Terry Ryan will give an overview and demos of these and other tools.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="clear: both"&gt;The meeting is on &lt;strong&gt;Thursday, January 26th at 6:00PM&lt;/strong&gt;. It will be at the &lt;strong&gt;Huntsman Building at 38th and Walnut&lt;/strong&gt; on Penn's Campus. &lt;/p&gt;</description>
      <pubDate>Mon, 23 Jan 2012 12:57:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/speaking-in-philly-this-week</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>Venn Diagram entirely in CSS</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/venn_diagram_entirely_in_css</link>
      <description>&lt;p&gt;&lt;img style="float: right;" src="/blog/assets/content/venn.png" alt="" width="350" height="250" /&gt;A friend of mine alerted me this weekend to just how much I have a weird fascination with Venn diagrams. I decided to roll with it. So yeah, I have an irrational love of Venn diagrams. But that begs the question, can I make a Venn diagram with just CSS?&lt;/p&gt;
&lt;p&gt;I found a couple of examples out there:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://uxthing.posterous.com/dusting-off-my-html-skills-css-venn-diagram"&gt;Dusting off front-end skills: CSS Venn Diagram&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://blog.w3human.me/05/2011/html-and-css-venn-diagram/"&gt;HTML And CSS Venn Diagram&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But I felt like they had a bit too much fluff in the HTML markup. Not that there is anything technically wrong with their implementations. I prefer complexity in my CSS and not in my HTML. It's probably just a subjective thing, but I do. &lt;/p&gt;
&lt;p&gt;So how do you do it?&lt;/p&gt;
&lt;p&gt;First you create 3 divs. 1 for each Venn circle, and 1 for the overlap section. Each div contains a p with content in it.&lt;/p&gt;
&lt;p&gt;
&lt;script src="https://gist.github.com/1664396.js?file=htmlportion.html"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;Then you go to style each of the circles. Give them matching heights and widths, and a border radius of half of the height. This creates the circle. Then give each one an opacity below 1. This will ensure that when they overlap they will form a new color. &lt;/p&gt;
&lt;p&gt;
&lt;script src="https://gist.github.com/1664396.js?file=circles.css"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;I then created two rules based on the nth child css selector to color each of the circles. I also padded to ensure that there would be a space to write in the overlap section. &lt;/p&gt;
&lt;p&gt;
&lt;script src="https://gist.github.com/1664396.js?file=eachcircle.css"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;Finally I styled the overlap section using relative positioning and pulled it back towards the center. &lt;/p&gt;
&lt;p&gt;
&lt;script src="https://gist.github.com/1664396.js?file=overlap.css"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;The real trick is to watch the pixel counts because a couple are directly related.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To create a circle: &lt;/strong&gt;&lt;/p&gt;
&lt;ul style="clear: both"&gt;
&lt;li&gt;width must equal height &lt;/li&gt;
&lt;li&gt;border radius must equal 50% of width.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To overlap circles:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Circle 2 must have negative &lt;em&gt;x&lt;/em&gt; left margin&lt;/li&gt;
&lt;li&gt;(Or Circle 1 must have negative &lt;em&gt;x&lt;/em&gt; right margin)&lt;/li&gt;
&lt;li&gt;Each circle must have &lt;em&gt;x&lt;/em&gt; padding-left or &lt;em&gt;x&lt;/em&gt; padding-right to ensure its text doesn't spill over borders &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It looks like &lt;a href="http://terrenceryan.com/examples/venn/"&gt;the example&lt;/a&gt; works across modern browsers, including IE 9, but not previous versions. &lt;/p&gt;</description>
      <pubDate>Mon, 23 Jan 2012 11:56:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/venn-diagram-entirely-in-css</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>Grails: Bootstrapping data with DomainBuilder</title>
      <link>http://uberconf.com/blog/andres_almiray/2012/01/grails_bootstrapping_data_with_domainbuilder</link>
      <description>&lt;p&gt;A few days ago I was discussing the topic of builders during a Grails training session. After surveying the usual suspects found in the standard Groovy distribution (MarkupBuilder, SwingBuilder, Antbuilder and ObjectGraphBuilder) we jumped into Grails' &lt;a href="http://grails.org/doc/latest/api/grails/util/DomainBuilder.html"&gt;DomainBuilder&lt;/a&gt;. Once we got familiar with it the team seized the opportunity to refactor an existing application they've been working on for a few weeks. The idea was to remove a very verbose data setup during the bootstrap sequence.&lt;/p&gt;
&lt;p&gt;Like many other applications out there, this one requires setting up users and roles to secure access to some areas. The User and Role classes looked like the following ones&lt;br/&gt;&lt;textarea name="srccode" class="groovy:nocontrols:nogutter" cols="80" rows="15"&gt;class User {
    String username
    String name
    static hasMany = [roles: Role]
    static constraints = {
        username(nullable: false, blank: false, unique: true)
        name(nullable: false, blank: false, unique: true)
    }
}

class Role {
    String name
    static constraints = {
        name(nullable: false, blank: false, unique: true)
    } 
}&lt;/textarea&gt;&lt;/p&gt;&lt;p&gt;Nothing complex really. Now, during bootstrap there were a handful on instances of both classes being created and saved. A few users would share roles which meant keeping a reference to the common role to later use Grails relationship methods. This caused the code to be not so much DRY, and while it's good to be &lt;a href="http://www.nofluffjuststuff.com/blog/andrew_glover/2008/07/it_s_ok_to_wet_yourself_every_once_in_awhile"&gt;WET&lt;/a&gt; from time to time this wasn't the case. Let me show you how the code looked like before we added the builder&lt;br/&gt;&lt;textarea name="srccode" class="groovy:nocontrols:nogutter" cols="80" rows="35"&gt;import com.acme.*

class BootStrap {
    def init = { servletContext -&gt;
        User user1 = new User(username: 'user1', name: 'Regular')
        User user2 = new User(username: 'user2', name: 'Super')
        User user3 = new User(username: 'user3', name: 'Über')
        User user4 = new User(username: 'user4', name: 'Admin')

        Role role1 = new Role(name: 'Observer')
        Role role2 = new Role(name: 'Executor')
        Role role3 = new Role(name: 'Collector')
        Role role4 = new Role(name: 'Administrator')

        user1.addToRoles(role1)

        user2.addToRoles(role1)
        user2.addToRoles(role2)

        user3.addToRoles(role1)
        user3.addToRoles(role2)
        user3.addToRoles(role3)

        user4.addToRoles(role4)

        role1.save()
        role2.save()
        role3.save()
        role4.save()
        role1.save()
        user2.save()
        user3.save()
        user4.save()
    }
}&lt;/textarea&gt;&lt;/p&gt;&lt;p&gt;We could have saved a few lines by collecting all domain classes in Lists then applying &lt;tt&gt;*.save()&lt;/tt&gt; on the lists, however that would still have left the relationship methods being defined explicitly. This is where DomainBuilder came in. With it we were able to define the domain instances and the relationships at the same time. We ended up with code looking like the following one&lt;br/&gt;&lt;textarea name="srccode" class="groovy:nocontrols:nogutter" cols="80" rows="41"&gt;import com.acme.*
import grails.util.DomainBuilder

class BootStrap {
    def init = { servletContext -&gt;
        DomainBuilder builder = new DomainBuilder()
        builder.classNameResolver = 'com.acme'
        builder.identifierResolver = { 'nodeId' }
        builder.registerFactory 'list', new ListFactory()
        builder.childPropertySetter = new CustomChildPropertySetter()

        List instances = builder.list {
            role(nodeId: 'role1', name: 'Observer')
            role(nodeId: 'role2', name: 'Executor')
            role(nodeId: 'role3', name: 'Collector')
            role(nodeId: 'role4', name: 'Administrator')

            user(username: 'user1', name: 'Regular') {
                role(refId: 'role1')
            }
            
            user(username: 'user2', name: 'Super') {
                role(refId: 'role1')
                role(refId: 'role2')
            }
            
            user(username: 'user3', name: 'Über') {
                role(refId: 'role1')
                role(refId: 'role2')
                role(refId: 'role3')
            }
            
            user(username: 'user4', name: 'Admin') {
                role(refId: 'role4')
            }
        }
        
        instances*.save()
    }
}&lt;/textarea&gt;&lt;/p&gt;
&lt;p&gt;DomainBuilder understands perfectly well the relationships between domain class instances. It also makes some assumptions on how the model is setup, but we still need to give it a few hints. In line 7 we can see a &lt;tt&gt;classNameResolver&lt;/tt&gt; set on the builder. By convention the builder will use an strategy to construct fully qualified classnames out of node names. If the classes happen to be defined inside a package then you must define a custom classNameResolver. In our case the classes we're interested in live under the same package so we only need to specify it, the builder will do the rest to figure out the correct class name.&lt;/p&gt;&lt;p&gt;Next, we must set a custom &lt;tt&gt;identifierResolver&lt;/tt&gt; because the &lt;tt&gt;id&lt;/tt&gt; property is of semantic meaning to domain classes. The builder can keep references to all instantiated nodes, it will use the &lt;tt&gt;id&lt;/tt&gt; property by default, assuming that's a synthetic property. This means it will treated in a different way than the rest of properties. Because &lt;tt&gt;id&lt;/tt&gt; is used by domain classes we set a different synthetic property named &lt;tt&gt;nodeId&lt;/tt&gt;. Finally we define a custom factory to serve as the root of the object graph. This custom factory requires additional setup to handle its children, which is why we also register a custom &lt;tt&gt;ChildPropertySetter&lt;/tt&gt; on the builder. These two helper classes can be seen in the following snippets&lt;br/&gt;&lt;textarea name="srccode" class="groovy:nocontrols:nogutter" cols="80" rows="5"&gt;private static class ListFactory extends AbstractFactory {
    Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes) {
        []
    }
}&lt;/textarea&gt;&lt;textarea name="srccode" class="groovy:nocontrols:nogutter" cols="80" rows="9"&gt;private static class CustomChildPropertySetter extends DomainBuilder.DefaultGrailsChildPropertySetter {
    void setChild(Object parent, Object child, String parentName, String propertyName) {
        if (parent instanceof List) {
            parent &lt;&lt; child         } else {             super.setChild(parent, child, parentName, propertyName)         }     } }&lt;/textarea&gt;&lt;/p&gt;&lt;p&gt;Basically the code inspects the type of the parent node. If it's a List then we append the child to it, otherwise we let the standard behavior take control. You can read more information on the builders used at &lt;a href="http://groovy.codehaus.org/FactoryBuilderSupport"&gt;FactoryBuilderSupport&lt;/a&gt; and &lt;a href="http://groovy.codehaus.org/objectgraphbuilder"&gt;ObjectGraphBuilder&lt;/a&gt;.&lt;/p&gt;&lt;br/&gt;Keep on Groovying!</description>
      <pubDate>Mon, 23 Jan 2012 06:35:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jroller.com/aalmiray/entry/grails_bootstrapping_data_with_domainbuilder</guid>
      <dc:creator>Andres Almiray</dc:creator>
    </item>
    <item>
      <title>Drum Roll: Public Workshop April 17-18, 2012</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/01/drum_roll_public_workshop_april_17_18_2012</link>
      <description>&lt;p&gt;I&amp;#8217;m so pleased to announce that Shane Hastie and I are leading a workshop on &lt;a href="http://www.jrothman.com/2012/01/working-effectively-in-geographically-distributed-agile-project-teams/" target="_blank"&gt;Working Effectively In Geographically Distributed Agile Project Teams&lt;/a&gt;, April 17-18, 2012 in Pleasanton, CA. Yes, that is Elisabeth Hendrickson&amp;#8217;s &lt;a href="http://www.agilistry.com/" target="_blank"&gt;Agilistry Studio&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Shane and I first delivered this workshop last year in Australia, when I was there for &lt;a href="http://www.softed.com/" target="_blank"&gt;Software Education&lt;/a&gt;&amp;#8216;s SDC. We had a great time, and so did many of the participants. We have since evolved the workshop, to address the needs of the participants who did &lt;em&gt;not&lt;/em&gt; have a great time, and to make sure we covered the topics we need to cover.&lt;/p&gt;
&lt;p&gt;This is an experiential workshop. You will learn by doing and debriefing. If you&amp;#8217;ve taken my one-day versions over the past year, you&amp;#8217;ve had a taste of what we do in the two-day. You will learn even more from both of us. Remember, we developed this as a geographically distributed pair.&lt;/p&gt;
&lt;p&gt;One of the benefits of signing up for the workshop is the informal consulting you can obtain, not just from us, but from the other people there. You&amp;#8217;ll hear what other people are doing, what&amp;#8217;s working and what&amp;#8217;s not working. If you want, you can hear from Shane and me about what&amp;#8217;s working and not working at our clients as they transition to agile and explore more agile approaches.&lt;/p&gt;
&lt;p&gt;Do check out the &lt;a href="http://www.jrothman.com/2012/01/working-effectively-in-geographically-distributed-agile-project-teams/" target="_blank"&gt;syllabus&lt;/a&gt;. And, if you&amp;#8217;re ready to sign up, please &lt;a href="http://www.jrothman.com/store/" target="_blank"&gt;register&lt;/a&gt;.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=F1lWgw6M6_Q:k9YJmrC1XnM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=F1lWgw6M6_Q:k9YJmrC1XnM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=F1lWgw6M6_Q:k9YJmrC1XnM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=F1lWgw6M6_Q:k9YJmrC1XnM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=F1lWgw6M6_Q:k9YJmrC1XnM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=F1lWgw6M6_Q:k9YJmrC1XnM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=F1lWgw6M6_Q:k9YJmrC1XnM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=F1lWgw6M6_Q:k9YJmrC1XnM:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/F1lWgw6M6_Q" height="1" width="1"/&gt;</description>
      <pubDate>Fri, 20 Jan 2012 08:04:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11089</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>Pragmatic Manager and InfoQ Video Posted</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/01/pragmatic_manager_and_infoq_video_posted</link>
      <description>&lt;p&gt;I have posted last week&amp;#8217;s Pragmatic Manager, &lt;a href="http://www.jrothman.com/2012/01/are-you-being-guilted-into-doing-more/" target="_blank"&gt;Are You Being Guilted Into Doing More?&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;At Agile 2011, I had a great video conversation with Shane Hastie about &lt;a href="http://www.infoq.com/interviews/rothman-agile-portfolio-management" target="_blank"&gt;agile project portfolio management&lt;/a&gt;. The chair is big, I&amp;#8217;m not so short. The chair is big, I&amp;#8217;m not so short. How many times do you think I have to say that to make it true? The chair is big, I&amp;#8217;m not so short. That ought to do it.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=7hbnb6ByU8k:bsp9O4m3KiI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=7hbnb6ByU8k:bsp9O4m3KiI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=7hbnb6ByU8k:bsp9O4m3KiI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=7hbnb6ByU8k:bsp9O4m3KiI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=7hbnb6ByU8k:bsp9O4m3KiI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=7hbnb6ByU8k:bsp9O4m3KiI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=7hbnb6ByU8k:bsp9O4m3KiI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=7hbnb6ByU8k:bsp9O4m3KiI:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/7hbnb6ByU8k" height="1" width="1"/&gt;</description>
      <pubDate>Thu, 19 Jan 2012 06:51:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11064</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>Speaking at Webvisions Next Week in NYC</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/speaking_at_webvisions_next_week_in_nyc</link>
      <description>&lt;p&gt;I was originally scheduled to help out my colleague &lt;a href="http://blog.kevinhoyt.com/"&gt;Kevin Hoyt&lt;/a&gt; as a TA. Turns out that there was a slight scheduling SNAFU and I'm taking a full slot. My &lt;a href="http://www.webvisionsevent.com/new-york/session/the-future-of-html5-motion-design/"&gt;topic&lt;/a&gt;: &lt;/p&gt;
&lt;blockquote style="clear: both"&gt;
&lt;p&gt;&lt;strong&gt;The Future of HTML5 Motion Design&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;HTML5 and CSS3 are hot, driven by an explosion of new, Internet connected devices. While they offer many new features that should allow you to do the types of things that you previously did in Flash, actually making it happen is really hard. Until now. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img style="float: right;" src="/blog/assets/content/punchy.gif" alt="" width="222" height="221" /&gt;If you weren't sure, I'll be talking about &lt;a href="http://labs.adobe.com/technologies/edge/"&gt;Adobe Edge&lt;/a&gt;, our HTML5 animation tool. It's currently in beta, and looking pretty cool. &lt;br /&gt;&lt;br /&gt;So if you're in NYC, and want to get some dirt on where Adobe is going with HTML animation or just to get close to some of the foremost experts on the web, you really got to check out &lt;a href="http://www.webvisionsevent.com/new-york/"&gt;Webvisions&lt;/a&gt;. &lt;/p&gt;</description>
      <pubDate>Fri, 13 Jan 2012 15:57:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/speaking-at-webvisions-next-week-in-nyc</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>Hackergarten in PDX - Friday January 20th</title>
      <link>http://uberconf.com/blog/howard_lewis_ship/2012/01/hackergarten_in_pdx__friday_january_20th</link>
      <description>&lt;p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://hackergarten.net/hackergarten_b_and_w_small.png" imageanchor="1" style="clear:left; float:left;margin-right:1em; margin-bottom:1em"&gt;&lt;img border="0" height="150" width="392" src="http://hackergarten.net/hackergarten_b_and_w_small.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;p&gt;Merlyn Albery-Speyer is organizing a &lt;a href="http://hackergarten.net/"&gt;Hackergarten&lt;/a&gt; while &lt;a href="http://ldaley.com/"&gt;Luke Daley&lt;/a&gt; (creator of &lt;a href="http://www.gebish.org/"&gt;Geb&lt;/a&gt;, and &lt;a href="http://gradle.org/"&gt;Gradle&lt;/a&gt; committer) is in town to run an &lt;a href="http://gradleware.com/training"&gt;in-depth Gradle training&lt;/a&gt;.  I'll be there, working on Tapestry, or Gradle, or a video game, or something.&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;Please see &lt;a href="http://www.curiousattemptbunny.com/2012/01/hackergarten-in-pdx-friday-january-20th.html"&gt;Meryln's blog&lt;/a&gt; to RSVP.  I look forward to meeting and coding with more PDX peeps!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4110180-8652247449868717675?l=tapestryjava.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/TapestryCentral/~4/_TBpJwaKHvM" height="1" width="1"/&gt;</description>
      <pubDate>Fri, 13 Jan 2012 10:06:36 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-4110180.post-8652247449868717675</guid>
      <dc:creator>Howard Lewis Ship</dc:creator>
    </item>
    <item>
      <title>Elvis carried away by spaceships</title>
      <link>http://uberconf.com/blog/kenneth_kousen/2012/01/elvis_carried_away_by_spaceships</link>
      <description>&lt;p&gt;I love teaching Groovy to existing Java developers, because they have such a hard time holding back Tears Of Joy when they see how much easier life can be. Today, though, I did a quick demo that resulted in a line of Groovy that was so amusing I had to post it here.&lt;/p&gt;
&lt;p&gt;Consider a trivial POGO (Plain Old Groovy Object) called &lt;code&gt;Course&lt;/code&gt;:&lt;br /&gt;
&lt;pre class="brush: plain;"&gt;
class Course
    String name
    int days
    String toString() { &amp;quot;($name,$days)&amp;quot; }
}
&lt;/pre&gt;&lt;br /&gt;
The goal was to take a collection of courses and sort it by the number of days. That&amp;#8217;s really easy in Groovy:&lt;br /&gt;
&lt;pre class="brush: groovy;"&gt;
def courses = [
    new Course(name:'Groovy',days:4),
    new Course(name:'Grails',days:3),
    new Course(name:'Spring',days:4),
    new Course(name:'Hibernate',days:3)
]

assert courses.toString() == '[(Groovy,4), (Grails,3), (Spring,4), (Hibernate,3)]'

courses.sort { it.days }

assert courses*.days == [3, 3, 4, 4]
&lt;/pre&gt;&lt;br /&gt;
The &lt;code&gt;sort&lt;/code&gt; method in the &lt;code&gt;java.util.Collection&lt;/code&gt; class is part of the Groovy JDK, meaning it&amp;#8217;s one of the methods Groovy adds to the standard Java libraries. It takes a closure of either one or two arguments. In this case, I&amp;#8217;m using the one-argument closure, which is used to select a property on which to base the sort. By specifying &lt;code&gt;it.days&lt;/code&gt; in the closure, I&amp;#8217;m telling the &lt;code&gt;sort&lt;/code&gt; method to sort the courses based on their &lt;code&gt;days&lt;/code&gt; property. Then I verify that the sort worked by checking that the courses are the right order, using the spread-dot operator to just look at the number of days.&lt;/p&gt;
&lt;p&gt;In class the question that always comes up is, can I sort by days and then by name? In other words, if two courses have the same number of days, can I then sort by the &lt;code&gt;name&lt;/code&gt; property?&lt;/p&gt;
&lt;p&gt;That&amp;#8217;s what the two-argument closure on the &lt;code&gt;sort&lt;/code&gt; method is for. The two arguments are references to any pair of courses, and the closure should return a negative number, zero, or positive number according to whether the first course is less than, equal to, or greater than the second.&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s where things get amusing. The sort I want is:&lt;br /&gt;
&lt;pre class="brush: groovy;"&gt;
courses.sort { a,b -&amp;gt;
    a.days &amp;lt;=&amp;gt; b.days ?: a.name &amp;lt;=&amp;gt; b.name
}

assert courses.toString() == '[(Grails,3), (Hibernate,3), (Groovy,4), (Spring,4)]'
&lt;/pre&gt;&lt;br /&gt;
The body of the closure on &lt;code&gt;sort&lt;/code&gt; uses the spaceship operator &amp;lt;=&amp;gt;, which returns -1, 0, or 1 depending on whether the left side is less than, equal to, or greater than the right side. I use spaceship to compare the &lt;code&gt;days&lt;/code&gt; properties. Then I add the Elvis operator ?: which means if the days comparison is not zero, use it, but otherwise use the following comparison, which uses another spaceship to compare by name.&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s only after writing the code in class that one of the students pointed out that I had Elvis in between two spaceships, leading to the following observations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The spaceships are there to return Elvis to his home planet&lt;/li&gt;
&lt;li&gt;It takes two &lt;a href="http://www.smallartworks.ca/Gallery/J2/jupiter2.JPG"&gt;spaceships&lt;/a&gt;, working in tandem, to carry Elvis away, in much the same way &lt;a href="http://www.youtube.com/watch?v=rzcLQRXW6B0"&gt;two swallows can carry a coconut in tandem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Therefore, the Elvis being carried away must be the &lt;a href="http://www.antisteez.com/wp-content/uploads/2009/10/fat-elvis.jpg"&gt;fat Elvis&lt;/a&gt; from the 70s, rather than the &lt;a href="http://hairstylesarea.com/hair-pic/HLIC/11fc6966ee56903bf40fee5c8f462800.jpg"&gt;thin, cool Elvis&lt;/a&gt; from the 50s
&lt;/ol&gt;
&lt;p&gt;Either way, after the sort is finished, Elvis has left the building.&lt;/p&gt;
&lt;p&gt;Thank you, thank you very much.&lt;/p&gt;
&lt;br /&gt;  &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kousenit.wordpress.com/335/"&gt;&lt;img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kousenit.wordpress.com/335/" /&gt;&lt;/a&gt; &lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kousenit.wordpress.com&amp;amp;blog=186706&amp;amp;post=335&amp;amp;subd=kousenit&amp;amp;ref=&amp;amp;feed=1" width="1" height="1" /&gt;</description>
      <pubDate>Fri, 13 Jan 2012 00:25:00 CST</pubDate>
      <guid isPermaLink="true">http://kousenit.wordpress.com/?p=335</guid>
      <dc:creator>Kenneth Kousen</dc:creator>
    </item>
    <item>
      <title>Who’s Playing Agile Schedule Games Posted</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/01/who_s_playing_agile_schedule_games_posted</link>
      <description>&lt;p&gt;My new Gantthead column is up, &lt;a href="http://www.gantthead.com/content/articles/269499.cfm" target="_blank"&gt;Who&amp;#8217;s Playing Agile Schedule Games?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you liked the schedule games from the more traditional projects, you&amp;#8217;ll love the agile schedule games. Please comment over there.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Gbvbee4idFE:SEKWjq6GO70:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Gbvbee4idFE:SEKWjq6GO70:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Gbvbee4idFE:SEKWjq6GO70:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=Gbvbee4idFE:SEKWjq6GO70:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Gbvbee4idFE:SEKWjq6GO70:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=Gbvbee4idFE:SEKWjq6GO70:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Gbvbee4idFE:SEKWjq6GO70:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Gbvbee4idFE:SEKWjq6GO70:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/Gbvbee4idFE" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 11 Jan 2012 06:18:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11060</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>Pragmatic Manager Posted: Are Your Shoulds Driving Your Decisions</title>
      <link>http://uberconf.com/blog/johanna_rothman/2012/01/pragmatic_manager_posted_are_your_shoulds_driving_your_decisions</link>
      <description>&lt;p&gt;I posted my most recent Pragmatic Manager: &lt;a href="http://www.jrothman.com/2012/01/are-your-shoulds-driving-your-decisions/" target="_blank"&gt;Are Your &amp;#8220;Shoulds&amp;#8221; Driving Your Decisions?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Yes, in case you couldn&amp;#8217;t tell, I am doing a series on project portfolio management, so that you do take a look at my &lt;a href="http://www.jrothman.com/services/peer-project-portfolio-coaching/" target="_blank"&gt;Peer Project Portfolio Coaching&lt;/a&gt;. Several people took advantage of the early bird pricing. We&amp;#8217;re in the not-quite-early-bird pricing now. And, if you sign up with a buddy, you can still get early bird pricing for the two of you. It&amp;#8217;s a steal.&lt;/p&gt;
&lt;p&gt;If you are struggling with too much to do, sign up. If you are overwhelmed with your workload, sign up. If you are trying to do it all, sign up. You cannot succeed. You are making yourself crazy.&lt;/p&gt;
&lt;p&gt;We will use agile and lean approaches and help you overcome the guilt, the sunk cost syndrome, and the &amp;#8220;you&amp;#8217;re not playing with the team&amp;#8221; nonsense that other people will pull on you. You&amp;#8217;ll get the support you need from your peers.&lt;/p&gt;
&lt;p&gt;Join us. You won&amp;#8217;t be sorry.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Fdsaf7Tfy9g:KH1rcEuDBhs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Fdsaf7Tfy9g:KH1rcEuDBhs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Fdsaf7Tfy9g:KH1rcEuDBhs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=Fdsaf7Tfy9g:KH1rcEuDBhs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Fdsaf7Tfy9g:KH1rcEuDBhs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?i=Fdsaf7Tfy9g:KH1rcEuDBhs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Fdsaf7Tfy9g:KH1rcEuDBhs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?a=Fdsaf7Tfy9g:KH1rcEuDBhs:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ManagingProductDevelopment?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ManagingProductDevelopment/~4/Fdsaf7Tfy9g" height="1" width="1"/&gt;</description>
      <pubDate>Tue, 10 Jan 2012 09:08:00 CST</pubDate>
      <guid isPermaLink="true">http://www.jrothman.com/blog/mpd/?p=11052</guid>
      <dc:creator>Johanna Rothman</dc:creator>
    </item>
    <item>
      <title>Using Spring to Receive JMS Messages</title>
      <link>http://uberconf.com/blog/bruce_snyder/2012/01/using_spring_to_receive_jms_messages</link>
      <description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pSHP7VYSIjE/S3CoIdTOo7I/AAAAAAAAAcE/1wooXq_IyOs/s1600-h/spring-logo1.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 220px;" src="http://2.bp.blogspot.com/_pSHP7VYSIjE/S3CoIdTOo7I/AAAAAAAAAcE/1wooXq_IyOs/s320/spring-logo1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5436029613493887922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have you ever had a need to create your own JMS consumer? Or will you have this need in the future? If you answered yes to either one of these questions, this post will simplify your life.&lt;br /&gt;&lt;br /&gt;In the previous post, I discussed &lt;a href="http://bsnyderblog.blogspot.com/2010/02/using-spring-jmstemplate-to-send-jms.html"&gt;Using the Spring JmsTemplate to Send JMS Messages&lt;/a&gt;. As a follow-on, in this post I will demonstrate how to receive messages using Spring JMS. Although the previously mentioned JmsTemplate can receive messages synchronously, here I will focus on asynchronous message reception using the Spring message listener container architecture, specifically the  DefaultMessageListenerContainer.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html"&gt;DefaultMessageListenerContainer&lt;/a&gt; (DMLC) is another wonderful convenience class that is part of the Spring Framework's JMS package. As you can see in the Javadoc, the DMLC is not a single class, but a well-abstracted hierarchy for the purpose of receiving messages. The reason for this is that the DMLC takes its inspiration from &lt;a href="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts5.html"&gt;Message Driven Beans&lt;/a&gt; (MDB). &lt;br /&gt;&lt;br /&gt;MDBs were originally defined in the EJB 2.0 spec as a stateless, transaction aware message listener that use JMS resources provided by the Java EE container. MDBs can also be pooled by the Java EE container in order to scale up. In short, MDBs were designed for asynchronous message reception in a way that the Java EE container could manage them. Although the intention was good, unfortunately the disadvantages of MDBs are numerous including:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;MDBs are static in their configuration and creation (they cannot be created dynamically)&lt;/li&gt;&lt;li&gt;MDBs can only listen to a single destination&lt;/li&gt;&lt;li&gt;MDBs can only send messages after first receiving a message&lt;/li&gt;&lt;li&gt;MDBs require an EJB container (and therefore the Java EE container)&lt;/li&gt;&lt;/ul&gt;Although the Spring DMLC took its inspiration from MDBs, it did not replicate these disadvantages; quite the opposite, in fact. The Spring DMLC is commonly used to create what have become known as Message-Driven POJOs (MDP). MDPs offer all of the same functionality as MDBs but without the disadvantages listed above. The Spring DMLC  provides many features including:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Various levels of caching of the JMS resources (connections and sessions) and JMS consumers for increased performance&lt;/li&gt;&lt;li&gt;The ability to dynamically grow and shrink the number of consumers to concurrently process messages based on load (see &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html#setConcurrentConsumers(int)"&gt; setConcurrentConsumers&lt;/a&gt; and &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html#setMaxConcurrentConsumers(int)"&gt; setMaxConcurrentConsumers&lt;/a&gt;) for additional performance&lt;/li&gt;&lt;li&gt;Automatically re-establishes connections if the message broker becomes unavailable&lt;/li&gt;&lt;li&gt;Asynchronous execution of a message listener using the &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/core/task/TaskExecutor.html"&gt;Spring TaskExecutor&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Support for local JMS transactions as well as an external transaction manager around message reception and listener execution&lt;/li&gt;&lt;li&gt;Support for various message acknowledgement modes, each providing different semantics&lt;/li&gt;&lt;/ul&gt;For some situations, it is important to understand the additional error handling and the redelivery semantics that are provided by the DMLC. For more information, see the &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/AbstractMessageListenerContainer.html"&gt;AbstractMessageListenerContainer JavaDoc&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The reason I recommend the DMLC (or even the &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/SimpleMessageListenerContainer.html"&gt;SimpleMessageListenerContainer&lt;/a&gt;) is because writing JMS consumers can be a lot of work. In doing so, you must manually handle and mange the JMS resources and the JMS consumers, any concurrency that is necessary and any use of transactions. If you've ever done such work you know how arduous and error prone it can be. Certainly MDBs provide some of these features but with all their disadvantages. By creating MDPs using the Spring DMLC, I have seen users save a tremendous amount of time and increase their productivity significantly. This is because the DMLC offers much flexibility, robustness, a high amount of configurability and it has widespread deployment in businesses all over the world (so it has been widely tested).&lt;br /&gt;&lt;br /&gt;Compared to MDBs, use of the Spring DMLC is actually surprisingly simple. The easiest way to get started is to using an XML configuration as the Spring DMLC provides &lt;a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/jms.html#jms-namespace"&gt;JMS namespace support&lt;/a&gt;. Below is a Spring application context that demonstrates the configuration to use the Spring DMLC with Apache ActiveMQ: &lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: xml"&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;beans xmlns="http://www.springframework.org/schema/beans"&lt;br /&gt;       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&lt;br /&gt;       xmlns:jms="http://www.springframework.org/schema/jms"&lt;br /&gt;       xmlns:p="http://www.springframework.org/schema/p"&lt;br /&gt;       xsi:schemaLocation="&lt;br /&gt;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&lt;br /&gt;http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd"&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;!-- A JMS connection factory for ActiveMQ --&amp;gt;&lt;br /&gt;  &amp;lt;bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"&lt;br /&gt;  p:brokerURL="tcp://foo.example.com:61616" /&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;!-- A POJO that implements the JMS message listener --&amp;gt;&lt;br /&gt;  &amp;lt;bean id="simpleMessageListener" class="com.mycompany.SimpleMessageListener"&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;!-- The Spring message listener container configuration --&amp;gt;&lt;br /&gt;  &amp;lt;jms:listener-container&lt;br /&gt;      container-type="default"&lt;br /&gt;      connection-factory="connectionFactory"&lt;br /&gt;      acknowledge="auto"&amp;gt;&lt;br /&gt;    &amp;lt;jms:listener destination="TEST.FOO" ref="simpleMessageListener" method="onMessage" /&amp;gt;&lt;br /&gt;  &amp;lt;/jms:listener-container&amp;gt;&lt;br /&gt;&amp;lt;/beans&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;For folks who are already familiar with the Spring Framework, the XML above is quite straightforward. It defines a connection factory bean for ActiveMQ, a message listener bean and the Spring listener-container. Notice that the jms:listener contains the destination name and not the listener-container. This level of separation is important because it means that the listener-container is not tied to any destination, only the jms:listener is. You can define as many jms:listener elements as is necessary for your application and the container will handle them all. &lt;br /&gt;&lt;br /&gt;Below is the message listener implementation:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java"&gt;&lt;br /&gt;import javax.jms.JMSException;&lt;br /&gt;import javax.jms.Message;&lt;br /&gt;import javax.jms.MessageListener;&lt;br /&gt;import javax.jms.TextMessage;&lt;br /&gt;&lt;br /&gt;import org.apache.log4j.Logger;&lt;br /&gt;&lt;br /&gt;public class MyMessageListener implements MessageListener {&lt;br /&gt;&lt;br /&gt;  private static final Logger LOG = Logger.getLogger(MyMessageListener.class);&lt;br /&gt;&lt;br /&gt;  public void onMessage(Message message) {&lt;br /&gt;      try {&lt;br /&gt;       TextMessage msg = (TextMessage) message;&lt;br /&gt;       LOG.info("Consumed message: " + msg.getText());&lt;br /&gt;      } catch (JMSException e) {&lt;br /&gt;          // TODO Auto-generated catch block&lt;br /&gt;          e.printStackTrace();&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;The message listener implementation is deliberately simple as its only purpose is to demonstrate receiving the message and logging the payload of the message. Although this listener implements the &lt;tt&gt;javax.jms.MessageListener&lt;/tt&gt; interface, there are a total of three options available for implementing a message listener to be used with the Spring DMLC:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The &lt;a href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/MessageListener.html"&gt;&lt;tt&gt;javax.jms.MessageListener&lt;/tt&gt;&lt;/a&gt; - This is what was used in the example above. It is a standardized interface from the JMS spec but handling threading is up to you. &lt;/li&gt;&lt;li&gt;The Spring &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/SessionAwareMessageListener.html"&gt;&lt;tt&gt;SessionAwareMessageListener&lt;/tt&gt;&lt;/a&gt; - This is a Spring-specific interface the provides access to the JMS session object. This is very useful for request-response messaging. Just be aware that you must do your own exception handling (i.e., override the &lt;a href="http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/jms/listener/adapter/MessageListenerAdapter.html#handleListenerException(java.lang.Throwable)"&gt;handleListenerException&lt;/a&gt; method so exceptions are not lost). &lt;/li&gt;&lt;li&gt;The Spring &lt;a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/adapter/MessageListenerAdapter.html"&gt;&lt;tt&gt;MessageListenerAdapter&lt;/tt&gt;&lt;/a&gt; - This is a Spring-specific interface that allows for type-specific message handling. Use of this interface avoids any JMS-specific dependencies in your code.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;So not only is the Spring message listener container easy to use, it is also full of options to adapt to many environments. And I've only focused on the DefaultMessageListenerContainer here, I have not talked about the SimpleMessageListenerContainer (SMLC) beyond a simple mention. At a high level the difference is that the SMLC is static and provides no support for transactions. &lt;br /&gt;&lt;br /&gt;One very big advantage of the Spring message listener container is that this type of XML config can be used in a Java EE container, in a servlet container or stand alone. This same Spring application context will run in Weblogic, JBoss, Tomcat or in a stand alone Spring container. Furthermore, the Spring DMLC also works with just about any JMS compliant messaging middleware available. Just define a bean for the JMS connection factory for your MOM and possibly tweak a few properties on the listener-container and you can begin consuming messages from different MOMs. &lt;br /&gt;&lt;br /&gt;I should also note that the XML configuration is certainly not a requirement either. You can go straight for the underlying Java classes in your own code if you wish. I've used each style in various situations, but to begin using the Spring DMLC in the shortest amount of time, I find the Spring XML application context the fastest.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update:&lt;/b&gt; I have made all of the code for these examples available via a &lt;a href="https://github.com/bsnyder/spring-jms-examples"&gt;GitHub repo&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9088482399688345277-3854794530238560533?l=bsnyderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <pubDate>Tue, 10 Jan 2012 00:26:00 CST</pubDate>
      <guid isPermaLink="true">tag:blogger.com,1999:blog-9088482399688345277.post-3854794530238560533</guid>
      <dc:creator>Bruce Snyder</dc:creator>
    </item>
    <item>
      <title>Chameleon</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/chameleon</link>
      <description>&lt;aside&gt;In my book &lt;a href="http://pragprog.com/book/trevan/driving-technical-change"&gt;Driving Technical Change&lt;/a&gt;, I have a chapter dedicated to "The Irrational." These are people whose objection to change isn't based in any rational complaint that can be countered with positive evidence. Instead, they are to be avoided and contained, rather than engaged. The description is broad, and I of course recommend you &lt;a href="http://pragprog.com/book/trevan/driving-technical-change"&gt;check out the book&lt;/a&gt;. However, I thought it would be helpful to talk about a couple of the characters that run the gamut of "The Irrational." This is one of a &lt;a href="/blog/archives.cfm/category/irrational-characters"&gt;series&lt;/a&gt; of them.
&lt;/aside&gt;
&lt;p&gt;&lt;img style="float: right; margin: 10px 0 10px 10px" src="/blog/assets/content/hipsterchameleon.jpg" alt="" width="350" height="350" /&gt;Just because some skeptics are irrational about something, doesn't mean that they don't know they are being irrational. They know that if they gave the real reason for their resistance that people would find their objections unacceptable. In short if someone's reason for not accepting that your company should support the iPhone and invest in iOS apps is that they think "Apple users are obnoxious hipsters," they're going to get dismissed out of hand. They know it, so they resist by bringing up "the Evil Walled Garden" argument. If you are able to mount a solid case against the "Walled Garden" argument, they switch to opposing Apple because "Android hardware would be cheaper" &lt;/p&gt;
&lt;p&gt;Now to be clear, I'm not saying any objection to Apple is irrational. I'm saying if you specifically are going to resist Apple in an honest business focused decision for the specific reason "Apple users are obnoxious hipsters," you are being irrational. I'm also not saying "the Evil Walled Garden" or "Android hardware is cheaper" are right or wrong arguments. I'm saying they can be rational arguments (with evidence and justificaiton) but that arguing those things without believing or weakly believing in them to cover up for an irrational objection is the problem here. &lt;/p&gt;
&lt;p style="clear: both"&gt;&lt;strong&gt;Scenario&lt;/strong&gt;&lt;br /&gt;I worked with a guy who stated "I don't believe in indices [in a relational database]." &lt;/p&gt;
&lt;p style="clear: both"&gt;I know. We can argue many things: what columns to index, clustered or unclustered, whether we should even be using relational databases... But we can all agree that if you are using relational databases at some point you need to use indices. &lt;/p&gt;
&lt;p style="clear: both"&gt;But that was this guy's beef. He resisted any sort of argument that he needed an index on any of his tables. He showed us articles that said "YOU DON'T HAVE TO USE INDEXES... &lt;small&gt;on tables with many more writes than reads&lt;/small&gt;". When performance was effected by a lack of an index, he said the performance was acceptable. When performance was still an issue he went into a long diatribe about how hardware upgrades on the server side would make his performance issues go away in an acceptable timeframe. &lt;/p&gt;
&lt;p style="clear: both"&gt;Then we introduced &lt;a href="http://en.wikipedia.org/wiki/Object-relational_mapping"&gt;ORM (object relational mapping)&lt;/a&gt; into the environment. He objected.... loudly. Why? "The performance tradeoffs are too great." &lt;/p&gt;
&lt;p style="clear: both"&gt;Clearly his issue with ORM wasn't really performance. He had no problem waiting for performance to be enhanced by hardware upgrades, which is itself kinda silly.  And his acceptance of poor performing SQL was not because he hated indices. It was because his real resistance was based on something else.&lt;/p&gt;
&lt;p style="clear: both"&gt;What was that real reason? I don't know but I have my theories. (I became much friendlier with him later, and it never came up.) I think in general the truth had more to do with trying to limit the number of new technologies and techniques so that he could keep a handle on the environment as he was also doing a fair amount of managerial, administrative, and business work as well. When you're stretched so thin, you have to figure out a way to contain complexity. But that's just my theory. &lt;/p&gt;
&lt;p style="clear: both"&gt;Ultimately his real reason doesn't matter. Because like all of the Irrational types, you should ignore them. &lt;/p&gt;
&lt;p style="clear: both"&gt;It's tough though, because these guys masquerade as rational types before you realize what's going on. So how do you spot them?&lt;/p&gt;
&lt;p style="clear: both"&gt;A few signs:&lt;/p&gt;
&lt;ul style="clear: both"&gt;
&lt;li&gt;Drastically changing objections, did these guys start out as Burned, and then change to Time Crunched when confronted with evidence?&lt;/li&gt;
&lt;li&gt;Dramatic reversals of objections raised in previous discussions, did they go from indifference to performance to performance being the only thing?&lt;/li&gt;
&lt;li&gt;Being a Chameleon in the past, if they have done this to you before, and you haven't figured out a root cause then it is likely that they are repeating.&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="clear: both"&gt;In general these guys and gals suck. They waste a lot of time because you are fooled into arguing with them rationally since they act rational. But if you suspect you're face to face with a chameleon: &lt;strong&gt;cut your losses - move on to try and convert someone else&lt;/strong&gt;. Either they are Irrational, and you saved yourself some grief, or they aren't, but they'll be easier to bring around with more converts on your side. &lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2012 23:08:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/chameleon</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>A Custom Textarea for Finicky in HTML5</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/a_custom_textarea_for_finicky_in_html5</link>
      <description>&lt;p&gt;&lt;img style="float: right; margin: 0 0 10px 10px" src="/blog/assets/content/uiexample.jpg" alt="" width="400" height="250" /&gt;I'm doing more work on bringing &lt;a href="http://finickyapp.com/"&gt;Finicky&lt;/a&gt; to HTML. Another interface that I wanted to reproduce was a custom input for note fields. It's basically a hand-drawn top and bottom to user editable notes with a hand writing font. As you fill the notes, the area expands and the bottom moves with the expansion. It's another cool UI tweak that my designer came up with that I want to honor in this version.&lt;/p&gt;
&lt;p&gt;My first pass at it tried to use border images to fill the images as border-top and border-bottom on a textarea. I had one giant problem with that: &lt;a href="http://caniuse.com/border-image"&gt;CSS Border images are very unsupported&lt;/a&gt;. I couldn't get them to work on Chrome, and they don't appear to be accessible on a lot of browsers yet including the mobile browsers I am targeting. &lt;/p&gt;
&lt;p&gt;My next pass was using a textarea. I got a little further along, but textareas are static. They don't expand to fit the content. In fact, that's sort of the opposite of their intent. They are supposed to stay static to accommodate large amounts of content. I'm sure I could do something with JavaScript to make that happen, but I hate doing that. No rational reason for that. I just feel that every time I use JavaScript to handle a display/style issue, I die a little on the inside. If I can do it in CSS, so be it. &lt;/p&gt;
&lt;p&gt;My next attempt used the new HTML5 attribute "contenteditable." Contenteditable basically says that the content in a given element is editable by the user. This means that I can just create a div that is user editable. The div has the added benefit of being able to dynamically resize itself when new content comes in. This is exactly what I am looking for. &lt;/p&gt;
&lt;p&gt;It works perfectly until I actually go to use it in my mobile app. Surprise, surprise, &lt;a href="http://caniuse.com/contenteditable"&gt;contenteditable isn't supported on Android yet&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;So it's back to textarea and JavaScript manipulation. (And a little piece of me dies.) There is a jQuery plugin that will make a text area expand with more content, but it seemed a little heavy since I'm not using jQuery in this application. The basic method is pretty straightforward:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a placeholder for a mirror of the textarea content&lt;/li&gt;
&lt;li&gt;Create a function for onkeyup for the textarea that: 
&lt;ul&gt;
&lt;li&gt;Sets the mirror content to be the content of the textarea&lt;/li&gt;
&lt;li&gt;Grabs the height of the mirror&lt;/li&gt;
&lt;li&gt;Sets the textarea height to that height&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div id="snipplr_embed_62437" class="snipplr_embed"&gt;&lt;a href="http://snipplr.com/view/62437/html-for-textarea-post/"&gt;Code snippet - HTML for textarea post&lt;/a&gt; on Snipplr&lt;/div&gt;
&lt;p&gt;
&lt;script src="http://snipplr.com/js/embed.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://snipplr.com/json/62437" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;div id="snipplr_embed_62438" class="snipplr_embed"&gt;&lt;a href="http://snipplr.com/view/62438/javascript-for-textarea-post/"&gt;Code snippet - JavaScript for textarea post&lt;/a&gt; on Snipplr&lt;/div&gt;
&lt;p&gt;
&lt;script src="http://snipplr.com/js/embed.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://snipplr.com/json/62438" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;The basic solution is spelled out in &lt;a href="http://james.padolsey.com/javascript/jquery-plugin-autoresize/"&gt;this post on the textArea jQuery Plugin&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I went one step further and created a CSS transition that smooths out the height change of the textarea. &lt;/p&gt;
&lt;div id="snipplr_embed_62439" class="snipplr_embed"&gt;&lt;a href="http://snipplr.com/view/62439/css-for-textarea-post/"&gt;Code snippet - CSS for textarea post&lt;/a&gt; on Snipplr&lt;/div&gt;
&lt;p&gt;
&lt;script src="http://snipplr.com/js/embed.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://snipplr.com/json/62439" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;That's a long road to getting it done, but it works. &lt;a href="http://terrenceryan.com/examples/textarea/"&gt;Here's a working demo of it. &lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:17:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/a-custom-textarea-for-mobile-apps</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>Circular Button with Photo Mask Using CSS</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/circular_button_with_photo_mask_using_css</link>
      <description>&lt;p&gt;&lt;img style="float: right; margin: 0 0 10px 10px;" src="/blog/assets/content/cb_ui.jpg" alt="" width="425" height="329" /&gt;I'm currently working on porting &lt;a href="http://finickyapp.com/"&gt;Finicky&lt;/a&gt; over to HTML5 as a training exercise for building real applications (as opposed to more demoware) with HTML5 for mobile. It's going fairly well, but there was one piece of UI that I was really worried about. It was a little complicated to render in ActionScript, and I feared it might be impossible in HTML. In fact it's one of the few things I found much easier. &lt;/p&gt;
&lt;p&gt;On the edit page there is a button for prompting you to take a picture of an item that you want to save. When you haven't taken a picture, you see a little camera icon on the button. When you have already selected an image, you see a circular mask of the picture inside a circular frame created by the button. Look at the picture; it's a lot easier to show than to explain. My designer really did a cool job there on that piece of UI, and I wanted to replicate it. &lt;/p&gt;
&lt;p&gt;My first instinct should have been to look up "css mask" as it would probably be the easiest way if it was implemented. I didn't. I instead went with using border radius to shape my button into a perfect circle and positioning it on top of the original button. In reviewing information on CSS Masking, I don't think it would be the perfect solution. The images that I'll be using in my final product are going to come from source images of different sizes. My method allows me to drop in any size/proportioned image into the background-image CSS property of my link and have it still work as a perfect circle. However, my research there makes me want to explore CSS masks more.&lt;/p&gt;
&lt;p&gt;Anyway, back to the main point, how did I accomplish this? &lt;/p&gt;
&lt;p&gt;First, I make an a link that I'll use an a as the interactive part of the UI, as well as the holder for my picture. And I'll wrap it in a div that will hold the button graphics.&lt;/p&gt;
&lt;div id="snipplr_embed_62377" class="snipplr_embed"&gt;&lt;a href="http://snipplr.com/view/62377/circular-button-in-css--html/"&gt;Code snippet - Circular Button in CSS - HTML&lt;/a&gt; on Snipplr&lt;/div&gt;
&lt;p&gt;
&lt;script src="http://snipplr.com/js/embed.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://snipplr.com/json/62377" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;&lt;img style="float: right;" src="/blog/assets/content/cb_1.jpg" alt="" width="205" height="210" /&gt;I give the containing div a background-image containing the button graphic and I hard set the size to match the image size.&lt;/p&gt;
&lt;div id="snipplr_embed_62378" class="snipplr_embed"&gt;&lt;a href="http://snipplr.com/view/62378/circular-button-in-css--wrapper/"&gt;Code snippet - Circular Button in CSS - Wrapper&lt;/a&gt; on Snipplr&lt;/div&gt;
&lt;p&gt;
&lt;script src="http://snipplr.com/js/embed.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://snipplr.com/json/62378" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p style="clear:both;"&gt;&lt;img style="float: right;" src="/blog/assets/content/cb_2.jpg" alt="" width="206" height="210" /&gt;Once the container is done, I turn the a link into a circle by giving it a border radius of 50% of the height and width of the element. (I also used a background-color to see where I was putting it. )&lt;/p&gt;
&lt;div id="snipplr_embed_62379" class="snipplr_embed"&gt;&lt;a href="http://snipplr.com/view/62379/circular-button-in-css--css-for-link/"&gt;Code snippet - Circular Button in CSS - CSS for link&lt;/a&gt; on Snipplr&lt;/div&gt;
&lt;p&gt;
&lt;script src="http://snipplr.com/js/embed.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://snipplr.com/json/62379" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p style="clear:both;"&gt;&lt;img style="float: right;" src="/blog/assets/content/cb_3.jpg" alt="" width="206" height="210" /&gt;Then I set the positioning to relative, to offset it within the containing div. I then fiddled with the top and left until the circle link was pretty equidistant from all sides of the containing div. It wasn't just straight math because the drop shadow in the graphic made the blue circle of the button not completely in the center of the png file. &lt;/p&gt;
&lt;p style="clear:both;"&gt;&lt;img style="float: right;" src="/blog/assets/content/cb_4.jpg" alt="" width="206" height="210" /&gt;Finally I made a class with the picture I wanted to place in the background-image of the button. &lt;/p&gt;
&lt;p&gt;Couple things to note here: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I hard coded the CSS for demonstration purposes, in my app, I'll just add the background-image dynamically via the DOM. &lt;/li&gt;
&lt;li&gt;This, like all awesome things, won't work in versions of IE earlier than 9.&lt;/li&gt;
&lt;li&gt;However, it has much more support than using masks, so I think it also wins on that account. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here's a &lt;a href="http://terrenceryan.com/examples/circularphotobutton/"&gt;demo&lt;/a&gt; with the full source.&lt;/p&gt;</description>
      <pubDate>Fri, 06 Jan 2012 15:23:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/circular-button-with-photo-mask-using-css</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
    <item>
      <title>CSS Tables and Responsive Design</title>
      <link>http://uberconf.com/blog/terry_ryan/2012/01/css_tables_and_responsive_design</link>
      <description>&lt;p&gt;It's been more than a decade since the call to abolish table-based layouts was started. Many, if not most, designers and developers have come over to the CSS way of doing things (or at least doing it most of the time while occasionally resorting to a table layout when they couldn't get the CSS to work.) Mixed in with the pragmatic use of tables is the occasional person pointing out the advantages of table-based layouts.&lt;/p&gt;
&lt;p&gt;Tables do things when laying out that CSS designs with floats and padding and negative margins haven't been able to duplicate with the same simplicity: dynamic grids, rows that are all the same height, and vertical centering. There are grid systems, and frameworks that have handled this problem for awhile but they have their warts. CSS-based tables are a good solution to this problem, and have a lot of other benefits. But even then I've heard angst about CSS-based solutions (frameworks or CSS tables) basically being the same amount of work and angst as a table for the same result. &lt;/p&gt;
&lt;p&gt;Here's a colleague (&lt;a href="http://blog.assortedgarbage.com/"&gt;Greg Rewis&lt;/a&gt;) of mine complaining about the main angst of all of these solutions:&lt;/p&gt;
&lt;blockquote style="clear: both"&gt;
&lt;p style="clear: both"&gt;&lt;a href="https://twitter.com/#!/garazi/status/152333186368667648"&gt;@garazi: Okay, CSS Grids, can we just go back to tables...?! I mean, really?! #nodiff&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;On the other hand objections to using tables are usually based on semantics, SEO, and accessibility: &lt;/p&gt;
&lt;ul style="clear: both"&gt;
&lt;li&gt;tables are for tabular data&lt;/li&gt;
&lt;li&gt;tables in layout are incredibly hard for screen readers to deal with&lt;/li&gt;
&lt;li&gt;table markup adds a lot of cruft to markup&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The problem with these issues is that for many people they just aren't compelling enough. Correct semantics is a lofty goal, but it's not a goal that clients care about. Accessibility takes a back seat because most of us never bother to fire up a screen reader. Cruft is usually seen as bad, there are other ways to improve page performance and SEO, so this argument sometimes helps but not enough. &lt;/p&gt;
&lt;p&gt;Therefore, I've added a new reason not to use tables focusing on the current zeitgeist around responsive design:&lt;/p&gt;
&lt;blockquote style="clear: both"&gt;
&lt;p&gt;Once you go table, you cannot go back.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Once you wrap your stuff in tables you cede a lot of control of the presentation to the browser. And most browsers don't linearize info in a table well because by wrapping it in table markup, you've effectively said "don't linearize this content". So if you are going to display this info on a mobile device with a smaller width you get scrunched content that is hard to read. Either that, or the mobile browser keeps it wide, but allows you to horizontally scroll, which as you know is a fate worse than death.&lt;/p&gt;
&lt;p&gt;&lt;a href="/blog/assets/content/tables.jpg"&gt;&lt;img style="float: left; margin: 0 10px 10px 0;" src="/blog/assets/content/tables_tn.jpg" alt="" width="400" height="192" /&gt;&lt;/a&gt;Live Demo: &lt;a href="http://terrenceryan.com/examples/tableless/table.html"&gt;Table Design&lt;/a&gt;&lt;/p&gt;
&lt;p style="clear: both"&gt;Your first attempt to deal with this is to handle this with floats and padding and whatnot. You set everything to float left, so when the screen contracts, things slip under each other. This works very well if you know or hard-set the dimensions of your content beforehand. Otherwise you end up with weird outcomes and odd configurations of your grid. Even if it does work well, typically you've needed to add extra structural markup to make it work. Adding the cruft that not doing tables was supposed to take away. And it's all div's so it gets hard to keep track of where you are.&lt;/p&gt;
&lt;p&gt;&lt;a href="/blog/assets/content/float.jpg"&gt;&lt;img style="float: left; margin: 0 10px 10px 0;" src="/blog/assets/content/float_tn.jpg" alt="" width="400" height="190" /&gt;&lt;/a&gt;Live Demo: &lt;a href="http://terrenceryan.com/examples/tableless/float.html"&gt;Float Design&lt;/a&gt;&lt;/p&gt;
&lt;p style="clear: both"&gt;Ideally, you want something that acts like a table when you have a wide screen and acts like simple block divs when you are on a small screen. So you take some good semantic HTML, combine it with CSS tables and boom, you have a layout that acts like tables when you are wide, and acts linear when you are small. It also lacks the weird layout issues you get from floating. &lt;/p&gt;
&lt;p&gt;&lt;a href="/blog/assets/content/css.jpg"&gt;&lt;img style="float: left; margin: 0 10px 10px 0;" src="/blog/assets/content/css_tn.jpg" alt="" width="401" height="137" /&gt;&lt;/a&gt;Live Demo: &lt;a href="http://terrenceryan.com/examples/tableless/css.html"&gt;CSS Table Design&lt;/a&gt;&lt;/p&gt;
&lt;p style="clear: both"&gt;There are issues with this approach as well. IE 7 and below doesn't support it. So that is something to contend with. I choose not to. In browsers that don't support this, it just looks like the linearized version, which I'm pretty cool with as it is suboptimal, not broken. I've also seen a weird issue with it not laying out things correctly when I resize the screen. (If you refresh after resizing, it draws it correctly.) Still tracking this down.&lt;/p&gt;
&lt;p&gt;Further Reading&lt;/p&gt;
&lt;p&gt;&lt;a href="http://coding.smashingmagazine.com/2009/04/08/from-table-hell-to-div-hell/"&gt;Table Layouts vs. Div Layouts: From Hell to Hell?&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/"&gt;Everything You Know About CSS Is Wrong&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jan 2012 15:29:00 CST</pubDate>
      <guid isPermaLink="true">http://www.terrenceryan.com/blog/post.cfm/css-tables-and-responsive-design</guid>
      <dc:creator>Terry Ryan</dc:creator>
    </item>
  </channel>
</rss>


