Exceptions and casual programming

Exceptions have somewhat of a bad reputation in serious programmingcircles. People feel that they are troublesome for various reasons,including that they are non-local gotos and they make it hard toguarantee that you really are cleaning up after problems. (You canfind posts about this at Joel on Software and in Raymond Chen's blog,among other places.)

I don't know about that, but I do know that exceptions are really goodfor casual programs, which is what I mostly write. Casual programs


Exceptions as efficient programming

Python likes to make programming efficient: that is, to make programsfast and easy to write, and eliminate the tedious drudgery. Prettymuch all dynamically typed languages do, since static typing is a lotof effort (except in languages with a lot of type inference, where itis only some effort).

After writing yesterday's entry ,it's struck me that exceptions are a form of efficientprogramming, because they let you aggregate error checking and errorhandling across a large block of code.

Without exceptions


第一次練習

星期日晚去了第一次的 GBA 練習。

有關 GBA ,我之前已有寫過,他們是中大的一隊 A capella ,全名是 Girls & Boys A capella ,也就是無伴奏和聲。在之前大專賽奪得冠軍而揚名,所以多了演出的機會,下一個表演需要比較多人 ( 是否有保密協議? )


熱到飛起

今日真係熱到飛起哦~
我平時真係盡量都唔開冷氣的,特別在屋企的時候.今日要在屋企攪觸映份子的網頁,已經開晒窗打開埋大門,但係一點風都沒有.終於要開足一日冷氣哦~~

攪左一日的網頁更新已經做好了 ,有時間上來

佈告A

1.招呼

是不是就要書展了?誰知道。今年將是我第二次去書展(第一次是第一屆),星期六、日晚隨緣相見,最好買埋野飲野食黎藝發局攤位探班。

2.廣告

有兩本書呢,不如大家呢,買黎睇下啦。 其實呢,入面呢,都有呢,

成為象徵

不要讓他人成為你的象徵,因為成為別人的象徵是很累的事,不可以這樣要求別人。

大學生活的那些精神剩餘——諸如創造力、隨心所欲、怪異、揮霍等等,並非已經完全與職業的生活絕緣,只是更加困難,需要不斷變換方式,

20050718網摘 – 3721當然是病毒!

網站發展

Blog and RSS

聽聽歌,PodPodCast


Steamboy – 科技「以人為本」的疑問

steamboy

其實自己想看《Steamboy》好久,始終是大友克洋的作品嘛,但卻一直未買 DVD,所以也未看。而意外地發現,竟然在百老匯電影中心有上《Steamboy》,立即二話不說,乖乖買票。

上一年的日本動畫界是非常熱鬥的,三大動畫巨頭都有作品:


How many places actually send us email?

A few weeks ago I discovered that only 220 different IP addresses sentus actual email over the course of a week. This naturally raises thequestion: was this just a slow week, or is this typical? The answerturns out to be 'maybe'.

On the system I usually run my stats on, I only have logs going backabout 28 days; looking at the entire time period, there was email from443 different IP addresses. Not surprisingly, the distribution of howmuch


Skills I use when troubleshooting

A while back I wrote about FutureSysadminJobs and suggested thatpeople who wanted satisfying careers as system administrators overthe long term should develop the skills to be troubleshooters. Whichbegs the question: what are those skills?

The first and most important skill is: you have to find all thisinteresting . Enjoying being a curious packrat is not entirelyrequired, but I think it helps a whole lot, especially as you'llprobably need to learn a number of things on your own time.

Other than that, based on my