News for hackers. Stuff that matters.
Re:A simple image hosting site written in Haskell by Locke1689 on Sunday October 09, 2011 @06:01PM (#3091458)
Also, "getLastSixImages" should be obvious to any experienced functional programmer as something which is begging for a higher-order function.
Re:A simple image hosting site written in Haskell by joevandyk on Sunday October 09, 2011 @06:15PM (#3091479)
and selecting the last six images in one query, instead of this six times:

  SELECT name FROM images WHERE number = ((SELECT max(number) FROM images) - 1