Archive

Archive for July, 2008

Added Commenting functionality

July 12th, 2008

Nowadays, commenting is considered a must for a blog. If you have a blog that does not allow your precious readers to present their thoughts, you must be so ashamed of yourself to claim that it is a blog. Well, I am not exception. But this is a static blog site. Except a bunch of well formatted html files, my site has no database server, no Ruby on Rails, no C#, no anything that can provide the necessary facility to implement the dynamic commenting system.

What should I do?

Disqus comes to the rescue. Disqus is one of the commenting system based on Javascript technology. To use it, you simply go to Disqus’s website, register an account, put one line of Javascript code into your static html page. Then you’re done. It’s that simple.

James Blog

Revisiting C#

July 7th, 2008

After extensively programming in Ruby for almost two years, I am required to do something non-trivial in C# recently. Several years passed since last time I wrote code in C# days and nights. Good old days. These days I’ve been refreshing my memory and picking up my C# skills. I’m feeling good: the language has evolved a bit but not so much. I’m confident that I will be productive in a few days and proficient in it probably after a few weeks.

The application I’m working on is a general server-side application, which is multi-threaded, consuming a web service, talking to a database, providing a SOAP web service, etc. It appears very likely to be Network bound and database bound. Async I/O seems the natural way to go. Whatever, let’s wait and see.

In contrast to Ruby, C# perfors much better and less memory-hungry, I tend to take C# as my choice of server-side programming, especially for heavy-lifting stuffs. That doesn’t mean I give up Ruby yet, I still need to take out some time to check out EventMachine.

James C#