Yan Cui's blog articles

0
comment
on 9/28/2011 3:51 AM
When you consider the age old problem of representing different shapes (circle, triangle, square, rectangle, etc.) my OO fed developer brain naturally jumps to a class hierarchy along the line of: This is perfectly fine and legit, but it’s not the only way to approach things. Since I’ve been on a more varied diet of [...]
>> Read the full article
.
0
comment
on 9/27/2011 3:00 AM
C# developers should be familiar with the yield keyword that was introduced in C# 2.0, and you’ll be pleased to know that F# also has the yield keyword which works in conjunction with F#’s equivalent of IEnumerable – sequences. You can create sequences in F# using sequence expressions: In addition, you can also use the [...]
>> Read the full article
.
0
comment
on 9/26/2011 5:06 PM
In F#, you can defined record types which differ from tuples and discriminated unions in that they allow you to organize values into a type and name those values through fields: Looks like a cut-down version of a standard .Net class with a couple of properties? Yes they do, but records offer several advantages over [...]
>> Read the full article
.
0
comment
on 9/26/2011 12:49 PM
I’m taking a bit of time to brush up my knowledge of F# and see if I can write better F# code and one of the things I notice is that whilst I use pipe-forward operator (|>) often when working with collections I don’t nearly use the pipe-backward operator (<|) as frequently as I should. [...]
>> Read the full article
.
0
comment
on 9/11/2011 9:10 AM
Problem Each character on a computer is assigned a unique code and the preferred standard is ASCII (American Standard Code for Information Interchange). For example, uppercase A = 65, asterisk (*) = 42, and lowercase k = 107. A modern encryption method is to take a text file, convert the bytes to ASCII, then XOR [...]
>> Read the full article
.
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