mpodwyso

Stories submitted by mpodwyso

Much Ado About Monads – Maybe Edition(codebetter.com)

submitted by mpodwysompodwyso(65) 3 years, 3 months ago

In the past I’ve extensively talked about creating monads, but not as much more around them in terms of why you might use them and what problems they are trying to solve. Since that time, I’ve been challenged by others to actually prove not only that it can be understood by everyone, but they are very useful as well. It’s been a form of geekery among us software professionals to say, “Whoopee! I’ve learned how to implement a monad to do x” without really explaining the reason why people should care. read more...

add a comment |category: |Views: 12

tags: another

Functional C# - Implementing Async Computations in C#(codebetter.com)

submitted by mpodwysompodwyso(65) 3 years, 7 months ago

As I covered earlier in my post Functional .NET - LINQ or Language Integrated Monads, I talked about using asynchronous computation expressions (monads) from C# 3.0. Brian McNamara, of the F# team, posted back in May about using them from C#. But since then, things have changed slightly. Before, I showed a basic example of how to utilize the F# libraries from C#, but let's go deep under the covers to see how this actually works. read more...

add a comment |category: |Views: 14

tags: another

Functional .NET - LINQ as a Monad(codebetter.com)

submitted by mpodwysompodwyso(65) 3 years, 7 months ago

As part of my talk at the Richmond Code Camp earlier in October, I had the opportunity to talk about how to implement functional aspects in C# 3.0. This talk revolved around such concepts as from mutable to immutable, from inheritance to functional composition, and the mind shift that is required. Part of this discussion involved very briefly a talk about monads. It's a very misunderstood part of computer science and one of the most powerful concepts to learn. Much like continuation passing style, this style is often maligned as a result. But, let's work to change that. read more...

add a comment |category: |Views: 71

tags: another

ASP.NET MVC with NHaml - F# Edition(codebetter.com)

submitted by mpodwysompodwyso(65) 3 years, 7 months ago

As part of some of my adventures with F#, I've seen a lot of interesting things coming from others with regards to SharePoint, ASP.NET and other technologies. This had me thinking of any possibilities and ramifications of using F# with ASP.NET MVC. Was it possible, and better question, what might make someone use this over their existing toolsets. Those are some of the questions to explore. But, in the mean time, let's take the journey of F# and ASP.NET MVC. read more...

add a comment |category: |Views: 97

tags: another

Side Effects and Functional Programming(codebetter.com)

submitted by mpodwysompodwyso(65) 3 years, 8 months ago

One of my first posts at CodeBetter was in regards to side effects and how, when unmanaged, can be truly evil. Today, I want to revisit that topic briefly in regards to functional programming and managing side effects. When I was out in Redmond a couple of months ago, I had the opportunity to sit down with Erik Meijer to discuss functional programming among other topics. In there, we discussed a number of issues around managing side effects and state in your code, and how both C# and F# don't intrinsically support such a concept. Languages like Haskell, of course do with IO monads and other such monadic structures. Whether languages such as F# and Erlang are not pure functional programming languages is another matter, due to the fact that you don't have to declare when you are side effecting (reading a database, writing to console, spawning a process, etc). read more...

add a comment |category: |Views: 8

tags: another