free hit counter March 2006 - Posts - Nauman Leghari's Blog

March 2006 - Posts

Micheal Robertson writes
"Bye Bye Microsoft Word, Hello ajaxWrite"
What if there was alternative for Microsoft Word that would install and open in 6 seconds, read and write Microsoft Word .doc files and run on Macintosh, Microsoft Windows or Linux computers? And oh yeah, it was FREE so consumers didn't have to pay $499 for Microsoft Office. I'm excited to announce that day is here....

The service looks really cool from the images on his website, but there is a slight problem here. You can't use the service and not because it is in alpha/beta, but because the service is temporarily not available.

This is a common problem with most of the Web 2.0 services and even google sometimes give you a nice message to hide this fact.

Can someone seriously use these online applications for any important work if you face such problems? Although, with application on your PC, you can fix the problem because you own the software. But here, you are completely stuffed if there are some issues with the service provider.

I can see some excuses for work in the near future:
"Sir, I am unable to complete my work because..."
- the "ajaxWrite" application was down because of the digg/slashdot effect.
- the company behind my Word application was upgrading their servers. blah blah.

Although some of the services provided are excellent but you just can't replace the rich client experience on your desktop. Welcome to the real world.

Now, all of a sudden I found it hard to browse through Yahoo Finance.

Try Google Finance

For future reference, here are few things to look for during refactoring the source.

Comments
-          Lots of comment explaining a piece of code -> Extract the code in a separate method
-          When comment explains preconditions -> Use Assertions

Long Method
-          Look for comments to extract methods
-          Extract methods semantically

Long Class
-          Extract class if there are too many responsibilities
-          Extract interface if you can identify subset of features that clients can use

Long Parameter List
-          See if the method is being used to do more than 1 action and the logic is controlled by the parameters ( eg. Add/Update in a single method )
-          If the parameters come from a single object, pass the object or extract an object out of parameters

Names
-          Avoid Hungarian notations
-          Name the method so that it communicates to other people ( Avoid One or Two Character names, Numbered variables, Odd abbreviations, Misleading names )

Unnecessary Complexity
-          Dead code
-          YAGNI principle ( avoid unnecessary generalization )

Duplication
-          Magic Number -> Replace numbers inside code body into symbolic constants
-          Extract Methods to pull duplication code and put it inside the most appropriate class. Otherwise, extract a class and use it.
-          Combine classes if two classes are doing mostly similar stuff.

As part of another project, I wrapped the very basic functionality of "avicap32.dll" to use webcam in your own applications. Well for some reason, I'm unable to continue working on it so I decided to put the source online which I hope will save someone a little time.

Read & Download

I received a lot of complains regarding "WinFS Junior" on the problem of launching the application once the download is completed. Just because "WinFS Junior" removes the file from the original directory it is not possible to run it from the download dialog.

Hence, I came up with the "Recent Downloads" item in the context menu so that you can access the recent downloaded applications. You can also open the target downloads directory from the menu.

The new version is available from the same link.

The Apprentice :: Watch Online
http://www.bbc.co.uk/apprentice/video/episode_one.shtml

PodZinger - Search inside podcasts
http://www.podzinger.com/

Process Tamer - Control the processes behaving badly
http://www.donationcoder.com/Software/Mouser/proctamer/index.html

How to write a killer resume (Software Engineer)
http://ofb.net/~niniane/resume_howto.html

Oracle Database 10g Express Edition (Free Download)
http://www.oracle.com/technology/software/products/database/xe/index.html

 

Until now, I have been using Juice Podcast receiver as my favourite application for subscribing to podcasts. The main reason for using Juice is small footprint and fast execution with a fairly decent user interface.

Yesterday, I found ZiePod, which is another Podcast receiver and after using it for a day, I am totally converted to the new application. For beginners, ZiePod has a much better interface than the Juice podcast receiver. And don't think that it is a bloated application because of the user interface. I found it as fast as the juice receiver if not better. The other notable features is that it has a built-in media player for running files and a three-pane interface which is much better suited to view podcast episodes and the show notes.

Some benefits that I see in Juice receiver is that it is Open Source (GPL), and has versions for other platforms such as Mac and Linux. But, if you are a windows user and don't feel anything against closed source applications then ZiePod is definately an application to give a try.

Download

Technorati Tags: |

More Posts