Database

What database did you use?

We didn’t use one. We just stored everything in files. The Unix file system is pretty good at not losing your data, especially if you put the files on a Netapp.

It is a common mistake to think of Web-based apps as interfaces to databases. Desktop apps aren’t just interfaces to databases; why should Web-based apps be any different? The hard part is not where you store the data, but what the software does.

While we were doing Viaweb, we took a good deal of heat from pseudo-technical people like VCs and industry analysts for not using a database– and for using cheap Intel boxes running FreeBSD as servers. But when we were getting bought by Yahoo, we found that they also just stored everything in files– and all their servers were also cheap Intel boxes running FreeBSD.

(During the Bubble, Oracle used to run ads saying that Yahoo ran on Oracle software. I found this hard to believe, so I asked around. It turned out the Yahoo accounting department used Oracle.)

— Viaweb FAQ

— Paul Graham

2012.08.17 Friday ACHK

Memento 4

They were right. Lists are the only way out of this mess.

Here’s the truth: People, even regular people, are never just any one person with one set of attributes. It’s not that simple. We’re all at the mercy of the limbic system, clouds of electricity drifting through the brain. Every man is broken into twenty-four-hour fractions, and then again within those twenty-four hours. It’s a daily pantomime, one man yielding control to the next: a backstage crowded with old hacks clamoring for their turn in the spotlight. Every week, every day. The angry man hands the baton over to the sulking man, and in turn to the sex addict, the introvert, the conversationalist. Every man is a mob, a chain gang of idiots.

This is the tragedy of life. Because for a few minutes of every day, every man becomes a genius. Moments of clarity, insight, whatever you want to call them. The clouds part, the planets get in a neat little line, and everything becomes obvious. I should quit smoking, maybe, or here’s how I could make a fast million, or such and such is the key to eternal happiness. That’s the miserable truth. For a few moments, the secrets of the universe are opened to us. Life is a cheap parlor trick.

But then the genius, the savant, has to hand over the controls to the next guy down the pike, most likely the guy who just wants to eat potato chips, and insight and brilliance and salvation are all entrusted to a moron or a hedonist or a narcoleptic.

The only way out of this mess, of course, is to take steps to ensure that you control the idiots that you become. To take your chain gang, hand in hand, and lead them. The best way to do this is with a list.

— Memento Mori

— Jonathan Nolan

2012.08.17 Friday ACHK

故事連線 1.1.1

這段改編自 2010 年 3 月 27 日的對話。

攻讀博士學位的最大問題是,你花得最多時間的,將會是那些「技術細節」和「沉悶工序」。而大部分的「技術細節」和「沉悶工序」,偏偏沒有所謂的「學術價值」,導致不能寫進博士論文當中。

例如,你花了大約一個月,才千辛萬苦地為實驗室訂購到,你研究題目全部所需的實驗儀器。另外,做實驗時,其中一部電腦壞了,你花了一整天去修理。

然後,你再發現,實驗所用的其中一個電腦程式有嚴重錯誤,導致實驗不能繼續。但是,那個程式不是你編寫的,而原作者又已在很久前,離開了實驗室。他有留下的源程式碼(source code)。可惜,那堆源程式碼共有二萬多行,而中間又沒有任何說明文件,指引你如何修改。你花了一星期,終於聯絡到原作者。

但是,他說,那程式是他在三年前寫下的,細節已經忘記了。於是,你企圖說服你博士論文的指導教授,原本的實驗是可以避免的,因為你想到一個有類似效果的實驗,而又可以避開那個有嚴重錯誤的程式。不幸,教授堅持,原本的實驗至關重要,無論如何,一定要完成。結果,由於教授的「無論如何」,你要再花三個月的時間,由零開始,寫過一個全新的程式,去代替原本的程式。

中途,你還要為本科生準備導修課和批改功課。只要你稍為有良知,要為那些導修課,維持最起碼的質素,你就已經要投放,全部工作時間中的,至少五份之一。

除了做研究和指導本科生外,你還有自己的課要上,自己的試要考。

試想想,以上的劇情,你又怎可以寫進博士論文呢?

— Me@2012.08.17

2012.08.17 Friday (c) All rights reserved by ACHK