0

Introduction to the power of JSON

Posted in Uncategorized at April 25th, 2007 by Ben / No Comments »

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>JSON Example</title>
</head>
<body>
    <form id="form1" >
    <div>
        <p>Hello Spidey!</p>
        <script type="text/javascript">
            var formatAddress = function(address) {
                return address.line1 + "\n" + address.line2 + "\n" + address.town + "\n" + address.country + "\n" + address.postCode;
            }

            var person = {  name: "Peter Parker",
                            addresses : [
                                {line1: "8 Legs Spidey Lane",
                                 line2: null,
                                 postCode: "8888",
                                 town: "Spiderville",
                                 country: "USA",
                                 toString: function() { return formatAddress(this)}
                                }
                                 ,
                                {line1: "1 Hulksux Avenue",
                                 line2: "Flat B",
                                 postCode: "666",
                                 town: "GreenGiants",
                                 country: "USA",
                                 toString: function() { return formatAddress(this)}
                                }
                            ]
                         };

            alert(person.name);
            for(var i=0; i < person.addresses.length; i++) {
                alert(person.addresses[i].toString());
            }

        </script>

    </div>
    </form>
</body>
</html>

0

Why Microsoft Wins…

Posted in Uncategorized at April 25th, 2007 by Ben / No Comments »

Check out this article explaining some of the advantages of using a MS development options…

I have come across many projects where source control versioning has not been utilized properly for maintaining multiple versions of the project – eg. development, system test, uat, production, and customer specific versions.

I think this is mainly down to the fact that source configuration management isn’t really taught as a university topic/subject and everyone’s first exposure to a SC system is their first multi-person project, usually on the job.

It also doesn’t help that a lot of dev projects, especially MS tech projects, use VSS 6.0 – a crippling source control system which limits the options available – trying to use the sharing/branching/pinning features of VSS is a nightmare.

Thankfully other quality solutions exist to help easy the pains of antiquated source control systems like CVS and VSS.

VSTF and Subversion are both a big leap ahead of their ancestors and provide very similar functionality to each other. If you’re looking for an open source system, than Subversion is your best bet, however if you’re an MS .Net developer using VS 2005, then you really should be using VS Team Foundation Server (VSTF) and VS Team Suite (VSTS); the integrated solution is fantastic.

Anyways, rambling on and not making much sense here, that said, install VSTF, then connect to it using Team Explorer. Migrate your projects across from VSS 6.0, and learn how to setup your VSTF projects so that you can effectively maintain multiple branches of your source trees at anyone time.

This link is a fantastic tutorial of common scenarios worthy of consideration for your own projects.