| sam 的个人资料>>> 這也將會過去 <<<照片日志列表 | 帮助 |
|
12月31日 Groovy MOP DSL AOP隱約記得在google上搜尋 [Groovy AOP]
結果就多看了幾個概念名詞和實做,
可能是我才剛進入Java的世界, 所以對很多名詞和概念還存著好奇的心態吧 :p 有興趣的人可以研究 Groovy MOP实现mini-language 如传说中Java7.0的XML嵌入式语法
http://www.blogjava.net/calvin/archive/2005/08/17/10333.html http://www.javaeye.com/topic/15358 Practically Groovy: Of MOPs and mini-languages
http://www.ibm.com/developerworks/java/library/j-pg09205/ http://www.ibm.com/developerworks/cn/java/j-pg09205/ DynamicGroovyMetaMagic http://www.grails-exchange.com/files/GraemeRocher%20-%20Keynote-DynamicGroovyMetaMagic.pdf SQL, ORM, DSL
http://www.javaeye.com/topic/16610 Painless AOP with Groovy
http://www.infoq.com/articles/aop-with-groovy http://www.infoq.com/cn/articles/aop-with-groovy 會去Google搜尋[Groovy AOP]最大的起因之一應該是這篇文章 , :p
Spring Gossip / AOP 入門 / 從代理機制初探 AOP http://caterpillar.onlyfun.net/Gossip/SpringGossip/FromProxyToAOP.html Spring Gossip http://caterpillar.onlyfun.net/Gossip/SpringGossip/SpringGossip.html [wiki] Domain-specific language http://en.wikipedia.org/wiki/Domain-specific_language Language-oriented programming http://en.wikipedia.org/wiki/Language-oriented_programming Aspect-oriented programming http://en.wikipedia.org/wiki/Aspect-oriented_programming 12月29日 GTD (Getting Things Done) ResoruceGTD (Getting Things Done) Resoruce
[Wiki]
經過研究,結論原來是 所以我更改了bulid.xml 參考文章 <<Chandler的故事>> “Dreaming in code”: Software is hard 12月25日 利用Grails Plugin 撰寫 Java Servlet利用Grails Plugin 撰寫 Java Servlet 這個Plugin很讚,可以直接寫mxml在web-app裡
[1] 先產生一個Grails的Project,這裡的範例叫做DemoPrj
請參照這個範例
// servlet mappings
Using Flex with Spring The factory mechanism [MessageBrokerServlet -> MessageBroker -> Service -> [Spring] -> Destination] Spring BlazeDS Integration Home [Another Way] ...
=====================================================================
12月23日 Gradle Build System本來想研究Grails 的 Script的寫法
利用它來做code generator 以後也可以用在其他案子的Build System http://grails.org/Command+Line+Scripting http://grails.org/doc/1.0.x/guide/4.%20The%20Command%20Line.html 後來陸續發現幾個專案
Gant http://gant.codehaus.org/ Gradle http://www.gradle.org/ Apache Ivy http://ant.apache.org/ivy/ 最讓我感興趣的是Gradle這個Build System
目前學到的:
安裝方便:同Groovy和Grails的安裝方式 http://gradle.org/getting-started.html 語法簡單:撰寫build.gradle,等同在寫Groovy Userguide(有線上版,和PDF下載) http://gradle.org/userguide.html 又發現一個Groovy的應用,真棒
:-) 12月17日 Lua (programming language)Lua (programming language)
http://en.wikipedia.org/wiki/Lua_(programming_language) Scripting系統概論與Lua簡介
http://blog.monkeypotion.net/gameprog/beginner/introduction-of-scripting-system-and-lua 使用Lua實做GUI系統的遊戲實例 http://blog.monkeypotion.net/gameprog/advanced/lua-based-gui-system-from-commercial-game 深入Lua-based GUI系統架構與實做細節 http://blog.monkeypotion.net/gameprog/advanced/lua-based-gui-system 12月9日 如何用 Grooy 發送Email (Using Groovy to Send Emails)Using Groovy to Send Emails
http://www.onjava.com/pub/a/onjava/2007/03/23/using-groovy-to-send-emails.html?page=3 Grails: Sending email using Ant with GMail SMTP server http://memo.feedlr.com/?p=5 另外 Sending SMTP Authenticated, Html E-mail with GroovyTemplates, EmailService and Spring integration http://grails.org/Sending+SMTP+Authenticated+Email,+Html+content+with+GroovyTemplates+and+Spring+integration 發現利用 AntBuilder 是最簡單的方式
所以查AntBuilder 的相關資源 在Groovy中使用Ant
http://www.chinagroovy.org/groovywiki/doku.php/wiki:user_guide:using_ant_from_groovy Using Ant from Groovy http://groovy.codehaus.org/Using+Ant+from+Groovy Using Ant Libraries with AntBuilder
http://docs.codehaus.org/display/GROOVY/Using+Ant+Libraries+with+AntBuilder Class AntBuilder
http://groovy.codehaus.org/api/groovy/util/AntBuilder.html Ant Tasks http://ant.apache.org/manual/CoreTasks/mail.html http://ant.apache.org/manual/coretasklist.html 12月8日 回應: 關於分割程式功能以及 mix-in 和 include回應 關於分割程式功能以及 mix-in 和 include =============================================================== http://lp81sam.spaces.live.com/blog/cns!FE9AB5CD84013FC2!324.entry ------------------------------------------------------------------ ... //test.php $thePerson->moduleName = 'BBB'; //指定你要mixin的模組資料夾 我覺得要達到「由外而內」的重構效果 ===============================================================
回應 [PHP] PHP 密技: include 與 require回應
[PHP] PHP 密技: include 與 require
=====================================================
你講的在這兩個php官方的manual都有提到
另外我以前有個想法
就是在遠端Server拋出php碼 然後用include來接 以前在玩php-gtk的時候
就有想要用include這個技巧來 玩類似java 的webstart ===================================================== 記得要在php.ini
設定這個參數 allow_url_include = On http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen ===================================================== <?php
//client.php include('http://localhost/webstart/server.php'); ?> =======================================================
<?php //server.php /*// $str = '<' . '?php' . "\n" .'echo("hello");' .'?' .'>' .''; //*/ $str = <<<EOT
<?php echo("hello"); ?> EOT; echo($str); ?> ======================================================= 另外我常用的include技巧 應該是用在template或是所謂的view 我想版主之前應該都有討論過 另外也可以像 "模擬呼叫funcion一樣的用法" 傳參數進去,return結果回來 這些都是php既有的特性
簡單易用 Powerful ============================================= 我的blog寫的相關文章 template簡易版,可以改寫成class版, Zendframework也是這樣在用,用在view http://lp81sam.spaces.live.com/blog/cns!FE9AB5CD84013FC2!314.entry 基本上我的原則喜歡在view裡面不要有太多的php code 最棒的是只剩echo 所以我以前都說php我只會echo 這樣view裡面的碼才不會亂, view的功能是展現畫面 一些邏輯處理都放在controller或model ============================================= 這些技巧我想在很多原始碼都會看的到蹤影 |
|
|