posts - 280, comments - 318, trackbacks - 0

My Links

News

View Steve Michelotti's profile on LinkedIn

Twitter












Tag Cloud

Archives

Post Categories

Blend Bloggers

Bloggers that I follow

Books

F# Bloggers

F# Communities

F# Online Books

Fonts

HTML CSS ASP

Machine Learning

My Links

My Local UserGroups

My Online Presence

MY SA Links

Online Seminars

SA Software Companies

Web Design

F# – Converting your C# brain to the F# way

 

My brain still thinks in C#!!! I have been looking at F# and trying to figure out the basics of it, but all the time in the back of my mind I am going – what is the C# equivalent to this or that… It’s frustrating because I almost want a F# to C# dictionary the whole time – and simply translate my C# code to F# – which would negate the main motivation for learning F# – as I want learn functional programming - if I was simply doing C# code in a F# syntax I would be gaining nothing!

So I am experiencing pain while my brain forms some new neural networks… but luckily I live in a country where we have 11 official spoken languages, and plenty more unofficial languages so I have gone through the pain of learning how to speak a new language before – and I am finding the process is almost identical in learning a programming language that promotes a different way of looking at problems (from Object Orientated to Functional).

That beings said… the first thing to learn is the basic syntax… I have searched the web for appropriate places to get a translation – and have been quite disappointed with what is out there for F#.

Luckily, OCaml came to the rescue. There are some really good tutorials on getting started with OCaml syntax, one in particular that stood out was the OCamal-Tutorial. What I particularly like about it is that it is doing comparisons between C based languages and OCaml. Give it a read sometime – it’s well worth it and has definitely helped me understand F# a little better.

Print | posted on Tuesday, March 09, 2010 7:10 AM |

Feedback

Gravatar

# re: F# – Converting your C# brain to the F# way

You may want to check out

http://lorgonblog.spaces.live.com/blog/cns!701679AD17B6D310!1325.entry

especially the link entitled "What does this C# code look like in F#?"
3/9/2010 11:03 AM | Brian
Gravatar

# re: F# – Converting your C# brain to the F# way

Thanks... I will definately go through this - it helps alot!
3/9/2010 12:11 PM | Mark
Gravatar

# re: F# – Converting your C# brain to the F# way

there is msdn and this book. http://www.ctocorner.com/fsharp/book/
3/10/2010 4:41 AM | D
Gravatar

# re: F# – Converting your C# brain to the F# way

I found this Wiki book very approachable:
http://en.wikibooks.org/wiki/F_Sharp_Programming
3/10/2010 5:05 AM | Alex O.
Gravatar

# re: F# – Converting your C# brain to the F# way

I really like site suggested by D - thanks so much. Also the wiki is going to make my life a lot easier - thanks Alex
3/10/2010 7:23 AM | Mark
Gravatar

# re: F# – Converting your C# brain to the F# way

F# rocks :) You can alwasy look at Microsoft F# web site:
http://msdn.microsoft.com/en-us/fsharp/cc835246.aspx
3/10/2010 12:42 PM | Mateusz Kierepka
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: