From Forest to Cafe - Book Review "J2EE Design Development Programming Guide"

zhaozj2021-02-08  258

From the forest to cafes

- a different classic

(The first "programmer" 2003 No. 11)

Word / razor

"J2EE Design Development Programming Guide", Rod Johnson, Wrox 2002, Electronic Industry Press, 2003.

There are more than ten books named "C " on my bookshelf, and this is a classic -essential C , Effective C , Exceptional C , C Primer, the C Programming Language, C STL ... understand the reader of the market Know that these classic good books have taken advantage of a while and the wind from the other side of the strait. However, it is homing that in such a bunch of books "C ", only one book is not so classic book (Virtual Machine Design and Implementation In C / C ) really introduces "how to use C A actual thing. " Other classics seem to pay more attention to the many restrictions between the C language itself and the fine details, and how to use fine code skills to bypass these "traps and pitfalls" - ah, yes, this is also a C classic good The name of the book. Ian Joyner once said: "Learn C to spend so long, spending so long, there is no need to master programming or object-oriented design technology." It seems that this is inevitable.

It seems that Java people seem to be lucky. From the first day of birth, Java is considered a simpler programming language, while the operational mechanism of the virtual machine also makes it greatly simplified (compared to C ). Moreover, in the J2EE world in the battlefield, many code-level tips have become incapacitated (if not meaningless) - the string connection will be improved with StringBuffer (not String) , But Who Cares?

However, when Java's beginners entering J2EE's world with full confident, the information tide will often make them a big finger. The intricate architecture, everywhere, the design pattern, the shape of the frame, and the library, and the emergency technical specification, and those magic mysteries, the three letters, four letters, plus the words, plus Each camp never stops dispute and accusation of Sun. This magic forest is far more than "JSP servlet EJB" is so simple, MVC is far less than painting a map of Treasure, Open Source is often enthusiastically helped. Explorers in the jungle helplessly pray for the sun to specify the road for them, but it is always a pretty saying that is not cold: There's Nothing New Under the sun.

Therefore, Java people never treat most of the "J2EE Programming Guide" as a classic - there is a monster encyclopedia that may have been outdated. They prefer a humble "leader": he may not understand the whole picture of this forest, but he knows clearly knows the route to a place; he even never claims that his route is the fastest and easiest, but adventure They can relieve him to reach their destination. Undoubtedly, Rod Johnson's "J2EE Design Development Programming Guide" is the leader in these leaders.

"Expert One-to-One", Wrox's series of books always reminds me of the weekend nights, sitting with a master friend sitting on the face, drinking Cappuccino, talking about the idea of ​​the technology. Rod Johnson, the member of this Servlet specification expert group is happy to play a role of "master friends". From the beginning, he did not intend to intend to "paper". No, he doesn't want to introduce J2EE's thin branches in this book, just want you to know how he understands J2EE, how to use J2EE to develop enterprise applications. So, this time I started, he told you unsoules: J2EE's "portability" is only a myth, and EJB is not the only technology to achieve intermediate layers. He also uses more than 30 pages of space Teach you how to test J2EE app ... This will be a pleasant communication, you will think so, because he has some fresh insights. Suddenly, the candlelight began to sway the darkness. The conversation between you suddenly became fascinated - from Chapter 7, Rod Johnson entered his most interested topic: J2EE application data access. He does not pay attention to: Software application should be driven by an object model or should be driven by a database model. This is a "philosophical problem" for a long time, and has no only answer. Therefore, ignoring the naturally occurring "impedance mismatch" of O / R mapping, trying to hide the existence of the database in any form of O / R mapping, which can only be an irresponsible advertising word. Subsequently, Sun recommended J2EE persistence solution --entity bean - also has been the most violent attack, Rod Johnson, "Entity Bean should only be an optional part of EJB specification, and JDO is more reason to become J2EE's persistence technology standard. ... Oh, I think I should have a mouth, this is enough to discuss the J2EE people, or leave the reader to taste it.

From the content of this book, Rod Johnson developed a J2EE framework called "Spring", which probably suggests his position: he is a practicalist who is better than ideology. Unlike the sample code of most books, Spring is a real industrial-grade framework - Rod Johnson will be columpend with Struts and Webwork. If this book allows you to like Rod Johnson, maybe you can learn more by Spring.

In such a book review, how should I evaluate the Chinese translation of this J2EE Design Development Programming Guide? Maybe you can use a friend, "Everything is as bad as possible" - Every time I read this translation for a while, I have to turn it out of "seven collection", because these translator's words I have a bad breath. I heard that the number of people on the cover of Wrox is inversely proportional to the quality of the book, and it seems that the same law is also applicable to their translation.

转载请注明原文地址:https://www.9cbs.com/read-757.html

New Post(0)