Welcome to OdeToCode Blogs Sign in | Join | Faq

Most Recent Posts


Visual Studio SP1 and The Metification of REST

Metification – verb The act of adding metadata to a web service in order to facilitate tooling and discovery. The act of adding complexity to a web service in order to achieve tight coupling. Pick one. Service Pack 1 for Visual Studio 2008 has just...
August 14, 2008 by scott

Optimizing LINQ Queries

I’ve been asked a few times about how to optimize LINQ code. The first step in optimizing LINQ code is to take some measurements and make sure you really have a problem.    It turns out that optimizing LINQ code isn’t that different from...
July 14, 2008 by scott

Using an ORM? Think Objects!

I recently had some time on airplanes to read through Bitter EJB, POJOs in Action, and  Better, Faster, Lighter Java. All three books were good, but the last one was my favorite, and was recommended to me by Ian Cooper. No, I’m not planning on trading...
July 14, 2008 by scott

LINQ Deep Dive at D.C. ALT.NET Next Week

Matt Podwysocki invited me to speak at the D.C. alt.net meeting next Thursday evening (July 24th). The topic is LINQ. Matt specifically requested a code-heavy presentation, so expect two slides followed by plenty of hot lambda and Expression<T>...
July 11, 2008 by scott

Keeping LINQ Code Healthy

In the BI space I’ve seen a lot of SQL queries succumb to complexity. A data extraction query adds some joins, then some filters, then some nested SELET statements, and it becomes an unhealthy mess in short order. It’s unfortunate, but standard SQL just...
July 08, 2008 by scott

Restku

Haiku is a popular poetic form that has evolved over centuries. Restku is Haiku with a  twist. crystal pixels get brighter an abundance of excitement The twist is that the author of a Restku is restricted to using a single verb from...
July 07, 2008 by scott

Herding Code

Herding Code is a podcast about a variety of topics in technology and software development. It’s done roundtable style with myself, Scott Koon, Kevin Dente, and Jon Galloway. The conversations are a blast, and I hope informative, too. Tune in to the...
July 06, 2008 by scott

Swimming Upstream Is Hazardous

Salmon swim upstream, and look at what happens …      Every developer is familiar with the “work around”. These are the extra bits of extra code we write to overcome limitations in an API, platform, or framework. But, sometimes...
July 03, 2008 by scott

Pluralsight 2.0

Pluralsight has a new website, and the new site includes some online training options! See Fritz’s post for more details. Be sure to check out one of the newest classes - the LINQ Fundamentals course, too. ...
July 01, 2008 by scott

Rob's Not So Lazy MVC Storefront

Rob ran into some lazy load problems in his MVC Storefront and later proclaimed: "…if you set any Enumerable anything as a property, it's Count property will be accessed when you load the parent object. This negates using any deferred loading for any...
May 21, 2008 by scott

Visual Designers Don’t Scale

Microsoft has a long history of being visual. They've made quite a bit of money implementing graphical user interfaces everywhere – from operating system products to database servers, and of course, developer products. What would Visual Studio be if it...
May 19, 2008 by scott

The Power of Programming With Attributes

Nothing can compare to the Real Power of programming with attributes. Why, just one pair of square brackets and woosh – my object can be serialize to XML. Woosh – my object can persist to a database table. Woosh – there goes my object over the wire in...
May 13, 2008 by scott

Two LINQ to SQL Myths

LINQ to SQL requires you to start with a database schema. Not true – you can start with code and create mappings later. In fact, you can write plain-old CLR object like this: class Movie {     public int ID { get; set; }...
May 11, 2008 by scott

Mr. President the Programmer

Daily Standup Transcription 06 May 2008 1300 Zulu Time In 00:02:34.66 "… so, yesterday I continued the refactorafication of some classes. The job isn't easy, but I'm going to work hard and continue the collaborativity with my programming partner. Together,...
May 07, 2008 by scott

There Is Always Risk In Portability

After my last post, someone asked me if the "portable" repository pattern was really a good idea. He was referring to the fact the LINQ queries in the MVC Storefront and Background Motion applications would sometimes execute against in-memory collections...
May 06, 2008 by scott

Contrasting Two MVC / LINQ to SQL Applications for the Web

There are two applications on CodePlex that are interesting to compare and contrast. The MVC Storefront and Background Motion. MVC Storefront MVC Storefront is Rob Conery's work. You can watch Rob lift up the grass skirt as he builds this application...
May 05, 2008 by scott

The XML Namespace Tax

While XML literal features in Visual Basic get all the love, the new XElement API for the CLR makes working with XML in C# a bit more fun, too. It's a prime cut of functional programming spiced with syntactic sugar. One example is how the API works...
May 04, 2008 by scott

Mocks - It's A Question Of When

Ross Neilson reminded me about a question I left hanging - "when should I use a mock object framework?" If you have to ask "when", the answer is probably "not now". I feel that mock object frameworks are something you have to evolve into. First, we...
May 01, 2008 by scott

Microsoft versus Open Source Software - ALT.NET notes

At the Seattle alt.net conference, I co-sponsored a session with Justin Angel. The topic was "Choosing Microsoft versus Mature Open Source Alternatives". We wanted to hear the rationale people were using when making choices, like: LINQ to SQL or Castle...
April 22, 2008 by scott

A Gentle Introduction to Mocking

At the last CMAP Code Camp I did a "code-only" presentation entitled "A Gentle Introduction to Mocking". We wrote down some requirements, opened Visual Studio, and started writing unit tests. Matt Podwysocki provided color commentary. Code download is...
April 17, 2008 by scott

Following Principles

A dictionary definition of principle often uses the word "law", but principles in software development still require judgment. Sometimes the judgment requires some technical knowledge, like knowing the strengths and weaknesses of a particular technology....
April 09, 2008 by scott

Testing Old Code Is Hard

WWWTC #19 presented a BankAccount class from a developer named Leroy and garnered some great feedback. A couple people spotted an actual bug in the interest calculation, which was unintentional. If only Leroy had written some tests for the code… "Gee,...
April 01, 2008 by scott

What's Wrong With This Code (#19)

Leroy was shocked when the source code appeared. It was familiar yet strange, like an old lover's kiss. The code was five years old – an artifact of Leroy's first project. Leroy slowly scrolled through the code and pondered his next move. It wasn't a...
March 30, 2008 by scott

Custom Aggregations In LINQ

Aggregate is a standard LINQ operator for in-memory collections that allows us to build a custom aggregation. Although LINQ provides a few standard aggregation operators, like Count, Min, Max, and Average, if you want an inline implementation of, say,...
March 29, 2008 by scott

And Equality for All ... Anonymous Types

Given this simple Employee class: public class Employee {     public int ID { get; set; }     public string Name { get; set; }     } How many employees do you expect to see from the...
March 25, 2008 by scott

Posts by group



Bloggers



Syndication



Opml



Powered by Community Server, by Telligent Systems