There are many reasons you should use long, descriptive method names. I won’t go into them all here, just use google, or read Clean Code, or something. But here’s a reason that you probably haven’t heard:
Long method names are better for mocking
It’s pretty simple. Given the following code and test:
Let’s say you decide to perform a rename method refactoring and change ‘apply’ to ‘compute.’ Now you get to pull up the terminal and type ack apply – not fun. Of course you could search for discount.apply, but there’s a good chance you’re going to miss something. Compare this with naming the method ‘apply_discount’ and the benefit is obvious.
Using long method names gives you the confidence to ack for those names, which in turn gives you confidence to refactor a mock-heavy test suite, which in turn gives you more confidence using mocks in the first place, which in turn lets you gain the benefit of mocks when appropriate instead of being scared away by the pitfalls