This post originated from an RSS feed registered with Java Buzz
by Christopher Wong.
Original Post: On conciseness
Feed Title: Chris Wong's Development Blog
Feed URL: http://chriswongdevblog.blogspot.com/feeds/posts/default
Feed Description: This is a development-focused blog covering BlackBerry and Java software development.
I meant to write this thought for a while, but a recent blog post about implementing the Quicksort algorithm in Scala finally prompted me to write this. As a refresher, here is pseudocode from the Wikipedia entry on quicksort that illustrates a simple version of the algorithm.
function sort(array) // pseudocode from Wikipedia
var list less, greater
if length(array) ≤ 1 return array