Collaboration: At the Extremities of Extreme
Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Charles Humble on Apr 15, 2008
The first article describes the evolution of eBay's presentation architecture from its early Perl roots to the current Java version, known as version 4:
"The V4 architecture took the approach of representing everything that was going to be used on the front end with strongly typed Java objects on the back end. Does your page use an image? Then there is a Java object for that image. If you want to delete that image, it's as simple or as complex as deleting any other Java class. The same can also be said for links, CSS, and JavaScript. V4 does not use servlets or JSPs to create HTML. Instead, the actual HTML DOM is represented in the Java language, so you can wire together CSS and JavaScript on the server.What about the hardest problem of them all: content? V4's content system is unique and powerful. It uses its own XML-based language to create content contracts. The choice of the word contract is intentional. Contracts define what kind of data is needed to create any variation of a piece (unit) of content. For example, a particular unit may need an integer and a string in English (like "Raymond has 4 cars"), but requires two integers and a string in another language. There may also be multiple variations for gender and cardinality. The contract defines all of this in XML. The contract is then implemented in each language supported by a particular application/page/component. And, of course, it has to be represented as a strongly typed object in Java that requires all of the dynamic data (like "Raymond" and "4" above) to be supplied in order for it to be used. Because everything involved are strongly typed Java objects, everything is enforced at compile time. If an application developer doesn't give the two parameters in his Java code, the code won't compile."
The article goes on to describe how eBay implement the Java representations of the different languages that make up their applications. JavaScript is kept as native code and proxied with Java, CSS files are used as a starting point but then replaced by a Java class file that is used at runtime to generate the CSS, the content contract XML is also converted to Java and so on. The central theme that runs through the eBay approach is using Eclipse code generators to take the grunt work out of doing this conversion. eBay have developed an Eclipse plug-in to convert each source file (JavaScript, CSS, XML) to its Java representation, and custom editors to work with their proprietary XML formats. The first article concludes by showing an example of introspecting a running eBay instance for its V4 components and opening up that component directly in Eclipse.
The second article describes how eBay use a combination of an XML file format and another proprietary plug-in to manage their project dependencies. The XML file allows Eclipse to generate the necessary project and .classpath files, and as with their XML contracts a second plug-in provides an editor for the XML.
As well as their own collection of proprietary Eclipse plug-ins, eBay also use third party ones. Two which get a mention are the Rational ClearCase plug-in for source-code control and static code analysis tool FindBugs which is used by eBay as part of their acceptance of any source code.
A significant aspect of this is the open source nature of the Eclipse platform. Since the source is open it is a comparatively straightforward task for eBay to integrate their proprietary plug-ins with the rest of the IDE.
Fair Trade Software Licensing - A Guide to Neo4j Licensing Options
Using Drools? See what you're missing! Get the Power of Drools with the Assurance of Red Hat
agility@scale eKit: 10 Principles, Scaling Model, Metrics, Collaboration
Monitor your Production Java App - includes JMX! Low Overhead - Free download
Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.
Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).
Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.
Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.
One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.
InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.
Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.
John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.
No comments
Watch Thread Reply