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#
Just imagine that your blog is getting popular, redditted, dugg, or slashdotted, traffic that you’ve been waiting for months or years suddenly becomes so aplenty, or actually overwhelming. Your shared hosted blog site is causing so much trouble to the miserable already overcrowded server, that the host shut your site down, or suggest that you upgrade to their more expensive plan that enables you own your dedicated server. Your site is embarrassingly down for days, while you are working hard at the upgrading. After you’re done, the traffic is gone. Then you stuck at the expensive plan that has very little use.
Enter Rassmalog—a static blogging software that can generate htmls for all you blog entries. The setup is straightforward. You buy a vps (Xen VPS recommended), install your favorite Linux distribution, install a lightweight web server (NGinx or Lighttpd is suggested). Install RassmaLog onto your desktop at home, then
rake new
to create your first post. To be honest, the YAML format RassmaLog uses DOES need a bit time to get used to. But don’t worry, it’s not big deal.
rake gen
to generate the htmls and to upload them to your host, you execute
rake upload
You are done and ready to rock! With NGinx (what I choose)’s horse power, you can handle spiky traffic from Slashdot, Reddit, Yahoo, Digg all together.
The only caveat is that you have to outsource the commenting system to external sites such as Disqus.
James Blog, Ruby