Blog articles tagged 'programming'

0
comment
on 1/9/2012 5:43 PM
In C#, you can use the object/collection initialization syntax like this: The F# equivalent of object initialization is done like this: As for collection initialization, you have a far more diverse range of tools available to you, for example: You can als[...]
.
0
comment
on 1/8/2012 9:29 AM
If you’re reading this post, you probably know about F#’s Units of Measure already, it’s very useful when working with real-world units and adds extra safety to code that needs to work with and convert from one unit to another. Here’s a quick snippet that[...]
.
0
comment
on 1/1/2012 1:36 PM
After reading this old post by Don Syme, I really liked the idea of wrapping the result of any computation into an option type to signify success and failure cases and stop subsequent computations on the first failure. It’s neat but I wanted to tweak a co[...]
.
0
comment
on 12/29/2011 4:41 PM
In C#, you define an empty class, struct, or interface like this: So how do you define an empty type in F#? Well, whenever you define a new class in F#, the compiler infers the class and end tokens at the beginning and end of the class’s definition, as yo[...]
.
0
comment
on 12/25/2011 5:24 PM
There’re a number of built-in literal types in F#, and one of the cool things you can do is to get the byte or byte array representation of a char or string using the ‘B’ suffix, the result is the same as Encoding.ASCII.GetBytes: Pretty cool, eh?
.
0
comment
on 12/21/2011 6:46 PM
Generic type parameters were introduced in C# 2.0, and they gave us the ability to write code that works against any type that matches a set of constraints and remove the need to create type-specific overloads, e.g.: A few years passed, and dynamic types [...]
.
0
comment
on 12/11/2011 3:30 PM
Due to popular demand… well, I had a couple of requests anyway :-) Heres a post inspired by my recent encounters profiling some of the code in Fracture-IO.
.
0
comment
on 12/10/2011 2:12 PM
A little while ago I put together a quick performance test comparing the BCL’s BinaryFormatter with that of Marc Gravell’s protobuf-net library (.Net implementation of Google’s protocol buffer format). You can read more about my results here. There’s anot[...]
.
0
comment
on 11/30/2011 9:31 PM
Starting on December 5th and running for six weeks, the author of "Clojure in Action", Amit Rathore, is leading an online introduction to Clojure course for just $325. See the CodeLesson web site for more details on this Clojure course. I'm fortunate that[...]
.
0
comment
on 11/30/2011 5:10 PM
I stumbled upon this interesting question on StackOverflow today, Jon Harrop’s answer mentions a significant overhead in adding and iterating over a SortedDictionary and Map compared to using simple arrays. Thinking about it, this makes sense, the SortedD[...]
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper