Posted by Chris Alcock on 30 Jun 2011 | Tagged as: .NET, Development, Morning Brew
- Eduasync part 14: Data passing in coroutines – Jon Skeet continues his series of posts looking at re-implementing the the Async CTP and related functionality, furthering his previous discussions of Coroutines in this post, exploring the passing of data between coroutines, and exploring a simple implementation.
- Manual Validation with Data Annotations – K. Scott Allen explores the wider use of the System.ComponentModel.DataAnnotations outside of the typical data framework and web UI, looking at their use in a simple console application
- The Perils of User-Agent Sniffing, 2011 Edition – Eric Lawrence re-iterates the perils of performing User Agent Sniffing in your we applications, showing a number of examples where incorrect sniffing is causing we applications to fail (sometimes completely) on modern Internet Explorer implementations.
- I Don’t Have Time for Unit Tests – Mike Hadlow discusses some of the initial worries people have about adopting Test Driven Development, looking at some statistics about developer time and suggesting that having a good suite of TDD tests can aid in comprehension of code, the area which research shows most developer time is spent.
- The history of ASP.NET MVC, so far – Simone Chiaretta looks back over the 3 (and a half) releases which have been made on the ASP.NET MVC project, highlighting the key features and improvements introduced in each, providing a useful background to the features available.
- Shared rooms synchronization problem – Dzmitry Huba explores a reasonably complex abstract synchronisation problem which allows for an exploration and example of use of some of the locking and synchronisation types available in the .NET platform.
- Use it or lose it! [New Delay.FxCop code analysis rule helps identify unused resources in a .NET assembly] – David Anson shares another custom FxCop rule implementation, this time looking at the resources included in your application, identifying those which are not referenced in your code. As usual, David provides binary and full source, so this is a double hit of useful functionality and another example to look at when implementing your own rules.
- How to mock a dynamic object – Daniel Cazzulino takes a look at mocking a dynamic object using the Moq framework, showing how, due to dynamic’s nature you can actually use an anonymous type as the payload for the dynamic object.
- Quick microbenchmarks in Visual Studio with Code Snippets – Parallel Programming with .NET – Site Home – MSDN Blogs – Stephen Toub shares a snippet of code hich sets up a framework for soing simple performance comparisons between two pieces of code, including the clean up and timing logic between each test run.
- Just Do It: Command-Query Segregation, Nike-Style – Dylan Beattie likens his CQRS Commands to a psychotic drill sergeant in this short discussion of some of the things he learnt about implementing CQRS at Udi Dahan’s Advanced Distributed Systems Architecture course.
Comments Off on The Morning Brew #884
Posted by Chris Alcock on 29 Jun 2011 | Tagged as: .NET, Development, Morning Brew
- Simple.Data 0.6.8 – Mark Rendle announces version 0.6.8 of his Simple.Data library. This project, initially a reaction to the Microsoft.Data library, is rapidly approaching its 1.0 release. The 0.68 release improves the libraries capabilities with joins between tables, adding support for Self Joins and joins where there is not referential integrity in the database.
- Updated Release for stylecop – The version number is 126.96.36.199. – Tatworth highlights yet another Style Cop release which addresses some issues for processing of async code. This release is the one that will likely become the RTW release on Thursday
- ReSharper 6 RC2; EAPs for dotCover, dotTrace Performance – The team over at JetBrains have released a second Release Candidate release of ReSharper 6, addressing issues with solution wide analysis and find code issues functionality, and have also opened new early access previews of minor updates to dotCover and dotTrace which improve the integration with ReSharper 6.
- What is Code Metrics Viewer? – Matthias Friedrich highlights his Visual Studio 2010 Code Metrics Viewer extension which plugs into VS 2010 Professional and uses the Code Metrics Power Tool to provide code metrics information to the IDE. Matthias is blogging a number of posts on this project blog which look at the various features of the viewer and I encourage you to check those other posts out too.
- Office 365 Launches Globally – US ISV Evangelism – Site Home – MSDN Blogs – Bruce Kyle highlights the official release of Office 365, launched yesterday, highlighting resources for those who want to develop against the Office 365 services.
- Introducing the Expected Objects Library – Derek Greer follows on from his recent post on the Expected Objects pattern with the sharing of a library of code, the Expected Objects Library, which makes the implementation of the expected objects easy. Derek outlines the use of the library in this post, and highlights how it can be obtained via NuGet for Binary or GitHub for source.
- Unit testing and the Scientific Method – Oscar Calvo discusses taking a more scientific approach to your unit testing, looking principally at the tests for addressing a bug fix, exploring each of the stages of the scientific method.
- Html5 Snooker Club – CodeProject – Marcelo Ricardo de Oliveira shares a detailed article on CodeProject which looks at the building of a snooker game using HTML5 technologies, discussing the various features of the game, and the HTML5 functionality that each use, sharing relevant code snippets in the article and providing the full source as a download.
- ActiveMQ and .NET combined! – ?ukasz takes an introductory look at getting up and running with the ActiveMQ message queue in your .NET applications, showing how easily the .NET port of the Java API makes this process.
- Weak references in .NET – Vishwas Sutar explores the use of the Weak Reference in .NET applications by way of an example, showing how weak references allow us to point at an object while still allowing the garbage collector to remove the instance if required by the system.
- You can’t cache DateTime.Now – Ayende discusses a situation where he was seeing lots of cache misses for a particular set of queries due to their use of DateTime.Now in a criteria which meant that the query was different every time.
- The Workflow Parallel Activity and Task Parallelism, Windows Workflow (WF4) Task Parallelism with Sequences & Windows Workflow Foundation (WF4) ParallelFor Activity – Ron Jacobs takes a look at task parallelism in Windows Workflow 4, refelcting back on a previous post about the threading used in WF4 and looking at the parallel support in synchronous and asynchronous activities, and Parallel activities.
- Announcing Four New F# Projects For Creating Web Apps – Robert Pickering highlights 4 projects whcih make creating web applications using F# much easier, all available as source and NuGet packages, covering MVC frameworks, logging, NoSql Database access and Linq.
Comments Off on The Morning Brew #883
Posted by Chris Alcock on 28 Jun 2011 | Tagged as: .NET, Development, Morning Brew
- Say Hello to Project jQMvc – Kowsheek Mahmood shares a collection of HtmlHelper extension methods which help when building a jQuery Mobile web application using ASP.NET MVC
- ASP.NET MVC 3 Docs In Nine Languages – Phil Haack announces the availability of ASP.NET MVC 3 documentation in the 9 languages which the ASP.NET MVC framework is available (Japanese, Korean, Chinese (Simplified & Traditional), German, Spanish, French, Italian & Russian)
- NETMF 4.2 – Other CodePlex NETMF Projects – Colin Miller highlights some of the other great projects which build on and extend the .NET Micro Framework and are available for your use on the CodePlex site.
- Using Code Signing Certificates to sign downloaded MSIs and build reputation with IE9 SmartScreen – Scott Hanselman gives an update on the success of the Web Standards Update package, revealing that this was a community effort from a number of MS employees on their own time, and not a formal Microsoft project. Scott also looks at the process of signing installers with Code Signing Certificates can help your projects get through the Internet Explorer SmartScreen functionality by building trust in your software.
- Precompile your MVC Razor views using RazorGenerator & Unit test your MVC views using Razor Generator – David Ebbo highlights the evolution of his single file Razor view precompiler, highlighting ‘Razor Generator’ available on the Visual Studio Extension Gallery, and looking at its use, before moving on looking at how the Razor Generator can be used to help you unit test your view code.
- Ajax-based data loading using jQuery.load() function in ASP.NET – Hajan Selmani takes a back to basics look at using jQuery to load partial chunks of HTML from a page using Ajax and insert them into the current page, providing a nice way of lighting up a web application with an ‘Ajax’ feel whilst easily maintaining non-ajax support.
- Extension methods on a null object instance – something you did not know – Arun Mahendrakar takes a look at extension methods, discussing their use, and how extension methods can be called on instances which are null.
- Embedding and inlining resources in ASP.NET Web Controls – Michal Altair Valášek looks at the embedding of static resources into your Web Controls assembly and the retrieval of these items, also exploring the use of Data URIs for another way of embedding such data with your controls.
Comments Off on The Morning Brew #882