Sunday, September 5, 2010

Would like to move on "dynamic"-Java can also be "dynamic" and flexible

As long as you like, serious rules of java can also become "dynamic" flexibility up. Moving with the benefits of moving and static have static benefits. As the saying goes, "No rules no standards," but "life is precious, love is even more, if it is for free, which can be cast." So as a busy world of art in the program's subjects who do we go from here? Defect to the dynamic language camp, or to continue to fight in the moderate and the Java area? In my view, "moving" or "no action" needed a golden point. 

1, look for "dynamic" and "fixed" the golden section point 


Two years ago, with Martin Fowler represented the collective group of masters suddenly defected to the dynamic language camp, armed with RoR that "nuclear weapons", shouting to be off Java, to replace Java. Looking back now, the dynamic language to us had brought revolutionary ideas, but we also find a handful of masters. 

For strongly typed Java language, and the true dynamic language than, and indeed, subject to many restrictions. In my view, by a certain master of metaphor, Ruby Agile very cursive, and java is the block. Using Ruby, 10 programmers to write programs that ten out of style, this is a writing is the same. The Java is neatly Times New Roman square, cross a horizontal, vertical is vertical, the first to write a post which was which plan, all the provisions of good in comparison. Strongly typed static language from the grammar underlying the establishment of a more stable system of rules, so more regular in the long run, or for large projects, there is definitely a standard Bingju norms stringent than the standard does not up from the strict performance scalability, and maintainability to be much good. 

Strongly typed dynamic languages and static languages, they have their own specialty areas. In enterprise applications, JavaEE advantage is not set up one or two days. The Dynamic Language is actually a long time, I think that should be considered the best javascript, and look at the writing process with the asp, server and client-side scripts using js, for small applications, indeed very comfortable. The past two years, the popular concept stocks as Ajax, javascript more brilliance, prototype.js and a number of Ajax frameworks and the engine has even more of OO javascript and dynamic features to the limit. The ferocious RoR, in my opinion the best first go with php, Python similar competitors such good PK years, if not, then they burn out, then come to study "how much light years to exterminate java "such a proposition. 

Applications for small, compact, flexible, simple dynamic languages will certainly occupy a certain advantage in opportunities. But for large-scale enterprise applications, dynamic languages such clever, live, random just as its disadvantages. The reasons for this addition to its own capabilities (multi-core, thread, system resources, etc.) other than the limited, too, "grass" has also limited the reasons for its development. Facts have proved that dynamic languages can do, we adjust the static language slightly with half a brain can do, such as Groovy; the language can do static and dynamic language death can not do, unless he becomes a static strongly typed language, such as multi-core thread, two-stage distributed transaction. If you do, he may not only dynamic language. 

Moving with the benefits of moving and static have static benefits. As the saying goes, "No rules no standards," but "life is precious, love is even more, if for free help, which can be cast." So as a busy world of art in the program's subjects who do we go from here? Defect to the dynamic language camp, or to continue to fight in the moderate and the Java area? 

In my view, "moving" or "no action" needed a golden point. The reason why the EasyJWeb provide "dynamic" feature support, but also search for such a split points done, and to the advantages of dynamic to static Fenxi, weighed, and then Rang Ying Yong JavaEE development easier through. Trying to find this golden split points, pairs of some very good dynamic characteristics and ideas to provide application-level support, Er Duiyuyixie to regulate the properties to generate Xiaoshuai, insisted the promotion application. Java in the community, many people find the split points for effort. Java itself has recognized this in its new version has added some excellent support for dynamic language features. 

Of course, always felt "bound by the limits" of us, can "move" a little, like "grass" when the "grass" two, this is a very happy thing. Therefore, EasyJWeb Java-based platform for such a specification and the environment as the basis of the premise, to do some work, made me in a certain range that we have the flexibility to "move", with the sex to "grass up", This allows us a free hand, easily bold move forward. Now, I through some examples. 

2, Variety CmdAction-AbstractCmdAction 

In EasyJWeb-.10 new version of the Command type is AbstractCmdAction Action base class, provide enough flexibility to feature so that you can get the same punch as so esoteric writing Java Web Action. Can you different scenarios, such as using dynamic languages as written in Action in the command.

No comments:

Post a Comment