Vim points out Long Method

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s