April 2009 - Posts

1
Comments

Functional C# – Reverse Functional Composition by podwysocki

In the previous post, I covered currying as well as left to right functional composition. I showed that with a few extensions methods to our functions, we can create rich, albeit verbose, solutions through functional composition. But, what about going...
2
Comments

Functional C# – Forward Functional Composition by podwysocki

In the last post , we talked about partial application and currying with respect to functional composition. I showed the power of functional composition in regards to a real-world example of how to calculate a book price given the chain of potential discounts...
1
Comments

Functional C# – Composing Through Partial Application by podwysocki

Earlier this week, I was challenged on Twitter to give a practical example of currying in C#. This was a great question, because outside of the normal add and multiply people tend to do, there isn’t much out there. This was also a question brought up...
0
Comments

[ANN] DC ALT.NET (4/29/2009) – Refactoring with George Dinwiddie by podwysocki

Continuing with our back to basics series which started last month with an introduction to Test Driven Development, this month we are covering Refactoring. The discussion will be led by George Dinwiddie , a software development consultant, coach and a...
Filed under: , ,
3
Comments

Functional Solution for the Shortest Path Problem by podwysocki

As part of my dive into the Collective Intelligence series , I’ve found myself many times taking code that was written in an imperative coding style and moving it towards a pure functional style with immutable data structures instead of ones, the application...
0
Comments

Haskell and Collective Intelligence by podwysocki

Tonight for the Real World Haskell Book Club , Paul Barry and I decided to dig through the Programming Collective Intelligence book as some good hack projects as we dive deep into the language features. As you may have noticed both here on my blog and...
1
Comments

From Imperative to Functional – Transposing Maps by podwysocki

In my recent adventures around Collective Intelligence , I took many code samples that have been written in an imperative coding style and moved them to a more functional style. With this move sometimes brings some leaps in thinking in which you have...
2
Comments

Functional Programming and Collective Intelligence - IV by podwysocki

In our last post in the series, we discussed a way to get which items I should check out next through the use of the our similarity algorithms which included the Pearson Coefficient, the Euclidean Distance and Manhattan Distance among others. This time...
1
Comments

Functional Programming and Collective Intelligence - III by podwysocki

Previously, I went over some formulas on how we can calculate the similarity between our items using the Manhattan Distance, Chebyshev Distance and the Jaccard Coefficient. Then we were able to plug in our given similarity function to another function...
2
Comments

Functional Programming and Collective Intelligence - II by podwysocki

In the previous post covering Functional Programming and Collective Intelligence , I left off with the discussion of the two different algorithms for measuring similarity, the Euclidean Distance and the Pearson product-moment correlation coefficient ...
More Posts