Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

Monthly Archives: April 2009

Functional C# – Reverse Functional Composition

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 … Continue reading 

Posted in C#, F#, Functional Programming, Haskell | Leave a comment

Functional C# – Forward Functional Composition

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 … Continue reading 

Posted in C#, F#, Functional Programming | Leave a comment

Functional C# – Composing Through Partial Application

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 … Continue reading 

Posted in C#, Functional Programming, Haskell | 5 Comments

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

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 found … Continue reading 

Posted in Agile, ALT.NET, TDD/BDD, User Groups | Leave a comment

Functional Solution for the Shortest Path Problem

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, … Continue reading 

Posted in Uncategorized | 4 Comments

Haskell and Collective Intelligence

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 … Continue reading 

Posted in Collective Intelligence, F#, Functional Programming, Haskell | 3 Comments

From Imperative to Functional – Transposing Maps

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 … Continue reading 

Posted in Collective Intelligence, F#, Functional Programming | Leave a comment

Functional Programming and Collective Intelligence – IV

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 … Continue reading 

Posted in Collective Intelligence, F#, Functional Programming, Haskell, Python | 2 Comments

Functional Programming and Collective Intelligence – III

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 … Continue reading 

Posted in Collective Intelligence, F#, Functional Programming | 3 Comments

Functional Programming and Collective Intelligence – II

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.  The Programming Collective Intelligence covers these two … Continue reading 

Posted in Book Reviews, F#, Functional Programming, Haskell | 2 Comments