next reading : Beginning JSP 2: From Novice to Professional
Beginning JSP 2: From Novice to Professional
ch 10: Struts
隨手翻了一下,基本上就是 Java的MVC實作。有張很不錯的圖將來可用來解釋flash mvc。
Beginning JSP 2: From Novice to Professional
ch 10: Struts
隨手翻了一下,基本上就是 Java的MVC實作。有張很不錯的圖將來可用來解釋flash mvc。
下面是從 Data Access with ADO.NET 一書中摘錄出來的片段。
有趣的地方在於 DAO, DataSet, dataProvider 這些名詞對flasher來說有沒有覺得很熟悉?
其它相關的還有data binding等等。
一開始我覺得這是”誰抄誰”(比較偏向 .net 抄java, mm抄.net) 的問題,不過後來想想好的概念與技術本來就會被大家相中來實作,所以mm採取類似的手法(甚至名詞)也就不足為奇了,簡單整理一下整件事的發展歷程應該是
java -> .net -> mm。
可惜的是ADO.NET本身功能強大又完整,是真正的 Data Access Object,而actionscript只學到了部份片毛跟名詞,剩下一切要自已來。(嘆)
Three versions of Visual Basic were released before any database access capabilities were provided with the program. Data Access Objects (DAO) technology was added with the release of Visual Basic 3. DAO enabled programmers to access local databases in the Microsoft Jet Database Engine format, which were primarily ISAM (Indexed Sequential Access Method) files. With DAO you could also access databases on a server, but I always found performance between a client and a server to be poor because DAO was optimized for local access.
After DAO came Remote Data Objects (RDO) and then ActiveX Data Objects (ADO). These data access technologies were designed for the client/server paradigm. With the movement away from a client/server model to an n-tier, loosely coupled design, a new data access methodology is required.
ADO.NET components have been designed from the ground up for faster data access and data manipulation in an n-tier environment. Two central components of ADO.NET accomplish this: the in-memory DataSet object and the .NET data provider. The data provider is a set of components that include the Connection, Command, DataReader, and DataAdapter objects. I’ll go into more detail about the DataSet object and the data provider objects shortly. First let’s see how ADO and ADO.NET compare.
blogjet 做的事跟w.bloogar一樣,都是「所見即所得」式的編輯器,比較好的地方是支援中文(但別高興太早,只有標題支援中文)
同時它支援一狗票的blog系統,例如 MT, wordpress…
安裝與 使用都非常順利,而且經過一點小設定就可以透過ftp自動上傳檔案並顯示出來,
比原wp提供的功能好太多了。
這樣一來以後就可以在一個比較像樣的文字編輯器裏寫文章,或存檔保留幾天,
等全部完成後再發佈出來。
如果它能有mac版就真正讚啊~
unit test很重要大家都知道,但actionscript要用什麼工具來進行測試?(不,ctrl-Enter 叫compile,那不是測試,頂多只能說是人工測試)
as2unit 是最早出現的unit test工具。
flexUnit 是專給flex / mxml 用的工具。
這兩個工具都是以 JUnit 為基礎改版而來,因此使用方式都不差不多,
但要如何與既有的開發流程結合就是大學問了,
未來將會有一篇詳細的心得介紹。
最近研究的重心轉移到 document generation 與 version control,所以玩了不少相關軟體與技術,
先速記一個非常漂亮且open source 的文件產生器 Doxys
可惜它只支援C++,如果能有AS2 版本就好了。
其它幾個已完成試用的是:
NaturDoc
AS2DOC
BLDoc
WysiDOC
AS2DocGen
其中有些功能很多很漂亮但是要錢,
有些免錢但實在醜到不行(或許法詭異),
因此最後我還是選擇類似 javaDoc的語法(也就是 @param 這樣的型式,跟mm目前採用的方法一致),
搭配BLDoc來產生文件。
基本上選擇document軟體時我的標準有二:
1、一定要是human readable:也就是不能寫太多額外的符號或tag,導致最後不用軟體產生文件就讀不下去
2、要能快速撰寫,不然工程師一定會嫌麻煩就不寫最後程式長大就悔不當初。
簡單來講,支援AS2的document軟體裏,WysiDoc 是我的首選,但它不是open source所以再聯絡。
而doxys則是漂亮到即使程式寫的爛但有那種文件也死有餘辜心滿意足,但可惜不支援AS2,所以….orz