2007年10月27日星期六

Language really does matter

Language does matter. It determines how you perceive the world—and it determines your world. Your programming language determines how you think about software solutions and the way you think about the underlying problems. Your knowledge of programming languages is key to your personal skill portfolio as a software developer.

Source code is a means of communication: from you to the compiler, to other team members, and then back to you. There is both a technical and a human aspect in this communication. Classical programming languages focus on the technical aspect and are optimized for performance and resource consumption. Other languages focus on the human aspect, trying to reveal the programmer’s intent in the code as clearly as possible. Many attempts have been made to bridge the two aspects, ranging from Literate Programming to Programming in Logic, none of which has taken the world by storm.

——Groovy in Action

2007年10月23日星期二

Expand OSGi to more extent

Complementing its Rich Client Platform (RCP), the Eclipse Foundation is now releasing version 1.0 of the server counterpart, the Rich Application Platform (RAP). It’s a Java-based platform that enables Java developers to work in Java, rather than JavaScript, to develop server-based rich browser clients.

In contrast to Eclipse’s original direction that focused on development tools, the RCP and RAP are run time environments. Using the Eclipse Java IDE (plus other Eclipse plug-ins) as the development platform, both rich run times transform the Java code at run time to JavaScript. The idea of having a server run time is that, if you are exposing the same base data to multiple clients, it makes more sense to run that portion of the rich application back on the server.

blog it

2007年10月12日星期五

传统的力量

为了研究传统的形成、本质及人们对传统的态度,科学家做了这样的一个实验:
把5只猴子关在一个笼子里,在笼子的一角挂一串香蕉。猴子看到香蕉自然会去吃。这时,科学家从笼子上面用滚烫的热水浇下来,猴子被热水烫到,便不敢去吃香蕉。如此反复多次,猴子便记住香蕉是不能吃的,因为会被热水烫。
科学家从笼子中抽出一只猴子,放进一只新猴子。新猴子看到香蕉同样会去吃,结果发生了什么?另外4只猴子按住新猴子一顿狂打,新猴子便不敢再吃。如此反复,新猴子也不去吃香蕉,因为会挨打。
科学家再从笼子中抽出一只老猴子,放进一只新猴子,发生了同样的情况。但是另外4只猴子中,打的最狠的竟然是之前没被水烫过的那只猴子。于是,这只新猴子也不去吃香蕉。
如此下去,当之前的5只猴子全被换掉,笼子里全部是没被热水浇过的猴子时,笼子里形成了一个传统——所有的猴子都不吃香蕉,因为吃香蕉会被打。
而这个传统的根源究竟是什么,没有猴子知道。。。