Extension methods are a great way of adding functionality to existing classes. It almost makes C# similar to ruby/javascript, where none of the classes are “closed” – functionality can be added to them at any point of time.
For example, say we want the method ToTitleCase
to be available to all String objects, and we define an [...]
We were a bit late in our plans, but finally Samson gave the go-ahead.
“ We’ll be taking off from the other end of the beach. See you there in five minutes. ”
The “other” end of the beach was quite some distance away. The wind sock put up to guage the wind velocity was too far to be [...]
March 21, 2009 – 10:01 am
Of the many great things that Firefox has brought us, tabbed-mode is the earliest, and arguably the greatest. Tabs existed in applications before Firefox, but I believe it was Firefox that made them mainstream. Soon, many applications started touting tabbed windows as one of their main features. Tabs were a good way to keep all [...]
March 19, 2009 – 10:34 am
Some browsing, debugging, and IRC chats later, I have managed to set up a git repository on Windows Vista using cygwin, with a few unexpected hiccups. I will try to repeat the process on a virgin setup to come up with a more authoritative flowchart of how to go about things. For now, I’ll just [...]
March 11, 2009 – 12:40 am
Here’s a trick that you might find handy.
Using a combination of gmail address aliases and canned responses, you can use gmail to automatically send directed, and relevant responses on your behalf.
You have to enable canned responses …
… add a canned response while composing …
and set up an appropriate filter.
As you can see in the pictures [...]
While the above is funny, using a good editor, and using it effectively, usually prevents such situations. A good auto-completing editor isn’t necessarily to help one type faster – it is most helpful for the context sensitive documentation that it provides. It brings documentation closer to the act of writing code, and saves the context [...]