Bill Blogs in C#

Bill Wagner discusses C#, LINQ, and other items of interest

Browse by Tags

All Tags » LINQ » C# General (RSS)
Clarifying my comments on Previous Post
My last post generated valid criticisms from readers. Let’s clarify and correct that. Keith Elder commented: I got the impression reading your post that you "skimmed" my article and didn't really get what it was I was getting at. […] The...

Posted by wwagner | with no comments

Filed under: , ,

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...

Posted by wwagner | 3 comment(s)

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 by wwagner | with no comments

Filed under: , , ,

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 by wwagner | with no comments

Filed under: , , ,

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...

Posted by wwagner | 2 comment(s)

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...

Posted by wwagner | with no comments

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...

Posted by wwagner | 3 comment(s)

Filed under: , , ,

Rough Cuts available for "More Effective C#"
OK, this is why my blogging activity has slowed to a crawl, or downright stopped lately. I've been working quite a bit on my next book: More Effective C#. It's getting closer, and it's now available on Rough Cuts. Rough Cuts is a Safari Books...

Posted by wwagner | 1 comment(s)

Filed under: , ,

A Functional Programming Q & A
I received this question in email from one of my readers, and I thought it would be of general interest: I find myself with two arrays of the same size and I want to create a third that combines each element. What I want is something similar to var S3...

Posted by wwagner | 2 comment(s)

The Obligatory Post-MVP Summit Post
Well, I'm back from the MVP Summit, and it seems that tradition mandates a summary of the trip. But there is one problem: The best content was all under NDA. Most MVPs spend their time with members of the product team for their award, and other teams...

Posted by wwagner | with no comments

Filed under: , ,

Project Euler problem 6
Euler Problem six asks you to find the difference between the sum of squares and the square of the sum for the natural numbers 1 through 100. I took the easy route, and made a brute force implementation in C#. There are a couple new bits of LINQ syntax...

Posted by wwagner | 1 comment(s)

Filed under: , , ,

Euler problems in other languages
I've had some comments on the Euler problems, so I'm assuming there is some interest. There's also been interest among other developers in our office. Darrell Hawley has started solving the problems in Python. Marina Fedner has started solving...

Posted by wwagner | with no comments

Filed under: , , ,

Euler Problem 4: Finding Palindrome numbers
The fourth Euler problem asks you to find the largest palindrome number that is the product of two three digit numbers. For example, the number 919 is a palindrome: it's the same forward and backwards. To solve this problem, we need to find the product...

Posted by wwagner | 6 comment(s)

Filed under: , ,

Looking Inside C# Closures
If you're like me, you understand new language features better when you see what the new language features generate for you. Closures in C# are no different. There's quite a bit that goes on under the covers in a C# closure. Looking at all the...

Posted by wwagner | 4 comment(s)

My CodeMash Agenda
As I finish my talk preparation for CodeMash, I'm putting together my schedule. You can view the silverlight page here: http://codemash.org/sessionscheduler/?1=2&2=28&3=4&4=7&5=3&7=42&8=14 However, that doesn't let me annotate...

Posted by wwagner | 1 comment(s)

More Posts Next page »