Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why I Prefer Functional Programming. Parent comment
I used it recently in ruby to write an sql query using Rails' ORM and it seemed quite nice to me. Something like:
foos.to_enum.with_index.reduce(initial_query) do |query, (foo, i)| query.joins(...).where(...) end
There are no comments on this comment yet.
I used it recently in ruby to write an sql query using Rails' ORM and it seemed quite nice to me. Something like: