Very nice explanation of difference between Web Service, WCF, WCF REST and Web API.
http://www.dotnet-tricks.com/Tutorial/webapi/JI2X050413-Difference-between-WCF-and-Web-API-and-WCF-REST-and-Web-Service.html
Namaste !
Anugrah Atreya
With this blog I try to share the solutions of real time problems I have faced in different software solutions. Most of these are related to C#.NET and interation of C#.NEt with C++.NET
Namaste !
Anugrah Atreya
[TestMethod][ExpectedException(typeof(ApplicationException), "Game has already Concluded, Start new Game !")]public void FirstTwoRows(){GameEngine ttt = new GameEngine();Assert.IsTrue(ttt.RecordMove('a', 3), "This is not a winning move");//Following line should throw Application ExceptionAssert.IsFalse(ttt.RecordMove('b', 6), "This is not a winning move");}
I hope this small change will save lot of time for you and make your Test driven Development even better.[TestMethod][ExpectedException(typeof(ApplicationException), "Game has already Concluded, Start new Game !")]public void FirstTwoRows(){GameEngine ttt = new GameEngine();Assert.IsTrue(ttt.RecordMove('a', 3), "This is not a winning move");//Following line should throw Application ExceptionAssert.IsFalse(ttt.RecordMove('b', 6), "This is not a winning move");
Assert.Fail("Above line should have thrown Exception of given type");
}
Big-O-Notation is used to measure and express the relative representation of the complexity of an algorithm:
Did you ever tried to understand why :
· Bubble Sort is O( n square )
· Quick Sort is O( n log n)
or you just remember it by heart and don’t know what’s hiding behind these names/values J
Below given are two best explanations I found in a quick search:
http://stackoverflow.com/questions/2307283/what-does-olog-n-mean-exactly
http://stackoverflow.com/questions/487258/plain-english-explanation-of-big-o/487278#487278
They both use example of Telephone Book and make it so simple to understand the whole thing.
If you understand the Telephone Book example then I guarantee you that you will be able to tell the performance of any algorithm in a quick moment without referring its documentation.
Namaste (Greetings)
Anugrah Atreya