Scott Allen
Scott Allen’s blog features development advice straight from the trenches. Scott shares his experiences, what he tried, what worked, what didn't, and traps to avoid. Alongside architecture and project management-focused blog entries, you'll find more nitty-gritty technical posts about LINQ, JavaScript and JavaScript Object Notation (JSON), Windows® Workflow, and Silverlight.
OdeToCode | 26 Jul 2010 03:47
Scott Allen writes "....Brad Wilson has an excellent series of 5 blog posts on model metadata and templates you can use to get started with templates and metadata in ASP.NET MVC 2. Here are a couple notes I've made around some of aspects that commonly confuse developers..."
Read more » Notes on Templates and Data Annotations in MVC 2
OdeToCode | 23 Jul 2010 01:12
Scott Allen writes "....Forget everything you know about object-oriented programming. Instead, I want you to think about race cars. Yes – race cars. That's the intro for my latest article @ Script Junkie - Prototypes and Inheritance in JavaScript. I hope you enjoy..."
Read more » Prototypes and Inheritance in JavaScript
OdeToCode | 19 Jul 2010 01:12
Scott Allen writes "....In the last post we saw the recursive nature of the default model binder in MVC. Now, let's look at the following class: public class User
{
public string Name { get; set; }
public string Email { get; set; }
/*
* bunch more..."
Read more » Delegated Model Binding
OdeToCode | 16 Jul 2010 01:12
Scott Allen writes "....In the last post we saw how a model binder has to show up for work even when all we need is a simple int parameter on an HTTP GET request. Now it's time for a pop quiz! Given this route definition: routes.MapRoute(
"SearchRoute",..."
Read more » Recursive Model Binding
OdeToCode | 15 Jul 2010 01:12
Scott Allen writes "....The job of a model binder in ASP.NET MVC is to take pieces of data in an HTTP request and place them into objects. It's easy to sense a model binder at work when you use one of the Update API's. bool success = TryUpdateModel(movie); // here
// ....."
Read more » Hard Working Model Binder
OdeToCode | 13 Jul 2010 13:12
Scott Allen writes "....One of the reasons to like Ruby if you come from a C#/C++/Java background is how certain constructs will tend to "just make sense" even though Ruby will throw in a twist here and there. Consider the case of inheritance and initialize methods...."
Read more » Ruby: initialize and super
OdeToCode | 12 Jul 2010 01:12
Scott Allen writes "....The Open Data Protocol is gaining traction and is something to look at if you expose data over the web. .NET 4 has everything you need to build and consume OData with WCF Data Services. It's also easy to consume OData from outside of .NET -..."
Read more » OData and Ruby
OdeToCode | 09 Jul 2010 01:12
Scott Allen writes "....I was working with a fresh install of Windows Server 2008 when I noticed a new parameter in Robocopy's usage output: /MT[:n] :: Do multi-threaded copies with n threads (default 8). n must be at least 1 and not..."
Read more » Multithreaded Robocopy
OdeToCode | 08 Jul 2010 01:12
Scott Allen writes "....It’s easy to test LINQ queries when the LINQ queries always execute entirely in memory – like with LINQ to objects or LINQ to XML. All you need to do is put some in-memory data together and pass it to code executing the query. It’s an entirely..."
Read more » Unit Tests and LINQ Queries
OdeToCode | 07 Jul 2010 01:12
Scott Allen writes "....The object initializer syntax introduced in C# makes it easy to work with "configuration" type objects. public class TemperatureSetting
{
public float Value { get; set; }
public float Variance { get; set; }
public float Threshold {..."
Read more » Named Arguments versus Object Initializers