DotNetShoutout - Stories tagged with functional
4
Shouts

Making It More Functional

published 625 days, 19 hours, 14 minutes ago posted by KodefuGuruKodefuGuru 626 days, 13 hours, 59 minutes ago
Saturday, September 03, 2011 10:20:57 AM GMT Friday, September 02, 2011 3:35:43 PM GMT
Ted Neward goes through a code kata with several programming paradigms in the latest Working Programmer column. Being a coding polyglot is all the rage nowadays, and understanding multiple paradigms is essential to being a well-rounded developer. Ted goes through procedural style, modifies it to be object-oriented, demonstrates how to use meta and then dynamic programming. Finally, he makes it more functional. The proposed solution adds an aspect of functional programming, but it can be taken further... (more)
category: How To | clicked: 19 | 3 comments | | source: www.kodefuguru.com
tags: C#, functional, MSDN Magazine
6
Shouts

Creating an English-like Math DSL

published 726 days, 21 hours, 52 minutes ago posted by KodefuGuruKodefuGuru 729 days, 2 hours, 18 minutes ago
Wednesday, May 25, 2011 7:43:28 AM GMT Monday, May 23, 2011 3:17:10 AM GMT
The answer to life, the universe, and everything is well-known as 42. There are a myriad of questions that lead to this answer, and my favorite is perhaps the percent of leet pi. I wanted to be able to write this in C# as close to English as possible. Since I had no way to write my own keywords, the closest I could devise was the following bit of code.double percent = 0.01; var answer = percent.Of().Leet().Pi(); The tricky part here is deciding what to do about the Of() method. It represents an operati... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: Extension Methods, functional, partial application
2
Shouts

Project Euler Problem 16 in F# | Stefano Ricciardi

posted by stefanoricstefanoric 889 days, 14 hours, 40 minutes ago
Monday, December 13, 2010 2:55:23 PM GMT
A solution to Project Euler problem 16 in F#. (more)
category: How To | clicked: 0 | comment | | source: stefanoricciardi.com
tags: DotNet 4.0, functional, F#
5
Shouts

Project Euler Problem 9 in F# | Stefano Ricciardi

published 998 days, 17 hours, 55 minutes ago posted by http://sterioma.pip.verisignlabs.com/http://sterioma.pip.verisignlabs.com/ 999 days, 13 hours, 56 minutes ago
Thursday, August 26, 2010 11:39:36 AM GMT Wednesday, August 25, 2010 3:39:15 PM GMT
A solution to Project Euler problem 9 in F#. (more)
category: How To | clicked: 0 | comment | | source: stefanoricciardi.com
tags: project euler, functional, F#, Algorithm
4
Shouts

Continuation-Passing Style Overload

published 998 days, 17 hours, 55 minutes ago posted by KodefuGuruKodefuGuru 999 days, 15 hours, 15 minutes ago
Thursday, August 26, 2010 11:39:36 AM GMT Wednesday, August 25, 2010 2:20:24 PM GMT
I wrote about continuation-passing style in a post a couple of months ago, and I’ve had time to ruminate over it since. One consideration I had is whether to return a type or not. This is easily handled by overloading the method. I also describe how I created an executable with Func (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: CPS, C#, Func, functional, continuations
5
Shouts

Project Euler Problem 5 in F# | Stefano Ricciardi

published 1011 days, 18 hours, 30 minutes ago posted by http://sterioma.pip.verisignlabs.com/http://sterioma.pip.verisignlabs.com/ 1012 days, 8 hours, 52 minutes ago
Friday, August 13, 2010 11:04:45 AM GMT Thursday, August 12, 2010 8:43:06 PM GMT
A solution to Project Euler Problem 5 in F#. (more)
category: How To | clicked: 0 | 2 comments | | source: stefanoricciardi.com
tags: functional, euler, F#, Algorithm