Here’s a quick fact that would have saved me quite some time of frustration and fruitless googling had I known it: When debugging Windows Phone applications in Visual Studio 2010, user-unhandled exceptions will always break into the debugger, regardless of how much you fiddle with Debug | Exceptions or Tools | Options | Debugging: Windows [...]
Windows phone projects always break at unhandled exceptions
April 20th, 2012 by Andreas Hallberg — .Net, Tips & Tricks
Tags: visual studio, windows phone, wp7
Asset management with Sprockets
September 19th, 2011 by Andreas Hallberg — Dynamic languages, Tips & Tricks
A quick tip in case you’re a Ruby person and haven’t used the Sprockets gem: Sprockets is a Rack application that serves assets (javascript, css, images etc) over HTTP. It’s built in to Rails 3.1 and DHH spent a significant portion of the RailsConf 2011 keynote promoting its benefits (although I’m not sure he ever mentioned its [...]
Tags: ruby, Ruby On Rails
Pretotyping will save your life
April 18th, 2011 by Andreas Hallberg — Agile, Tips & Tricks
I bet you and your great idea are having a fantastic time in Thoughtland. You’ve probably invited some of your friends too, and you’re all tall as trees from the Group Think hookah. No idea what I’m talking about? You have to watch Patrick Copeland’s QCon Keynote video on Pretotyping. Those 43 minutes might just save [...]
Tags: pretotyping
App Attack – three teams, three solutions
April 15th, 2011 by Andreas Hallberg — Uncategorized
What happens when you give three small teams ninety minutes, one loosely worded spec and no rules? Read on. We developers instinctively focus on the code. It must be testable, decoupled, beautiful, robust, and (here’s the thing) it should hopefully do what it supposed to do. Let’s create a situation where, for once, only the [...]
Tags: html5, javascript, windows phone 7
Silverlight: Prefer synchronous web service calls
June 10th, 2010 by Andreas Hallberg — .Net
Daniel Vaughan realized that synchronous web service calls are perfectly legal in Silverlight as long as the calls are not made on the UI thread. He wrote a neat library on CodeProject for it. Using Daniel’s library, our Async helper and interfaces for our web services, we can write beautiful web service-calling code in Silverlight: [...]
Tags: silverlight, synchronous, webservice
Readable and testable asynchronous execution
May 27th, 2010 by Andreas Hallberg — .Net, Tips & Tricks
Executing code asynchronously in C# gives you at least two headaches: the code becomes hard to read and a pain to unit test. Here’s one way to alleviate these pains, using a configurable singleton aptly named “Async”: Async.Execute(() => { // … Console.WriteLine(“We’re running this on a background thread”); // … etc }); That’s the [...]
Tags: .Net, async, asynchronous, C#
