Live data from Hacker News

Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

stackoverflow.com

21–30 of 80 posts

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#21

Remember that Sun led by example. com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter, anyone? http://javadoc.bugaco.com/com/sun/java/swing/plaf/nimbus/Int...

It's an internal, automatically generated class. No programmer is ever going to use it.

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#22
post #5

Earlier quoted context omitted.

> Long names are a Good Thing as far as I'm concerned. Having spent FAR more time than I care to admit working with IBM crap that uses name like QXMGRTBL and QWRKQITM, I'll take TransactionAwarePersistanceManagerFactoryProxy any day... and twice on Sunday. Seems like a bit of a false dichotomy. It is reasonable to expect clear and descriptive names that do not reach the level of verbosity that seems to be idiomatic i…

Maybe... personally I find most of the carping about Java class names to be hyperbole. This is one of the more extreme examples you'll find (especially in common use) and, again, if you look at what it actually does, the name is descriptive and reasonable. As to whether or not the whole persistence mechanism is "over-engineered", well... that's a separate question. I can see some of the arguments for it, but when I l…

Oh, the names are always descriptive and can be justified. You don't see things like "VeryNiceClassLoaderClassThatIMadeInJuly", it is only ever things that are justifiable.

The problem is that when you read modern code in other modern languages everything tends to be shorter, still descriptive, and still justifiable. It is something that you can't help but notice if you regularly use multiple languages.

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#23

Long names are a Good Thing as far as I'm concerned. Having spent FAR more time than I care to admit working with IBM crap that uses name like QXMGRTBL and QWRKQITM, I'll take TransactionAwarePersistanceManagerFactoryProxy any day... and twice on Sunday. The only bit about this that even strikes me as a little bit unreasonable is the "Proxy" bit at the end. Not sure why you need another level of Proxy on top of Trans…

Nothing should exist anywhere in any discipline, medium, or realm that requires that many words to name.

Also, we all have this conversation periodically about the sadness of Spring complexity. They always go the same way - https://news.ycombinator.com/item?id=4550374

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#24
post #15

Earlier quoted context omitted.

I always thought it's rather self explanatory. Reading a text without distance between the words requires more effort. Capital letters don't help much for that. Underscore gives a space between the words, which allows more fluent reading.

It might be self-explanatory, but there's a vast gulf between self-explanatory and correct .

In this case it's not only correct, it's easy to test.

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#25

Long names are a Good Thing as far as I'm concerned. Having spent FAR more time than I care to admit working with IBM crap that uses name like QXMGRTBL and QWRKQITM, I'll take TransactionAwarePersistanceManagerFactoryProxy any day... and twice on Sunday. The only bit about this that even strikes me as a little bit unreasonable is the "Proxy" bit at the end. Not sure why you need another level of Proxy on top of Trans…

mindcrime has been a victim of a ... Stockholm syndrome.

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#29
I don't understood the question either...

I mean, it has so much jargon on it, that what I felt is what I think my mom feels when I am talking with my dad...

I read, and re-read, and read again... And the only thing that I would think was: "omgwhy? wtf? WHY THIS EXISTS IN FIRST PLACE???"

Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

#30
post #9

Camel notation looks awful with so many words. C++ style with underscores is way more readable.

ThisIsMyClassType

thisIsAnInstanceOfMyClass

this_is_some_ruby_or_kernel_c_i_copied_from_stack_exchange

_thisIsAFunctionParameterHavingBeenPassedIn

THISISACONSTANTDONOTCHANGE

THIS_IS_A_FRIENDLIER_ENUM

_____how_many_spaces__in_this_var

EDIT: Aaaand then there is the JS approach:

http://mathiasbynens.be/notes/javascript-identifiers

Post reply on HN