August 2010

Monthly Archive

The Morning Brew #667

Posted by Chris Alcock on 18 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Software

  • Announcing the F# 2.0 Standalone Tools Update (for .NET 2.0, 4.0 and other CLI Implementations) - Don Syme announces the release of the F# 2.0 Standalone Tools for .NET 2.0, 4.0 and other CLI implementations (such as Mono). This release brings the latest F# into the hands of all developers as this is the completely free tooling based on the Visual Studio Shell.(both 2010 and 2008)
  • JavaScript Fluent Html Builder - An interesting project on CodePlex which brings a fluent style interface to the creation of HTML in JavaScript, giving much more readable code that the traditional string concatenation
  • AutoMapper upgraded to .NET 4 and VS 2010 - Jimmy Bogard discusses his decision to branch AutoMapper into a legacy .NET 3.5 version (which will receive bugfixes only) and to push forward and upgrade the main branch of the project to .NET 4, discussing the process (version control and upgrade) in this post.

Information

  • WCF Web Services The Easy Way - Justin Etheredge takes a look at the easy path to WCF web services, including JSON based services, showing that WCF doesn’t have to a hard quagmire of configuration.
  • IE9, Opacity, and Alpha - Ted Johnson talks about the introduction of the CSS3 Colo(u)r Module into Internet Explorer 9, showing an example of the use of the Opacity control and Alpha filter
  • NHibernate 3.0 QueryOver Syntax is the Bee’s Knees - Bobby Johnson shares a couple of queries which illustrate the NHibernate 3.0 QueryOver feature which brings a typesafe Extension Method / Lambda Expression based API to the Criteria API
  • Hydrating Objects With Expression Trees - Part III - Paulo Morgado rounds out his series of posts on using Expression Trees to create and populate entities with a look at the relative performance of each of the methods he discussed, concluding that in his test case the Member Initializer method is the most performant.
  • Exploring List capacities and growth on the Windows Phone - Jeff Wilcox takes a look a the way in which the Generic List collection class goes about sizing its self on Windows Phone 7, briefly discussing the memory limiations that phones place us under as developers, and showing how the list behaves as you add items.
  • Pulling out the Switch: It’s Time for a Whooping « Making the Complex Simple - John Sonmez takes a look at the different types of switch statement that there are, looking at what the most appropriate refactoring for each is, considering the cases Data to Data, Data to Action and Data to Multiple Action.
  • Runtime PivotViewer collection creation - Timmy Kokke runs through using the PiviotViewer control in Silverlight applications, obtaining data from a web service, using HttpHandlers to redirect the control’s calls for data to your custom code.
  • Why I Love NServiceBus - Jonathan Oliver discusses his like for NServiceBus as a pragmatic solution to distributed computing problems in the .NET space, comparing it to a variety of other solutions to the same problem from elsewhere.
  • Bending Linq Syntax to your will - Mike Hadlow looks at some of the more generic (and mind bending) uses of Linq showing how it can be used for much more than just IEnumerable and IQueryable.

Community

  • Windows Phone 7 for Developers - The NxtGen User Group’s Abingdon branch have Matt Lacey talking on Windows Phone 7 on Tuesday 19 October, giving an overview of the platform and looking at the developer experience. NxtGen events are free to members, and non-members are allowed to attend 2 meetings for free, so if you are in the area you really should check it out.

The Morning Brew #666

Posted by Chris Alcock on 17 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Post number 666 today, and instead of the obvious set of jokes about ‘The Number of the beast’, I prefer to think of some of the mathematical beauty like the fact that 666 = 1 +2 +3 … + 35 + 36 (666 (number))

Information

  • Visual Studio 2010 runs faster when the Windows Automation API 3.0 is installed - David Berg posts a useful tip on the Developer Division Performance Engineering blog about how to make Visual Studio 2010 run quicker on Windows XP machines by installing version 3 of the Windows Automation API (replacing the earlier version that is there) which speeds up the display and processing of the Intellisense drop downs.
  • Problem Resolution: Installing Windows Phone 7 Developer Tools Beta - John Papa shares some problems he had installing the latest version of the Windows Phone 7 Developer tools beta, showing how he worked around the problem with the installer (and along the way showing some useful install debugging processes)
  • NSubstituteAutoMocker for StructureMap - Christiaan creates a NSubstitute automocking functionality for the StructureMap IOC container, showing tests and implementation of this support and discussing its creation
  • Hydrating Objects With Expression Trees - Part II - Paulo Morgado continues exploring the use of Expression Trees to populate objects with data, taking a look in this post at building the complete object combining construction of the object and data population into a single expression.
  • Clay: malleable C# dynamic objects - part 1: why we need it - Bertrand Le Roy begins a series of posts looking at the Clay library for C# whihc allows you to easily construct complex dynamic types in C# as you do in other languages. In this first part Bertrand sets the scene by discussing his needs for a dynamic view model.
  • I don’t want your stinkin’ code comments - Robert Greyling follows on from Jesse Liberty’s post on not using code comments, with the suggestion that Tests (unit or BDD specifications) can stand in for code comments, however if you don’t have these then comments are a good idea, especially where there are lots of levels of abstraction in the code.
  • HTML5Rocks Gets Awesomer - Ajaxian highlights the latest updates to the HTML5Rocks site from Google, a site which explores all the features of HTML5, looking at browser compatibility, guides for implementing HTML 5 concepts such as video, off-line data, etc
  • Getting Started with WCF 4”, the Refcard… - Greg Duncan highlights the latest RefCard from the folks over at DZone. This card covers version 4 of the Windows Communication Foundation looking at key areas of configuration, contracts, binding, etc
  • Restraining Order Granted for Microsoft’s C-Sharp Compiler - Rob Conery takes a light hearted look at ‘Compiler Driven Development’
  • A variation on Matt Moloney’s Undo/Redo "Memento" pattern - Don Syme builds on an implementation of Undo / Redo by Matt Moloney to give a nice example of using F# to implement a common code pattern in an elegant way

Community

The Morning Brew #665

Posted by Chris Alcock on 16 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Software

Information

  • NHibernating a WCF Data Service - Pablo M. Cibraro takes a look at wiring WCF Data services up to an NHibernate data storage back end, looking at the implementation of IUpdatable for storing data back into NHibernate entities.
  • Back to school : Getting to know F# - Mehfuz’s WebLog - Mehfuz takes a quick look at F#, showing how it can be used to create types with methods, and explores simple unit testing of these methods in F# using Telerik JustMock
  • Really, Really, Big Numbers with BigInteger in .NET 4.0 - Paul Kimmel explores the .NET Framework’s support for large numbers via the BigInteger class, illustrating its use in performing calculations to find square roots of large numbers.
  • Coding Without A Net - Coding without comments - Jesse Liberty discusses a constraint he recently introduced to his coding where he avoids all forms of comment in his code, aiming to make his code as self explanatory as possible.
  • Two different ways to create bad logic in unit tests - Roy Osherove discusses a ‘test smell’ where logic which is likely in the system under test is repeated inside the test case, illustrating with a simple example of string concatenation.
  • ASP.NET MVC 3: Using HttpNotFoundResult in controller tests - Gunnar Peipman shows how the new HttpNotFoundResult in ASP.NET MVC 3 really helps with the testability of your controllers by removing the need to test against the HttpContext and Response objects.
  • An alternative repository - Michel Grootjans takes a look at an improved implementation of a repository pattern for NHibernate which provides a nice way of encapsulating querying. Full code is available for download.
  • ASP.NET MVC meets HTML5 - Gunnar Peipman also explores the support for HTML5 in ASP.NET MVC provided by Dean Hume’s ASP.NET MVC HTML5 Helpers Toolkit which provides HtmlHelper methods for rendering HTML5 controls.
  • Validating Data in Silverlight 4 Applications - IDataErrorInfo - Dan Wahlin takes a look at the improvements to validation provided in Silverlight 4, and ho the IDataErrorInfo provides an alternative to the traditional Exception based validation provided in earlier versions.
  • Git, TortoiseGit, Github and the rest - Christiaan takes a look at getting up and running with Git and related tools from the point of view of wanting to gain access to the source code to an open source project hosted on GitHub.
  • Hydrating Objects With Expression Trees - Part I - Paulo Morgado explores using expression trees to populate arbitrary entities with data, looking at building compiled expressions using reflection and then applying them to newly created objects to fill them with data.
  • MSDEV Offers Free Developer Training for Windows Phone 7 in Seven Minutes Each - Bruce Kyle highlights a series of 7 minute videos providing some very focused training on specific areas of the Windows Phone 7 development story from the MSDEV site, along with providing a number of other links to related SDKs and other training content
  • Windows Phone Design Day Recordings - Jaime Rodriguez shares the videos from a recent Windows Phone 7 Design Day, an invite only event for partners and agencies which looked at design best practices for the new Windows Phone devices

Community

  • Announcing NHDay final Agenda - Simone Chiaretta announces the finalisation of the agenda for the first NHibernate Day, to be held on 9th October in Bologna, Italy. The Agenda looks to be really good, and there are still a few places available.
  • Code Challenge - Win a Gyroball - Thycotic Solutions are running a coding contest, offering a GyroBall toy as the prize for the randomly picked correct solution. Entries are allowed from across the world, but only those in the US can win the Gyroball.

The Morning Brew #664

Posted by Chris Alcock on 13 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Update: Fixed broken link to NSubstitute post below - thanks to David Pendray for the heads up

Software

Information

Community

  • Want to hear us talking about security and our roadmap? - Ray Fleming highlights an events tour around the UK over the next few months in a variety of cities in the UK, where Microsoft Experts will be running sessions on the Microsoft Roadmap, Software Assurance, Trustworthy computing and security, Software Asset Management and licensing.
  • GeekGive to Team Up with Northwest Harvest at MVP Summit 2011 - Lonnie Webb blogs about the MVP Summit / GeekGive collaboration on the The Microsoft MVP Award Program Blog. On the weekend of the MVP Summit, Geek Give will be doing community outreach work in the Seattle area and are encouraging visiting MVPs to get involved.

The Morning Brew #663

Posted by Chris Alcock on 12 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Software

  • Announcing the release of Codename "Dallas" CTP3! - ‘elisaj’ of the Dallas Team announces the 3rd CTP preview release. This updated CTP includes support for Basic Authentication, enhanced querying of OData Content, Add Reference support in Visual Studio, along with a variety of other enhancements to make development easier.

Information

Community

  • Real-world Dynamic .NET & OpenWrap - DevEvening have an event in Woking on Thursday 26th August (6:45pm start) where Mark Rendle will be talking on the subject of Dynamic Support in .NET 4, and Seb Lambla will be discussing his OpenWrap Package Management / Export Management system.
  • VBUG Bracknell: SQL Server CLR and Data Tier Applications - VBUG Bracknell are meeting on Tuesday 7th September for an event where Colin Leversuch-Roberts will be presenting a session on CLR functions vs TSQL functions in the database, and Neil Hambly will be talking about Data Tier Applications (DAC).
  • Free talk at Yahoo on the 27th about the software revolution that is JavaScript - Chris Heilmann highlights a free event to be held on the 27th August at Yahoo!’s Sunnyvale Campus where Douglas Crockford will be talking on the subject of ‘Loopage’ and JavaScript. Sign up is required for this event.
  • Interested in becoming a Windows Azure MVP? - The MVP program is looking for good developers with experiences of the Windows Azure Platform to become the first batch Azure MVPs. If you are such a person, or know someone who is, get in touch - contact details in the post.

The Morning Brew #662

Posted by Chris Alcock on 11 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Software

  • Announcing the Mindscape NHibernate Designer - Mindscape release a visual designer for NHibernate based models, based on a similar design to their LightSpeed ORM tooling, providing access to common object mapping features, along with Model to Database and Database to model synchronisations. 14 day trial version is available, with the full version costing $249, but until Friday 4pm you can save 50% with a discount code.

Information

  • One Good Reason to Upgrade to .NET 4.0 - Elton Stoneman looks at the Parallel Extensions included in .NET 4, sharing a sample which makes use of these extensions to show the kind of dramatic performance increases it can easily bring to your applications.
  • .NET Debugging and C++ Debugging Resources - Sasha Goldshtein shares a good list of software tools and documentation regarding debugging both .NET and C++ based code categorised and drawn from a variety of sources
  • Versioning Issues With Optional Arguments - Phil Haack looks at the use of the .NET 4 Optional Parameters and Named Parameters as a means of helping the versioning of your API’s discovering that this technique doesn’t work well due to the way that the compiler works with optional parameters, and thus you should be very careful when using this feature.
  • Are Private Members Inherited? - Chris Eargle discusses a particular interview questions about inheritance of private members, showing that the specification does allow this to happen in particular circumstances (nested classes).
  • Everybody thinks about CLR objects the wrong way (well not everybody) & When does an object become available for garbage collection? - Raymond Chen continues CLR week with a follow up on the comments from his previous day’s post looking at Auto-disposal based on scope, and how the CLR works differently to unmanaged code. Raymond then continues the story with a look at when objects become eligible for garbage collection on the CLR.
  • IoC patterns - partitioning registration - Krzysztof Kozmic looks at the organisation of your component registrations within an IoC Container, suggesting that if you keep registration code granular it will make it easier for new developers to identify the types being used in a certain context
  • Coding4Fun - Part 1 of the Windows Phone Picture Effects App and Roadmap - René Schulte highlights the release of his article on Windows Phone 7 on the Coding4Fun site. The article explores the process of writing a Windows Phone 7 picture effects application, with full source available licensed as MS-PL
  • A F# Silverlight Template - Daniel Mohl releases another F# project template, this time for Silverlight, which is now available from the online templates section in Visual Studio 2010.
  • Exploring FubuCore: Convert a string value to any type of .Net class with the ObjectConverter - Jeremy D. Miller begins a new series of posts looking at the FubuCore library of utility functions which is a part of the FubuMVC project, but has applications outside this project. This first part explores the ObjectConverter implementation.
  • Xaml Toolkit: Manipulation of Xaml - Lester looks at the use of the Xaml Toolkit for sanitizing Xaml Code copied from an application, and how it makes it easy to remove elements which refer to methods, events, etc which are not available in a particular context.
  • Using DynamicObject to implement general proxy classes - ‘OlliFromTor’ explores using the Dynamic Object in .NET 4 to wrap any type with implementations of common interfaces such as INotifyPropertyChanged, IEditableObject, etc in this CodeProject Article.
  • Bankers Rounding in Math.Round Method - Vikram Lakhotia reminds us all that it is dangerous to assume anything about methods, highlighting that the standard numerical rounding in .NET may not do what you assume it would, and shows the way of instructing it to do the rounding you require.

Community

  • SQL Social - Kent - Jamie Thompson announces the first SQL Social event to be held in Maidstone, Kent, UK on the eventing of 18th August. This inaugural event features Dave Ballantyne giving an overview of PASS, Neil Hambly talking on the subject of Replication, and Allan Mitchell looking at Complex Event Processing.
  • FubuMVC at C4MVC Tomorrow (Now Today) - Jeremy D Miller will be presenting an online brown bag session today (Wednesday) beginning at 12pm CDT (6PM BST by my calculations) looking at FubuMVC, its differences from MS MVC, its integration if IoC and Composition and their configuration features.

The Morning Brew #661

Posted by Chris Alcock on 10 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Software

  • Introducing Observal - Paul Stovell shares a new library called Observal, extracted from a recent project this library provides easy means for tracking and responding to changes in entities and collections which are part of complex or deep hierarchies.
  • FastSharp 2.0 - Matt Manela shares the latest version of FastSharp, a lightweight IDE for trying out simple pieces of code in C#, F# or VB.NET
  • TiltContentControl for Windows Phone - Jeff Wilcox shares another un-official piece of code for Windows Phone 7, this time mirroring the tilt behaviour of the standard UI controls in the Operating System and brings that capability to your applications in Silverlight.

Information

  • IronRuby and the Reactive Extensions Together Again - Taming User Input - Matthew Podwysocki continues exploring the integration for IronRuby with the Reactive Extensions for .NET, addressing some of the concerns about IronRuby’s future, and exploring the use of Throttle to slow down user input to manageable levels.
  • Optional named parameters work pretty well - Bertrand Le Roy follows on from Rob Conery’s post linked to yesterday with a look at using optional and named parameters to handle a similar situation in a more strongly typed way.
  • Redlining C#’s Dynamic Features - Rob Conery continues looking at making C# more dynamic using a variety of techniques to make more areas completely dynamic, in a way similar to that of Ruby and Python.
  • Running RavenDB on Azure - Mark Rendle takes a look at getting the RavenDB Document Database up and running in a Windows Azure worker role, sharing his fork of the RavenDB source which adds the ability to run on Azure, and explains how he did it.
  • Windows Azure-Compatible NoSQL Databases: GraphDB, RavenDB and MongoDB - Roger Jennings takes a look at various efforts to get other NoSQL / Document Database up and running on Azure, rounding up posts from various sources discussing the process.
  • Sprite and Image Optimization Framework & DotNetNuke - Rob Chartier explores implementing the new Sprite and Image Optimization Framework from the ASP.NET Team inside a DotNetNuke site, showing a useful example of how this works and can easily be integrated.
  • HTML5 Support In Visual Studio 2010 - Raihan Iqbal looks at the support for HTML5 in Visual Studio, showing how you can get IDE support and validation by moving an XSD for HTML5 into the correct location in your VS install.
  • An example of packaging web application containing database upgrade SQL file - Xinyang Qiu walks through the process of packaging a Web Application along with a database upgrade script using the datanbase project features of Visual Studio 2010
  • Programmatically Invoke the C# Compiler - Doug Holland shares a simple example showing how you can dynamically compile C# code at runtime, checking for errors and warnings and ending up with an assembly you can use as usual.
  • Getting the Silverlight Toolkit Controls to work on WP7 - Derik Whittaker shares a method of getting the Silverlight Toolkit Controls compiled in a form you can then use on the Windows Phone 7 version of Silverlight
  • Code Coverage: Did we run the right tests? - Bj Rollison continues an exploration of Code Coverage from a testing point of view, highlighting how it is easy to achieve high code coverage in real tests without actually testing sufficient cases to find problems in that code.
  • Searching and skimming code - ’stevencl’ highlights an interesting paper about how developers orient themselves in unfamiliar code and go about trying to fix bugs
  • Everybody thinks about garbage collection the wrong way - Raymond Chen kicks off his CLR week of posts with a look at some of the misconceptions about Garbage Collection, and what that can mean for you as a programmer. Check out the comments for further discussion.
  • How to Post Code To Your Blog and other Religious Arguments - Scott Hanselman takes a look at the various different methods of embedding code samples in your blog posts (a common problem for Developer-Bloggers) examining the pros and cons of each method.
  • Common Programmer Health Problems - Garry Shutler highlights a good article from Zed Shaw on the many health problems associated with being a Software Developer, and suggesting things you should do to help avoid them.

Community

  • Calendar: Upcoming Meetup list - Canary Wharf .NET User Group (London, England) - The Canary Wharf .NET Usergroup will be meeting on the 18th August at 6:30pm where Neil Foster will be sharing the Microsoft roadmap for High Performance Computing, with Steve Harris showing how HPC techniques can be applied to Excel. The Group will also be meeting on the 1st September for a look at Expression Blend for WPF Developers where Sam Bourton will be guiding you round the tools.
  • MSDN Firestarter Events Coming Soon - Chris Bowen highlights a series of events across the US for developers interested in learning about the latest Microsoft offerings in Cloud, Web and Client technologies
  • Register for DevCon London, the European conference on .NET technologies - The UK MSDN blog shares a 30% off discount code for the DevCon London conference. Standard conference rates range from the £349 1 day early bird, through to £699 for all three days, so this discount is substantial.

The Morning Brew #660

Posted by Chris Alcock on 09 Aug 2010 | Tagged as: .NET, Development, Morning Brew

Software

Information

Community

  • What Can You Build in 1k of JS? - Ajaxian highlights a contest from Peter van der Zee for you to build the most impressive demo possible in 1k of JavaScript. Closing date is 10th September.

« Previous PageNext Page »