显示标签为“快乐Groovy”的博文。显示所有博文
显示标签为“快乐Groovy”的博文。显示所有博文

2007年3月20日星期二

为你的IDE选择合适的字体

这里有个网站推荐了二十多种适合显示代码的字体:

Monospace/Fixed Width Programmer's Fonts

他的评判标准是:
Good Programming Font Criteria
* Crisp clear characters.
* Extended characterset.
* Good use of whitespace.
* 'l', '1' and 'i' are easily distinguished
* '0', 'o' and 'O' are easily distinguished
* forward quotes from back quotes are easily distinguished -prefer mirrored appearance
* Clear punctuation characters, especially braces, parenthesis and brackets

看来看去,还是觉得其中的“Monaco”比较顺眼(可以在上面的网站下载到,有时间多找几种来试试^_^),这是应用在eclipse里面的效果:


上面的代码看起来怎么如此怪异?别惊慌,这是Groovy的GroovyServlet写法,短短的几行代码,就向客户端发送了一段xml,呵呵,说实话,我很喜欢。更多相关内容,将会在以后的文章中详述^_^

2007年1月15日星期一

2007年1月3日星期三

Groovy 1.0发布!

好久没有关注groovy(An agile dynamic language for the Java Platform)这个java世界的原生脚本了,今天打开maillist,惊奇的发现1.0 finally 版正式发布了,赶紧down一份瞧瞧^_^下载地址:
http://dist.codehaus.org/groovy/distributions/?C=M;O=D

至于参考资料,发布包自带了一些,也可以上官方网站看看教程。另外,目前所知道的,还有两本相关书籍会出版,一本是Manning的《Groovy in Action》,另一本是Morgan Kaufmann的《Groovy Programming: An Introduction for Java Developers》,如果把模仿Rails的Grails算上,还有一本Apress的《The Definitive Guide to Grails》,这些书想要在国内看到是不太可能的了,出版社不会对这个偏门的东西感兴趣的,期待电子版的到来,0day万岁^_^