RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

The Ruby Module Builder Pattern

Did you know that Ruby has configurable modules? Just subclass the Module class, dynamically define some methods in an initializer, and include an instance of the resulting module in another class. I call this thing a “Module Builder” and I just wrote a long blog post explaining what it’s all about. Ruby’s had this secret up its sleeve for all these years, and most of us never knew about it.

Podcast: Michael Feathers on Avoiding Legacy Code

What makes a code base go bad and become “Legacy Code”? Can teams avoid writing bad code? Michael Feathers, author of Working Effectively With Legacy Code joins Tech Done Right to talk about technical debt, how communication can prevent bad coding practices, why coding problems are never just about code, and what it’s like to go around the world seeing the worst code messes ever written. [more inside]

Fighting the Hydra of N+1 queries

A huge insight into the problem of N+1 queries with Rails: starting from the junior-level stuff (what is it and how to fight it) moving to the usage of bullet gem, hardcore problems caused by the complexity of the application and DRY/OO patterns used — and ramblings on how to tackle the problem at its root. [more inside]

Nice article!
Loading older posts