Comment Re:Code generation a necessity (Score 0) 262
This is because Java is an single-inheritance, object-oriented programming language, which is great for single inheritance, object-oriented programming. But not for the type of component-oriented programming that EJB land requires. Java just doesn't provide adequate abstraction from the plumbing and as a result, programming EJBs feels like rather an ad hoc process, requiring a whole bunch of junk to be repeated every time the process is started anew.
In this case, a better solution is a better programming language, with better abstractions for the target domain. "Code generation" is simply a band-aid solution (in this case) that automagically gives you a solution. This is ok if you understand what it's doing but dangerous if you don't. Abstraction, not magic, is the key.
In this case, a better solution is a better programming language, with better abstractions for the target domain. "Code generation" is simply a band-aid solution (in this case) that automagically gives you a solution. This is ok if you understand what it's doing but dangerous if you don't. Abstraction, not magic, is the key.