gregbeech

Stories submitted by gregbeech

Avoid pseudomutator methods(gregbeech.com)

submitted by gregbeechgregbeech(76) 2 years, 6 months ago

Explores why methods that appear to change the state of immutable objects can cause subtle bugs, and what you should do to avoid them on your own objects. read more...

add a comment |category: |Views: 12

tags: another

Deserializing the request body into a parameter with ASP.NET MVC(gregbeech.com)

submitted by gregbeechgregbeech(76) 3 years, 4 months ago

Shows how to deserialize the body of an HTTP request into a method parameter by using a custom IModelBinder in ASP.NET MVC. Particularly useful for PUT/POST if you're implementing a RESTful API with it. read more...

add a comment |category: |Views: 30

tags: another

Integrating StructureMap with WCF(lostechies.com)

submitted by gregbeechgregbeech(76) 3 years, 8 months ago

Details of how to create custom service hosts & behaviours to integrate StructureMap with WCF. It would be much the same approach for any other service container. read more...

add a comment |category: |Views: 230

tags: another

Optimised IP address to country code mapping(gregbeech.com)

submitted by gregbeechgregbeech(76) 3 years, 8 months ago

Investigates the most efficient way to look up country codes from an IP address. Are Patricia tries really the best way to do it...? read more...

add a comment |category: |Views: 13

tags: another

Dynamic sorting and paging in SQL Server with the CASE expression(gregbeech.com)

submitted by gregbeechgregbeech(76) 3 years, 10 months ago

Demonstrates how to write T-SQL queries that implement dynamic sorting and paging without using dynamic SQL, and which have the same performance characteristics as statically sorted queries. I bet you didn't know you could use the CASE expression like this... read more...

add a comment |category: |Views: 42

tags: another

Why System.Linq.Enumerable doesn't have a ForEach extension method(gregbeech.com)

submitted by gregbeechgregbeech(76) 3 years, 10 months ago

Lots of people suggest a ForEach method would be a good addition to the base class framework. This is why I don't think it would be, even though our core library has an implementation of it. read more...

add a comment |category: |Views: 176

tags: another