Custom Search

Monday, October 26, 2009

What is '::' in F#? What is Cons in FSharp?


As a novice F# developer, I was wondering; what is mean by '::' sign. I saw that people are using it every now and than. '::' means Cons. 'Cons' is the fundamental concept of computation programming with linked list. I got to know it from one of the Chris Smith's blog about List. Cons can be used to add an element at beginning of the list.

for example:

> 11 :: [12 .. 14];;
val it : int list = [11; 12; 13; 14]


Thursday, October 22, 2009

Next chapter of life...Nisarg


An Ignition

Well, reading design patterns was not my passion but one of my colleague often advice/talk about what 
should be considered before developing any software or piece of software application. He is an anti-MS 
guy, working on MS technology ($$$$$$$ does matter :)). We often talk about Inversion of Control, MVC,
Open source tools, OS, techniques, design patterns, Functional languages, declarative and imperative
languages, Why one should use interfaces? why not static?, Extension patters -- decorator, visitor and
lots more but all open source stuff like how an average developer mess up an application in long run and
much more... Inspired by our conversation, i thought its not too late to learn at least design patters 
(a backbone of OO software development) and at least one functional language.

Design Patterns in c# written by Steven John Metsker -- Is it worth to learn design pattern?

Pretty interesting book by Steven. He explained each design pattern from Csharp perspective. I already started reading but getting double mind. Is it worth to read design pattern? Visual Studio 2010 is coming with F# - A functional language. Not sure whether design patterns are applicable on functional language. But anyways, lets start learning both. F sharp and Design Patterns. Once i notice, whether, is it worth or not? i'll post it. Let me start reading design pattern...will keep you updated what i learn everyday.


This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Watch the latest videos on YouTube.com