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 | 10 Apr 2012 13:12
Scott Allen writes "....ECMAScript Harmony is the future of JavaScript, and something you can experiment with using the stable builds of Chrome (my machine is currently running 18.0.1025.152 m, but that is subject to change at any minute). The first step is going into..."
Read more » Trying Out JavaScript v.Next
OdeToCode | 09 Apr 2012 13:12
Scott Allen writes "....Soon I'll be giving a group of developers some code and asking them to do some refactoring. The bad news is the code is hard to read. Some might say it's intentionally obfuscated, but let's not assume malice right away. The good news is there..."
Read more » A Refactoring Experiment
OdeToCode | 05 Apr 2012 13:12
Scott Allen writes "....It's been just over 8 years since Michael Feathers wrote "The Bar Is Higher Now". I don't care how good you think your design is. If I can't walk in and write a test for an arbitrary method of yours in five minutes its not as good as you think..."
Read more » The Bar Is Even Higher Now
OdeToCode | 04 Apr 2012 13:12
Scott Allen writes "....It's a common to automatically submit a form after a user selects an item from an autocomplete list. The keyword here is "select" – it will lead you to handling the select event of the jQuery UI autocomplete widget. someInput.autocomplete({..."
Read more » jQuery UI Autocomplete and Automatic Form Submit
OdeToCode | 03 Apr 2012 13:12
Scott Allen writes "...."The Lords of Finance" includes a story about famous economist John Maynard Keynes, who was diagnosed with a chronic cardiac condition and needed medical help*. In 1939, he fell into the hands of a Dr. Janos Plesch, a Hungarian Jewish émigré,..."
Read more » Quacks At Work
OdeToCode | 02 Apr 2012 13:12
Scott Allen writes "....Here is some code similar to other code I've seen that has a severe bug. The Entity Framework model configuration is setup to allow optimistic concurrency checks via a movie's Version property. public class Movie
{
public virtual int ID { get;..."
Read more » What's Wrong With This Code? (#29)
OdeToCode | 29 Mar 2012 13:12
Scott Allen writes "....Continuing from the previous post about MapReduce with MongoDB, we can clean up the code a bit using an extension method that takes a single string parameter. var db = server.GetDatabase("mytest");
var collection = db.GetCollection("movies");
var..."
Read more » A Simpler MapReduce with MongoDB and C#
OdeToCode | 28 Mar 2012 13:12
Scott Allen writes "....It's been my observation that the worst architectural decisions are made when technical people meet by themselves in a room with a whiteboard. I'm not saying the decisions are always bad, or wrong, but the plans and rules that come back to bite you..."
Read more » Whiteboard Architecture
OdeToCode | 27 Mar 2012 13:12
Scott Allen writes "....The jQuery UI slider widget doesn't display it's current value by default. However, you can tap into the slide event and grab the current value from the second parameter passed to the event handler. The second parameter in a jQuery UI event handler..."
Read more » Custom Slider Value Display with jQuery UI
OdeToCode | 26 Mar 2012 13:12
Scott Allen writes "....One reason some people don't like JavaScript, I think, is because idiomatic JavaScript favors fewer keystrokes and CPU cycles over readability. There is a large amount of script code that is hard to read, and even harder to maintain and change...."
Read more » Readable DOM Ready Event Handlers