A little rant on naming things
Alexey Voinov Nov 21, 2017
Oh, how I'd love to forbid usage of
context in variable and class names. Looks like everybody is using it without understanding what they really means. Who's able to tell the difference between
accountInfo and just
account? Especially if they're in the same method. Or maybe what the hell is 'fieldContext' if that's the property of the field, and not something defining environment, where the field is used (or evaluated). Or maybe difference between three classes all named
SearchContext, with nothing in common. And yes, they're all used in the same project and sometimes even in the same packages.
One other thing I like so much about naming: it is
process in the method names. Especially when this method is several hundred lines long. For me it is just like the giant sign above the method: "I don't know the hell what this method does or should do. Sincerely yours. Author."
Sorry, I think I need to go try some Vulcan meditation techniques now.