I wanted to learn some basic jQuery, and I wanted a simple ergonomic keyboard navigator for Chrome: meet YAK!
I implemented it as a user/Greasemonkey script, which will pass as an extension in Chrome.
YAK web site: http://yak.nfshost.com/
YAK @ userscripts.org: http://userscripts.org/scripts/show/68609
2010-02-12
2010-02-10
Poor Man's Custom Types with C# Using Aliases
For the sake of simplicity, I never implement custom types just for the sake of readability. I.e., I don't encapsulate int, string, decimal, and so on. This is because I find the cost being too high when writing, maintaining, and (OR) mapping all these types.
What I've just started doing in order to achieve the same level of readability, is using aliases like so:
using Birthday = DateTime;
using PersonId = Int32;
before the class declaration, but after the namespace declaration (so that one doesn't have to fully qualify the type names).
For complex generic types, the readability increases even more IMHO:
using StrangeDictionary = IDictionary<int, KeyValuePair<string, decimal>>;
/Martin
What I've just started doing in order to achieve the same level of readability, is using aliases like so:
using Birthday = DateTime;
using PersonId = Int32;
before the class declaration, but after the namespace declaration (so that one doesn't have to fully qualify the type names).
For complex generic types, the readability increases even more IMHO:
using StrangeDictionary = IDictionary<int, KeyValuePair<string, decimal>>;
/Martin
Subscribe to:
Posts (Atom)