top | item 22375289

(no title)

klyonrad | 6 years ago

Personally, I mostly set the length to 15 lines because too often 10 lines maximum just doesn't work in real life codebases

> Do Rubyist really write code like this as a second nature?

In my opinion yes, only the "old timers" that came from some other technologies write these annoyingly long methods (with many temp variables) and then they "wine" about rubocop.

> I mean, if I have to jump around half a dozen different methods and classes every time I look at a method, does it really help comprehension at all?

If you have to jump around, then the method names were chosen badly.

discuss

order

No comments yet.