Java and Groovy can do it. Why not C# and PowerShell.

David Bergman presented Groovy: Java++ by being Java– at Lab49 which inspired me to record this 7min video doing the same with C# and PowerShell.

Best viewed in IE.

Press Ctrl-Shift-G if you want to speed up the presentation.

3 Responses to “Java and Groovy can do it. Why not C# and PowerShell.”

  1. Daniel Chait Says:

    Url for the video is broken - has an extra period before “html”.

  2. Jason Archer Says:

    Even more PowerShelly:

    “The total length of the names of the higher spirits is {0}” -f (”Luke”,”Daniel”,”David”,”Jesus” | Measure-Object Length -sum).sum

  3. Sergey Kogan Says:

    To make it fair to C# we gotta optimize it a bit as well:

    static void Main(string[] args)
    {
    Console.Out.WriteLine(”Total count: {0}”, args.Aggregate(0, (total, arg) => total + arg.Length));
    }

Leave a Reply

Developed by DataDesignIT