雪夜读书
Monday, October 24, 2011
  ubuntu sucks
I've been using Ubuntu since 606, and it used to be my favorite distribution, but now I want to say it sucks.

After upgrading to 11.10, I noticed that we don't have any choice but Unity. And the result is it is as slow as Vista. I launched gvim, which is my favourite editor. How laggy it is? You type a key, and it doesn't respond. After few seconds, the cursor begins to move down, and now what you want is to make it stop, and you can't. Do they also buffer your key stroke?

Ubuntu always bring us some funny bugs. And today I got one. cups-pdf doesn't have a backend. Then I check the package, and to my surprise dpkg tells me that cups-pdf doesn't have /usr/lib/cups/backend/cups-pdf any more.

I remember the Ubuntu #1 bug. There are too many people using Microsoft. But how they want to close this bug? Emulating Windows with Linux?
 
Wednesday, October 05, 2011
  An Impression on PowerShell
This week I am writing a PowerCLI script to automate the vSphere managment job. Therefore I got some experience on PowerShell. Well, here is my comment on PS.

Basically the overall accessment is NEGATIVE.

Shell is something that glue the applications together. In the Unix world, if you follow some basic convetions, like dealing data with stdin, stdout, stderr, like treat everything as string, like emit exitcode 0 to stand for success, ..., then whatever language you use, whatever library your software depends on, it will be very easy for the end users to call your program with shells. And if other people also follow this convention, then it will be very easy for you to call their program, either in shell or in any program language. But in the PS world, this doesn't work.

In PS, everythig is .NET object. The arguments are, the return values are, even the API that MS provides to call the PS scripts are .NET stuff. So if you try to use a language that is not .NET aware, then you are screwed. In another word, PowerShell is not a shell for the operating system, it is a shell for .NET.

Aside from that, I have to admit MS has done a great job. PowerShell works pretty good by its own. The only problem is shell is not something that mean to play by its own.
 

Archives
September 2006 / October 2006 / November 2006 / October 2011 / January 2012 / June 2013 / December 2013 / October 2014 / June 2015 /


Powered by Blogger

Subscribe to
Posts [Atom]