SRT Solutions

Blogs

Browse by Tags

  • Creating Readable LINQ

    Keith Elder wrote a post a post asserting (or at least proposing) that a more imperative syntax for a problem is more readable than a LINQ based C# 3.0 version. (See here for his post). Well, that got my hackles up. Some days, my hackles get up before I do, but I digress. His example code as examining...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Fri, Oct 10 2008
  • Paul Kimmel interviews me about C#, LINQ, and writing books

    Paul Kimmel spent some time over the summer chatting with me about More Effective C# , LINQ, upcoming C# features, and the process of writing books. It's live here: http://www.informit.com/articles/article.aspx?p=1237069
    Posted to Bill Blogs in C# (Weblog) by wwagner on Mon, Oct 6 2008
  • DNR TV on C# 3.0 is live

    Last week, I recorded a DNR TV with Carl Franklin discussing C# 3.0 extension methods, local type inference and some of the best practices that revolve around those parts of the languages. It's up and live now. Check it out here .
    Posted to Bill Blogs in C# (Weblog) by wwagner on Mon, Sep 29 2008
  • Channel 9 interview with the VS.NET IDE team

    Is located here . It's well worth 30 minutes of your time. Observation: Dustin is fitting in quite well with a great team.
    Posted to Bill Blogs in C# (Weblog) by wwagner on Tue, Sep 9 2008
  • Euler Problem 10

    Patrick posted his solution earlier this week. I figure it was time to add mine. Also, Octavio Hernandez pointed out in the comments to problem 8 that he had discussed similar code constructs in his blog a while back. Problem 10 asks for the sum of all primes less than 2 million. It's also one line...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Sun, Aug 31 2008
  • Code from Lightning Talk: Compiler Tricks

    My last Lightning Talk should how you can mix constructor calls and object initializers. It's a useful technique that can keep you from writing too much code you don't need. To see what I mean, start with this simple person class: 1: class Person 2: { 3: public string FirstName 4: { 5: get; 6...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Sat, Aug 30 2008
  • Mads Torgersen keynoting at CodeMash

    Dianne posted the official announcement to the CodeMash google group here , I'm happy to join the echo chamber and promote that Mads will be offering one of the keynote addresses at CodeMash. In the colloborative and lightheared spirit of CodeMash, Mads sent us this new bio: Mads Torgersen is the...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Fri, Aug 29 2008
  • Euler Problem 9

    I was going to wait a bit to post this, but Patrick Steele posted his solution , so I figured I should post mine. Patrick took the straight out brute force approach. I decided to think a bit differently and use the some LINQ code to generate my answer. The problem is to find the only Pythagorean triplet...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Thu, Aug 28 2008
  • Euler Problem 7

    Yes, it's true that I've been very lax in working on these problems. It's been a combination of the day job, finishing all the editing tasks on "More Effective C#", and actually trying to keep the personal life intact. The 7th problem is quite straightforward: find the 10,001st...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Thu, Aug 14 2008
  • Overload Resolution on Extension Methods

    I had a question from a colleague the other day about extension methods. I'm simplifying a little, but he was looking for a way to ensure that every source file used the same set of extension methods. There is one way to enforce this, but it does have an effect on your code organization. Section...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Sun, Aug 10 2008

In our last colurm, we wrote about how technical mentors can benefit companies ( Ann Arbor Business Review, May 22, 2008 ). In this installment, we're...