Tuesday 14 May 2013

Java: Anti-pattern - make your method names as terse as possible.

Just came across a mock class used in unit tests that has:


cr()

b()

Of course there was no doco on the method names.

Took me a while to realise this was:

create()

build()


So why the fuck did they have to make them that short? Probably
because they were using vi.

No comments: