Browse by Tags

Shawn writes that you should have 100% test code coverage, Jason agrees. Tokes , a co-worker and the person who pointed these posts out to me, disagrees . I also disagree. Background I'm a strong believer in unit testing. I have used unit testing in almost every project I have been involved in for a couple of years now and each time I find I get more and more value from using them. My experience with...

I have just checked in two new features coming soon in Json.NET 2.1: Silverlight client support and improvements to the LINQ to JSON objects. If you are feeling cutting edge you can download the latest source code from CodePlex . Buyer beware: Code coverage of the changes is currently light. To compile a Silverlight build of Json.NET you will need the latest Silverlight 2.0 Beta 2 bits. There is also...

Of Jeff Atwood's list of 16 recommended books for developers I have read zero. Ditto this list of Top 20 Programming Books . Searching though Amazon recommended programming book lists also yielded no hits. When learning a new software development technology or idea I have always turned to the web. Blogs, articles, open source projects and so on, leaving the books I read largely to fiction. What am...

The best method of displaying nicely formatted code in a blog post in my experience is a Visual Studio plugin called CopySourceAsHtml . Once the plugin is installed simply select the code you want to display and choose Copy As HTML. A clean HTML representation of your code will be copied onto the clipboard which can then be pasted into your blog editor of choice (I like Windows Live Writer ). The nice...

I really like Python collection slicing . It is easy to use, flexible and forgiving. Using C# 3.0 extension methods I have recreate collection slicing in .NET. List < int > initial = new List < int > { 1, 2, 3, 4, 5 }; var sliced = initial.Slice(1, 4); // 2, 3, 4 sliced = initial.Slice(0, 5, 2); // 1, 3, 5 sliced = initial.Slice( null , null , -2); // 5, 3, 1 sliced = initial.Slice( null... More Posts Next page »