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 | 30 Nov 2011 14:12
Scott Allen writes "....Microsoft unveiled Windows 8 at the //build/ conference in September. Since then I've spent time seeing how to put together Windows 8 metro applications with HTML and JavaScript. The Sublime The following is all you need for a native Windows 8..."
Read more » Programming Windows 8: The Sublime To The Strange
OdeToCode | 29 Nov 2011 14:12
Scott Allen writes "....The HTML 5 DOM interface for a video element allows you to get the underlying video's width and height in pixels, but, be careful not to ask for the dimensions too early. If you ask as soon as the DOM is ready, like in the following code, you'll..."
Read more » Getting Intrinsic HTML5 Video Dimensions
OdeToCode | 28 Nov 2011 14:12
Scott Allen writes "....The canonical example for fluent configuration with the Entity Framework is to take a few simple entity definitions: public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public byte[] Version { get;..."
Read more » Composing Entity Framework Fluent Configurations
OdeToCode | 22 Nov 2011 14:12
Scott Allen writes "....In the last post we looked at feature detection with Modernizr. Before moving forward, let me answer a few questions that came up. First, you can build a custom Modernizr download containing only the tests you care about when you visit..."
Read more » Modernizr.js: Polyfills
OdeToCode | 12 Oct 2011 13:12
Scott Allen writes "....From Wikipedia: The tragedy of the commons is a dilemma arising from the situation in which multiple individuals, acting independently and rationally consulting their own self-interest, will ultimately deplete a shared limited resource,..."
Read more » Architectural Tragedy of the Commons
OdeToCode | 11 Oct 2011 13:12
Scott Allen writes "....As we saw in a previous post, Modernizr allows you to work with the new HTML 5 elements, like nav, and still support browsers that don't know anything about a nav, or HTML 5. However, HTML 5 is more than just a few dozen semantically meaningful..."
Read more » Modernizr.js : Feature Detection
OdeToCode | 10 Oct 2011 13:12
Scott Allen writes "....The Task Parallel Library is a joy to work with – it's easy to use and thorough. Recently I was using Parallel.ForEach to process a large collection, but wanted to stop processing early, across all threads, if an individual item met specific..."
Read more » ParallelLoopState and Parallel.ForEach
OdeToCode | 06 Oct 2011 13:12
Scott Allen writes "....Modernizr.js is a little library that will help "modernize" old browsers. As an example, let's say you create a new ASP.NET MVC 3 application with the "Use HTML 5 semantic markup" checkbox selected. If you peek into the layout view for the app,..."
Read more » Modernizr.js
OdeToCode | 05 Oct 2011 13:12
Scott Allen writes "....When I was making the switch from C and assembly to C++ I did quite a bit of reading on object oriented programming. It's hard to find material on OOP that doesn't praise the classical pillars of encapsulation, inheritance, and polymorphism. In the..."
Read more » Rise and Fall of Classic OOP
OdeToCode | 04 Oct 2011 13:12
Scott Allen writes "....Imagine (or dream) that you have some IronRuby code to execute. require 'net/telnet'
host = Net::Telnet.new(:Host => 'localhost')
#...
#...
#...
return data
One way to execute the code and capture the result is to use Execute<T> on..."
Read more » Execute<T> With IronRuby