I am so glad that after all these years of software development; I still find the amount I don’t know is so much more vastly great in magnitude than what I know. Nothing saddens (and scares) me more to think I would ever get to a point where there is nothing else to do and it will remain the same from here on out. Working with .Net the last few years has been great, but there was a feature in .Net version 3.0 I missed while doing maintenance work with a ASP.NET 2.0 app. .Net Extension Methods is awesome! Jason, a new coworker ( I changed jobs a few weeks back) point me to this http://www.codinghorror.com/blog/2008/07/monkeypatching-for-humans.html Well, after checking this out, I decided to write a few extensions for myself and put them here. public static string Right(this string s, int len) { if (len == 0 s.Length == 0) return ""; if (s.Length return s; return s.Substring(s.Length -len, len); } public static int WordCount(this string s) { string[] rtn = s.Split(' ')...
Comments