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 Abel Avram on Feb 05, 2009
JSINQ stands for JavaScript INtegrated Query, a beta project implementing LINQ to Objects in JavaScript and recently released on CodePlex by Kai Jäger. JSINQ contains two modules, Enumerable and Query implementing System.Linq.Enumerable and System.Linq.Queryable respectively, allowing one to enumerate over arrays, DOM node lists or other objects.
The two modules are jsinq.Enumerable and jsinq.Query. An example of a query is:
var query = new jsinq.Query('\
from order in $1 \
group order by order.customerId into g \
select {customerId: g.getKey(), items: g.sum(function(g) { return g.items; })} \
into h \
join customer in $0 on h.customerId equals customer.id \
where h.items > 10 \
orderby h.items descending \
select {lastname: customer.lastname, items: h.items} \
');
query.setValue(0, customers);
query.setValue(1, orders);
var result = query.execute();
An example of enumerating is:
var enumerator = namesThatStartWithAnA.getEnumerator();
while (enumerator.moveNext()) {
var name = enumerator.current();
document.write(name + '<br />');
}
According to Kai, JSINQ can do:
- Write arbitrarily complex queries against JavaScript arrays, DOM node lists or your own enumerable types
- Find elements in the HTML DOM tree using SQL-like queries
- Dynamically create HTML elements from JSON you have received via XMLHttpRequest in a declarative manner
- Tinker with XML and turn it into something else
- Combine it in interesting ways with the JavaScript-/Ajax-frameworks you are already using
- Write less code by exploiting the power of declarative programming
- And for the ambitious: write raytracers, monadic parser combinators, etc.
Kai has put up a playground web page allowing anyone to test JSINQ. The source code can be downloaded for free from CodePlex under the MIT License. Other similar projects: JSLINQ and JLINQ.
Using Drools? See what you're missing! Get the Power of Drools with the Assurance of Red Hat
Mobile and the New Two-Tiered Web Architecture
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