October 2009 Entries
Implementing callback in WCF services. This is a way of writing asynchronous code using wcf services. But do we know why to do this explicitly when adding a service reference also gives you a facility of generating asynchronous operations? This is because the asynchronous operations which we generate while adding service reference are not fake asynchronous calls, in fact they are synchronous call only, just let code not to wait for the response/ notification and it has its timeout period and will...
What is a good code and how can we write a more object oriented code? Sometimes I heard my team members complaining about the quality of code which I wrote, so I started a search for some instructions about “What is a good code?” I went through “Agile Priniciples, Patterns and Practices in C# by Robert C. Martin”, “Refactoring by Martin Fowler” and “Head first Design Patterns from O’Reilly press” and found some useful tips. So before going through those tips, let’s start with what is bad code? The...