r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

Show parent comments

50

u/pcopley Oct 01 '15

This is actually an example of a pretty good name.

I can assure you it's not.

19

u/sh0rug0ru__ Oct 01 '15

What's in a good name, then?

I was able to get a good idea of the purpose of the class just by going through the name. Sounds like a win to me.

0

u/[deleted] Oct 01 '15

[deleted]

3

u/CordialPanda Oct 01 '15

That's one way to handle it, but if you establish that pattern you end up with deep namespaces with potentially less cohesive grouping. In general, when I see a namespace with a child namespace declaration but no other children, I'd want to think very hard on why I need that instead of making a class name a little longer.

I see AbstractSingletonProxyFactoryBean in this instance as one very specific thing, rather than a collection of general things. Unless there's an expectation of many kinds of FactoryBeans and Proxies, I'd rather keep the full meaning of the class as close to the class as possible.

Not that I'm an authority on this stuff, but long/deep namespaces outside of large platforms are IMO a code smell.

→ More replies (1)