Monday, November 17, 2014

Coding advice for new developers:Readable, Reliable, Correct and Efficient


Why this order?
Each attribute is fundamental to the next.
If code isn't readable, you stand no chance of making it reliable.
If code isn't reliable, it will never be correct, except by accident.
If code isn't correct, then what's the point?
If code isn't efficient, it is unlikely to be viewed as broadly useful.
http://jefflunt.com/rrce/

Thursday, November 13, 2014

How to pass paramters in Angular for http$.get and http$.post?


For http$.get
    $scope.ButtonClickEventGet = function () {
        $http.get(
            'ControllerName/Action',
            { params: { postcode: $scope.PostalCode } }
        ).success(
            function (data, status, headers, config) {
                $scope.Result = data;
            }
        );
    };

For http$.post (Don't know why it is different with get method)

    $scope.ButtonClickEventPost  = function () {
        $http.post('ControllerName/ActionName', { postcode: $scope.models.PostalCode }).success(
            function (data, status, headers, config) {
                $scope.Result = data;
            }
        );
    };

10 Developer Job Interview Tips To Land The Best Job You Can

http://simpleprogrammer.com/2013/03/24/10-developer-job-interview-tips-to-land-the-best-job-you-can/