My Life in Code



10 PRINT “Hello World!”
20 GOTO 10
The guys at Radio Shack are going to hate me….


this will be more fun…
#include<iostream>
intmain(int argc, char* argv[])
{
    std::cout << “Hello World!” << std::endl;
    return 0;
}

no more memory management…
class Driver
{
    static void Main(string[] args)
    {
        Console.WriteLine(“Hello World!”);
    }
}


And Today my code will work….

public class MyObject
{
    publicstring SayHello()
    {
        return “Hello World!”;
    }
}

[TestFixture]
public class HelloWorldFixture
{
    privateMyObject myObject

    [SetUp]
    public void SetUp()
    {
        myObject = new MyObject();
    }

    [Test]
    public void SayHelloTest()
    {
        Assert.AreEqual(“Hello World!”, myObject.SayHello());
    }
}


 


Comments (7)

  1. Sum Wan says:

    You have a boring life!

  2. Darron says:

    Hey, I know you…

    Been waiting for you to get a blog.

    Keep in touch.

  3. Scott Densmore says:

    Yeah… just a test to see if things get working.

  4. Matt says:

    So, would you like for things to continue to change, or would you prefer for development to stabalize. You learn it, and then it changes.

  5. anonymous says:

    I thought that this blog entry was a nice thing to write.

  6. Rick Schaut says:

    For some of us, this:

    DECLARE_INTERFACE(IHelloWorld, IUnknown)

    Would have to fit in there somwhere as well…

  7. Scott Densmore says:

    yeah… given my ATL background I would never have gotten the entire interface map in there without scaring people… or even the MI case of implementing IDispatch, IPersistStream etc etc.