Ok, you are right, only members can view it... Ok, here is the page:
  Why to use Boo.
Edit<http://groups.google.com/group/battle-programming/edit/why-to-use-boo>
     Ok, guys, here is a simple example why to use Boo instead of c#.

As I said before, Boo will help you develop and debug your classes faster.
Look at this sample code for generating md5 hash in C#:

**
*using System;
using HackFramework.BasicAlgorithms;

class Program
{
    public static void Main(string[] args)
    {
        if (args.Length == 1)
        {
            MD5Class x = new MD5Class(args[0]);
            Console.WriteLine(x.ToString());
        }
        else
            Console.WriteLine("Usage: md5hash <string>");
    }
}*

and now the same in Boo:

*import HackFramework.BasicAlgorithms

if argv.Length==1:
    x = MD5Class(argv[0])
    print x.ToString()
else:
    print "Usage: md5hash <string>"
*
7 lines instead of 16 doing the same thing.
Code in Boo is very simple, wrist-friendly and can be used as script,
compiled to .exe or used in Boo Interactive Shell in throw-away mode (if you
are testing something, you don't need the "test code" more than once)

Well, I am not telling you to stop using C#. I program only in C#, but if I
have some class I want to test its functionality, I do it in Boo.
It is also pointless for me to make some simple utilities as md5hash in C#
for you, C# is for real coding :)

2009/8/1 William Louis <[email protected]>

>
> Instead of giving the like y not try to cpy-paste the small content
> here...
>

Reply via email to