The fun part working or explaining functional pattern is word functional can be used in very fun way. Just like it is used in title here. Now, factory pattern may be the most used pattern in Object Oriented world. Here is code in C#. Factory method is basically used to abstract away the object creation. I am not worried how object is created but I am worried about the behavior of the objects that are created.
As functional programming is taking pace in current software development. There is always a question what is the difference and why on the earth I should bother about it. Most of the time reason of the question comes because of human nature of resistance towards learning new things. And then there are people who can easily learn new things but even for them unlearning something and re-learning new things is pretty tough.
There is a continues war between typed and untyped data. But then there is need of finding a middle ground for ever growing application. There is place, a requirement when I feel application should be typed and data store should be untyped. So, I created this little code snippet to access cloudant (a couchbase fork) NOSQL database. I was knowing about Cloudant from long back. Even before IBM bought it. It is indeed a wonderful service and also kinda free for small stuff.
There are lots of frameworks for web development in Nodejs. Many of them are pretty cool. I pretty much like the SailsJS. And also have worked on that in recent past. Now, when it comes to hosting I love the Azure for various reasons. It is specially awesome when it comes to web sites. You do some experiments and throw it towards azure and that is ready for world to check out.
Xamarin Evolve just concluded. And there no best time to write this post. And for the fact I am not writing anything new or even anything related to announcements that happened there. I am writing this because recently I got chance to work with android using Java. And experience was not at all good. And reason is not so surprisingly Java. I am will not explain anything instead I just copy paste three code snippets.
F# is wonderful language. And luckily or unluckily I do Web Programming (now a days mostly that). So, it is always a preference to use it, wherever possible. But even in 2014 end it is still pain in a**. I did make templates for Servicestack and I will continue to support that. But when it comes to real projects they go far beyond templates. I recently experimenting on something and obviously I am gonna use templates created by me.