2008年8月24日

Beginning Groovy and Grails: From Novice to Professional

首先,我打算分享一點淺見,說明我對新framework所抱持的心態:

開發Web Application已不是昔日寫網頁那麼容易,許多企業應用資訊系統開發,是將原本的Desktop App轉移到Web,將Web取代Window作為使用者介面的呈現方式,而背後常是複雜到像蜘蛛網一般的架構,經常搞得開發人員連自己在做些甚麼都難以弄清楚。

選擇一套的好framework作為Web App開發的基礎,可說攸關一個專案的生與死,好的framework讓專案開發效率加倍、容易測試除錯、減少問題發生、提供足夠的彈性應付各種需求,不合適的framework則讓噩夢不斷迴盪在團隊之中,直到忍痛將framework換掉(就像重新打地基、房子必須整個重蓋一樣)。

甚麼是最好的framework??這沒有明確的答案,因為不同類型的專案、不同的情境、不同的參與團隊,都必須審慎決定評估適用的framework,這仰賴決策者的經驗,沒有足夠軟體開發的實務經驗,是很難做出正確的抉擇。而連framework都不用,企圖土法煉鋼打造大軟體,就像小朋友玩大車,看不見的風險四面埋伏。

Java的Web framework有很多,其中也有不少優秀之選,不過隨著時代演變,三年前最好的選擇,迄今可能面臨遭淘汰的挑戰。放棄已經熟悉的工具、方法,對已經有些資歷的軟體工程師來說,重新學習或許會覺得有些無力感,但是資訊技術本來就是快速演進,新的工具及方法,經常改善了既有的問題,經常能讓我們用一種新的效率、新的視野開發新的軟體。

不妨將嚐鮮當作一種娛樂,用一種好玩的心態去擁抱新技術,那些學校不會教、業界不太用、還沒出版書的新技術,往往很可能帶來全新的想法,也往往很可能就是下個熱門的主流,下這個賭注卻不需投資太多。

以2G(Groovy/Grails)目前的階段,開始學它已經不算早,它不用花很多時間學,卻可能讓開發Web App的想法有些轉變,或許你會試著用它、或許會試著採用類似的作法,也或許會採納它的一些優點,特別是已經有J2EE開發經驗的程序員,幫助可能會更多一些。

這本書的一些介紹:

Product Description
Web frameworks are playing a major role in the creation of today's most compelling web applications, because they automate many of the tedious tasks, allowing developers to instead focus on providing users with creative and powerful features. Java developers have been particularly fortunate in this area, having been able to take advantage of Grails, an open source framework that supercharges productivity when building Java–driven web sites. Grails is based on Groovy, which is a very popular and growing dynamic scripting language for Java developers and was inspired by Python, Ruby, and Smalltalk.

Beginning Groovy and Grails is the first introductory book on the Groovy language and its primary web framework, Grails.

This book gets you started with Groovy and Grails and culminates in the example and possible application of some real–world projects. You follow along with the development of each project, implementing and running each application while learning new features along the way.

What you’ll learn
Understand the fundamentals of the open source, dynamic Groovy scripting language and the Grails web framework.
Capitalize upon Grails’ well–defined framework architecture to build web applications faster than ever before.
Improve your web application with cutting–edge interface enhancements using Ajax.
Use Grails’ object–relational mapping solution, GORM, to manage your data store more effectively than ever before.
Take advantage of Groovy to create reporting services, implement batch processing, and create alternative client interfaces.
Deploy and upgrade your Grails–driven applications with expertise and ease.
Discover an alternative client in Groovy as well.

Who is this book for?
Java and web developers looking to learn and embrace the power and flexibility offered by the Grails framework and Groovy scripting language

2 則留言:

  1. 請問,請以現在的環境來看,學習2G(Groovy/Grails)是否有其價值?

    回覆刪除
  2. 如果要在 Java EE 世界打滾,Groovy, Gradle, Grails 熟悉之後就像如虎添翼:XD

    回覆刪除

lyhcode by lyhcode
歡迎轉載,請務必註明出處!