Skip to main content

The Zen of TurboGears, my version

· One min read

The Zen of TurboGears, by Fred Lin

Keep simple things simple and complex things possible Give defaults while you give choices Give choices while the one obvious way depends

Make it work Make it right Make it fast

Pythonic is better than domain specific Easy configuration is clear than convention Integration counts Batteries included rocks Flexibility flow ideas into each part of code

keep data in Model and seperated logic from Template Widgets are one honking great idea -- let's do more of those!

從 Ruby 到 Python

· One min read

從 Ruby 到 Python 一文的目的是向 Ruby 語言的使用者介紹 Python 語言.

文章中標出高亮度的部份是可以修改成目標語言 (Java, PHP.... 等等) 的部份。歡迎使用相同的版型與內容,群策群力,創作一系列 "從 xxx 到 Python" 的系列介紹文章.

有問題或建議請在 Google Group 中提出

從 C 到 Python

· One min read

從 C 到 Python 一文的目的是向 C 語言的使用者介紹 Python 語言.

文章中標出高亮度的部份是可以修改成目標語言 (Java, PHP.... 等等) 的部份。歡迎使用相同的版型與內容,群策群力,創作一系列 "從 xxx 到 Python" 的系列介紹文章.

有問題或建議請在 Google Group 中提出

Rails 'link_to_remote' helper as TurboGears AJAX widgets

· One min read

I wrote a doc in TurboGears doc site: Wrap AJAX operation in Widgets, which demonstrates how to use the widget to do basic AJAX operation as Rails 'link_to_remote' helper.

The RemoteLink widget works differ from Rails 'link_to_remote' helper. It's simple, pure python(while you use it) and fully 'optional'! 'Optional' means if you remove the widget, your site still functional. Thanks to the mochikit cool functions :-)