Let’s make C# better…

verbosity  of c# can make a grown man cry (at least this one :) )

So let’s just try to remove most obvious verbosity offenders…

Step one…. Given this nicely written C# class:

…we remove curly curly braces, semicolons and ‘private’ keyword (it is default), and we get this:

Isn’t this great? And we have just started…

til next time….

Simple Continiuos Integration with FAKE and windows scheduler #fsharp

Below are the details about a very simple CI setup,  the one that simply checks GitHub for changes to ‘master’ and if

there were any, runs FAKE build script.

First FAKE script:
//

The only part that should be interesting (the rest is standard FAKE) is conditional dependency for ‘Default’ task.

It depends on returned value from a custom FAKE task that checks if there are changes on GitHub.

Here is the custom task:

That is all – “simple” is the keyword  :) – here is the screenshot of it running:

Capture

Till next time…

programming languages syntax differences – (1)

  • coffeescript list = [1, 2, 3, 4]

  • c#                   var list = new List<int>() {1, 2, 3, 4);

  • boo:               list = [1, 2, 3, 4]

  • roy:                let list = (1, 2, 3, 4)

  • F#                   let list = [1; 2; 3; 4]  //semicolons?

  • nemerle:      def numbers = [1, 2, 3];

  • scala:             val list = List(1, 2, 3)