2006-02-12

还是关于python的web开发

Peter Hunt在“How Python wins on the Web”里说道:“In fact, what I would love more than anything would be a portable mod_wsgi across Apache, LightTPD, and IIS: a module that would let me drop a .egg file into a directory and have it automatically pick up and install the WSGI application from the archive. Once we've got this, a standard, portable way of easily installing ANY Python web app, we'll be getting somewhere.”心有戚戚焉。

一个大一统的Python Web Framework可能对企业用户更有吸引力,但它肯定不能适用于所有应用。对一个语言来说,拥有众多杀手级的应用才是证明它的存在价值的最好方法。最近工作不太顺心,不过倒正好是个机会,有闲暇的功夫补习这两年Web开发的发展。Zope3Django的发展都不能忽视;但是要建一个好的网站,需要特别开发和优化的东西大多无法依靠这些框架,可能还反受框架之累;比起完整的解决方案,我更喜欢WSGI/Template/ORM这些部分都能各自独立,随心选择不同实现。高内聚,低耦合,这是硬道理呀。

2006-02-11

ColorQuiz




ColorQuiz.comxyb took the free ColorQuiz.com personality test!

"Wants interesting and exciting things to happen. A..."


Click here to read the rest of the results.


Free personality analysis from ColorQuiz.com.
Generated on Fri Feb 10 21:38:41 2006.

Your Existing Situation

    Active, but feels that insufficient progress or reward is being made for the effort exerted.

Your Stress Sources

    Wishes to be independent, unhampered, and free from any limitation or restriction, other than those which he imposes of himself or by his own choice and decision.

Your Restrained Characteristics

    Willing to participate and to allow himself to become involved, but tries to fend off conflict and disturbance in order to reduce tension.

    Remains emotionally unattached even when involved in a close relationship.

    Feels that he cannot do much about his existing problems and difficulties and that he must make the best of things as they are. Able to achieve satisfaction through sexual activity.


Your Desired Objective

    Wants interesting and exciting things to happen. Able to make himself well-liked by his obvious interest and by the very openness of his charm. Over-imaginative and given to fantasy or day-dreaming.

Your Actual Problem

    Seeks to avoid criticism and to prevent restriction of his freedom to act, and to decide for himself by the exercise of great personal charm in his dealings with others.

2006-02-06

脚本语言的胜利

Ruby VS. Java Books碰巧看到“
Ruby on Rails将程式设计化繁为简
”,里面的一张照片很吸引眼球。文章还提到,脚本语言“兼具脚本(scripting)程式语言PHP的速度与易用性,以及Java结构式作法的‘干净和清爽’”,“Ruby on Rails备受瞩目,反映程式设计界兴起一股以脚本程式语言(scripting language)取代Java或微软C#的风潮”。相比于Ruby on RailsPython语言正在开发的Web framework Django也吸引了Python界众多领军人物的眼光,第一个正式版的发布已进入倒计时;而Guido为自己在新公司Google的项目公开征集基于Python的Web framework,更是激起了空前热情的大讨论,网上的妙文不断。有理由相信,2006年将是Python的Web framwrok大发展的一年。而商业公司也在过去的两年里与脚本语言关系越来越密切,微软发布了IronPython,旨在把UNIX开发商吸引到.Net框架中;CNET的文章称,“过去曾经被正统的编程人员认为是玩具的脚本语言正在成为企业软件开发世界的一等公民”。

在这里,我学到的是,在这个竞争激烈、一寸光阴一寸金的年代,开发框架的“易用性”正在成为压倒一切的重要特征;因为易用性给开发、部署、维护方面带来的时间与金钱的节约,是任何投资者都无法忽视的——包括公司的投资者和免费软件程序员。

不过,企业应用一贯是期望使用的语言提供更成熟和繁复的架构,这本身和脚本语言的哲学有些相背;希望今后的几年脚本语言能给这个领域带来一些清新的风,而不是被“企业级应用”带到沟里去,忘了自己的本分。

闲话一句,似乎Perl6的开发进度还是不太乐观,拭目以待吧。