tncbbthositg

Stories submitted by tncbbthositg

Results of the "What Really Makes a Good Programmer" Survey(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 1 year, 6 months ago

I posted a survey called "What Makes a Good Programmer?" You guys jumped on the responses and I can't thank you enough. With almost 200 responses, I felt comfortable publishing the results. Here they are. read more...

1 comment |category: |Views: 11

tags: another

What Really Makes a Good Programmer?(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 1 year, 7 months ago

I wrote this survey and could really use some responses from the community. Feel free to stop by and take the survey. I'm publishing results soon. read more...

4 comments |category: |Views: 568

tags: another

Programming is a Gas(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 2 years, 8 months ago

An adaptation of Parkinson's Law and a condemnation of software vendor selection. read more...

add a comment |category: |Views: 5

tags: another

Extension Method to Imitate Times() in Ruby(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years ago

The title says it all. This extension method allows you to pass an action to int.times and have the action executed than number of times. Ruby is really cool and extension methods are also really cool. Using extension methods to imitate the flexibility and fluency of ruby can make life so much easier. read more...

add a comment |category: |Views: 11

tags: another

Demystifying IComparer in C#(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years ago

This article is about the IComparer and how it works at its core. A lot of people (and indeed some of the people who write for the MS knowledge base) don't have a solid understanding of the IComparer. This introduction may help to clear a few things up. read more...

add a comment |category: |Views: 43

tags: another

IComparer Proxy to Sort by Multiple Conditions(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years ago

If you've ever wanted to sort a list of objects using more than one comparer (i.e., you want to sort a list of people by last name and then by first name), then you probably had to compose your own IComparer object to do so. If you wanted to be able to dynamically change sort orders, then your task was more difficult. To address this problem, I wrote a class called ComparerProxy which implements IComparer and proxies comparisons through a list of IComparers. read more...

add a comment |category: |Views: 51

tags: another

Converting Comparison<T> to IComparer<T>(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years ago

I've run across a lot of methods out there that'll take a Comparison rather than an IComparer, but it's a little harder to compose a set of Comparisons into complex object so this is a Comparison wrapper that implements IComparer. read more...

add a comment |category: |Views: 18

tags: another

IComparer Extension Methods for Fluent Interface(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years ago

These are a few extension methods for IComparer and the Comparison delegate to give you a little more of a fluent interface. It also introduces the ability to sort by multiple comparers at the same time. read more...

add a comment |category: |Views: 17

tags: another

Proxy Class for Making Any Object IComparable(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

Sort of an academic look at using the proxy pattern. You use the proxy to make any object IComparable. This could really be done to make any object look like another object. read more...

add a comment |category: |Views: 11

tags: another

Implementing IComparer in C#(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

The title says it all. Basically, this is about writing your own custom IComparers in C#. read more...

add a comment |category: |Views: 75

tags: another

IList Extension Method to Select Best Fitting Item from Unsorted List(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

This article explains a method you can use to select the best fitting item from an unsorted list in O(n) time. It performs better than sorting the list and then selecting the last item if you're using a custom comparer. read more...

add a comment |category: |Views: 103

tags: another

IList Extension Methods: Quickselect from an Unsorted List(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

This is a follow-up to an article about how to select an item from an unsorted list in O(n) time. It has an extension method that selects the kth order statistic in O(n log n) time using the partitioning scheme from a quicksort algorithm. read more...

add a comment |category: |Views: 27

tags: another

Validate Parameters Using Attributes and PostSharp(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

This article explains how to use PostSharp to modify your code at compile time so you can easily add parameter attributes to validate input to your methods without having to write any kind of repetitive code. The examples include NotNull and NotEmpty validators. read more...

add a comment |category: |Views: 93

tags: another

Extension Method to Get Custom Attributes with Reflection(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

A generic extension method that uses reflection to get all of the attributes from any ICustomAttributeProvider including PropertyInfo, ParameterInfo, and MethodInfo. read more...

add a comment |category: |Views: 16

tags: another

IsEmpty and IsNull Extension Methods on the String Class(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

Some sample extension methods to add to the String class. It's a good sampler for getting to know extension methods and they're actually kinda helpful. read more...

add a comment |category: |Views: 16

tags: another

Extension Method to Copy One Stream to Another(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years, 2 months ago

This is a handy extension method that gets added to any stream to read from the current position of that stream and write to the current position of a specified stream. read more...

add a comment |category: |Views: 58

tags: another