Vim points out Long Method

Posted on May 1, 2011

0


Here’s a nice observation from @mattwynne about vim, which is currently our editor of choice when remotely pairing:

As we become sharper with vim’s text-navigation commands we find we’re using { and } to jump from “paragraph” to paragraph, and particularly to jump from method to method. So when a method has a blank line somewhere inside it, the } won’t jump over the entire method; it jumps to the line break instead.

That’s vim reminding us that this method violates the SRP.

About these ads
Posted in: Uncategorized