I've always maintained that java itself is not so bad. It's the things people have done with it that make angels cry. People are the problem, not java. Leave java alone.
Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
41–50 of 80 posts
Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#42like instead of
org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy
something like org.'spring framework'.orm.jdo.'transaction aware persistence manager factory proxy'
or is that just a terrible idea?Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#43Earlier quoted context omitted.
> Some problems are complex and require complex solutions. And yet some very complex solutions were solved with very simple languages, before Java was conceived.
Java is not a complicated language. Something about its affordances pushes developers into these giant labyrinthine swamps of abstraction violation, but the language isn't that complicated, either syntactically or semantically.
So we're stuck with these complicated compile-time rules for defining everything in terms of a procedural language. We come up with complicated templates and generics for getting one set of methods to work with two types of data. Objects are needlessly serialized and deserialized to pass between systems, and programmers are needlessly spending time writing such methods.
I'm surprised that scala's paradigm of having actors work on data hasn't caught on more. When you separate them from the start, new modules are way easier to right, and integration time drops to near zero.
Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#44The JDO framework has an interface called PersistenceManagerFactory that is used to... well, create objects that manage persistence. Spring has its own thread-bound PersistenceManager abstraction that you need to fiddle with when you're doing transactions. This class lets you use the former's interface but decorated with the latter's behavior, so code that is designed for JDO doesn't need to be modified to call the Spring APIs explicitly.
(Am I close??)
[0] http://static.springsource.org/spring/docs/2.0.7/api/org/spr...
Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#45Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#46That's not so bad. If you haven't seen the Windows 8 API documentation yet, you should go ahead and have a laugh: http://msdn.microsoft.com/en-us/library/windows/apps/br21137... When most of your method/class names overflow your table of contents' width, you've got a serious problem.
My guess is no one bothered to include UX in their annual commitments when they got the memo for the design change.
Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#47Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#48Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#49Earlier quoted context omitted.
Java is not a complicated language. Something about its affordances pushes developers into these giant labyrinthine swamps of abstraction violation, but the language isn't that complicated, either syntactically or semantically.
The heavy emphasis on classes is what is strange about it. Many programmers don't realize the strangeness since they've used classes their entire careers. A class isn't really a procedural concept. Nothing in a processor knows what a class is. It's more of a modeling language with an assumption that you'll architect your program to group similar methods into abstract trees of domain concepts, with your data at the le…
I do like the way jfb suggests using the concept of 'affordances' with languages/environments, to analyze what sorts of code they encourage. But to really do that, we'd have to actually identify these specific affordances, which i'm not sure how to either.
(And as far as your particular line of argument -- does anything in a processor know what an 'actor' is either? If not, I believe you that you find 'actor' a better abstraction than 'class', but it must not have anything to with either one being something the lower-level computer architectural abstractions 'know about')
Re: Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy
#50knowing absolutely nothing about language design (and not many languages) other than occasional experiments in notepad... is there no language which attempts to allow spaces, maybe with quotes, for better legibility? like instead of org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy something like org.'spring framework'.orm.jdo.'transaction aware persistence manager factory proxy' or is that j…