Tag Archives: c#

When Events Go Bad

Yes­ter­day, I dis­cov­ered the dark, evil, brood­ing side to using lamb­das to hook up events, even though they look so cool. Here’s an exam­ple: pub­lic void GetCustomerOrders(string stor­eId) { Proxy.DocumentDownloadCompleted += (data) => this.HandleCustomerOrders(data); Proxy.GetXML(“customerorderservice.svc/customerorders/” + stor­eId); } All well and good, that works like a champ. Usu­ally. As long as you don’t want to

Free Programming Book

Data Struc­tures and Algo­rithms with Object-Oriented Design Pat­terns in C#. I can’t speak to its use­ful­ness since I haven’t read it (the title alone sounds rather ambi­tious for one book) but hey, the price is right.

Closures in Clojure and C#

So one of the ways I learn a new lan­guage is to take new things from the new lan­guage and port them back into the old, famil­iar one. Even­tu­ally, I’ll port an entire appli­ca­tion (even though that app may be very small) from the old to the new. I find that I learn things much