Posts tagged 'Rails'

Auto-generated API documentation

Rails Development

Let's face it, you are probably not documenting as much as you should. However, code is read a lot more than it is written. We often think about the computer executing the code, but how often do you think about your fellow co-workers/co-programmers when writing your code?

Find_each with custom ordering in Rails

Rails Development

In a recent project of mine I had to implement an activity feed. I have been meaning to try out the proposed solution by GiveGab which was a response to ThoughtBot's approach. I especially liked GiveGab's elegant solution to address the issues ThoughtBot had with the fan out on read approach by using Enumerations with findeachin_batches in the background to do the heavy-lifting in the database.