Software Engineering, Project Management, and Effectiveness
As part of rounding up our available developer content, one area I can’t ignore is code samples. Code samples are where the rubber meets the road. They turn theory into practice. They also help eliminate ambiguity … As Ward Cunningham says, “It’s all talk until the code runs.” This post is a quick rundown of how I’m looking at code samples.
Code Snippets, Code Samples, and Sample Applications I’ve found it useful to think of code samples in three sizes: code snippets, code samples, and sample applications. Sure there are other variations and flavors, but I’ve found these especially useful on the application development and solution architecture side of the house. Here is a quick rundown of each code sample type:
Additional Types of Code Samples …
Examples Here are some examples to help illustrate code snippets vs. code samples vs. sample applications:
Type
Examples
Code Snippets
Product Usage
Application Development
Code Samples
Sample Applications
This is some great advice. For snippets, you need a good way to store, catalog, and share them. Try Code Barrel. It's free and there is a Visual Studio plugin!