Link Details

Link 54187 thumbnail
User 201021 avatar

By ashiro
via wordaligned.org
Submitted: Nov 22 2007 / 03:05

Here’s a problem I encountered when writing the HTML generator for this site. Logically, Word Aligned is a time-ordered collection of articles. I wanted each article to link to its predecessor and successor. So the general problem is: How do you iterate through a collection yielding (previous, this, next) triples?
  • 4
  • 1
  • 174
  • 9

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (4)



Voters Against This Link (1)