vinayvraman
Posts
-
Next generation spinning top -
Comedy accident -
Bipedal Cycling Robot Can Balance, Steer and Correct ItselfBipedal Cycling Robot Can Balance, Steer and Correct Itself[^] Hope, in future, we do not end up sending our robots to cycling in Tour-de-france!
-
Why VS2010 sucks today...Also check class's ctor and onload functions... sometimes if you haven't checked for "DesignMode" property before executing some tasks like fetching values from db in above 2 methods, then they may fail and result in VS crashing without any proper error message, esp. so when you try to open the designer. :sigh:
-
Why VS2010 sucks today...Have ya installed the VS 2010 SP1? The VS 2010 used to crash a lot in my system before installing the above update!
-
Circular dependency between classesAh!! Multiple parsing is the secret!! :-D Thank you very much Clive for answering my question and thank you Harold for sharing that wonderful link. :thumbsup:
-
Circular dependency between classesConsider the following example..
public class Student { public string Name { get; set; } public IList Courses { get; set; } } public class Course { public string Name { get; set; } public IList Students { get; set; } }
In this example a circular dependency exists between Student class and Course class. The scenario arises when we are dealing with entity framework - wherein db tables are created as classes for a Student database management system. In case of C++ we use the concept of forward declaration for telling a class 'A' that another class called 'B' exists even before defining the class 'B'. Can anybody explain how C# compiler solves this problem of circular dependency between classes? PS: Please avoid telling me that the classes sould be redesigned to avoid circular dependency. The question is not related to designing since the below mentioned classes are very much from day-to-day programming scenarios.
If asking a question is bad; then not knowing the answer is worse!
-
Why oh why databaseKudos to the original developer/db designer.. he has obfuscated the db columns so that nobody understands it without chanting some mantras..:-D
-
Women participants in the lounge?I started the thread to encourage women participation & not to know their number @ CP... sometimes, I feel a taunt brings more people together than a praise and hence was the question asked!! :) :)
-
Women participants in the lounge?In school I was good at précis writing... but you are good at doing the exact reverse. ;P
-
Traffic in GenoaOne needs good driving skills to manoeuver a car in that traffic!!
-
Women participants in the lounge?Are there any active women participants in the Lounge? Or is it only we men who have a funny bone? ;P
-
Asus quad core tablet announcedYour words reminds me of a joke... Guy 1: What is the similarity between the wife and a mobile phone? Guy 2: Once you have got one of them, you always feel that you could have waited for a better and the latest model. :laugh:
-
Asus quad core tablet announced -
Asus quad core tablet announced -
Designing: Multiple interfaces implementation on classesThank you very much Ravi Bhavnani. The information you have provided here was useful to me. :)
-
Designing: Multiple interfaces implementation on classes@BobJanova Thank you very much for replying to my question. :thumbsup: The main problem I was facing, as you rightly pointed out, was in distinguishing the meaning between responsibility and behaviour and hence couldn't tell if I can implement interfaces IA to IZ on a class without affecting its responsibilites. Through your terms "responsibility provider" and "behaviour decorator" I now understand interface implementation clearly. Thank you very much for the help. :)
-
Designing: Multiple interfaces implementation on classesIts been discussed everywhere that a class cannot inherit from multiple classes but can implement multiple interfaces. My question is how many interfaces can be implemented on a single class? Shouldn't a class have a single responsibility? In case of multiple interface implementation, doesn't it allow classes to have multiple responsibilities? :~ What exactly is the idea behind classes going for multiple interfaces and implementing them all on a class? What number of interfaces is good or is bad? (Though "number" may not have a meaning here, I mean to ask what goes into deciding that a class should/shouldn't implement an interface) :confused: Any help in this area from anybody shall be of great help. :-D
-
Designing: Multiple interfaces implementation on classesYou have a point regarding posting the question here... Have reposted the same in a different forum...Thank ya.
-
Designing: Multiple interfaces implementation on classesIts been discussed everywhere that a class cannot inherit from multiple classes but can implement multiple interfaces. My question is how many interfaces can be implemented on a single class? Shouldn't a class have a single responsibility? In case of multiple interface implementation, doesn't it allow classes to have multiple responsibilities?:~ What exactly is the idea behind classes going for multiple interfaces and implementing them all on a class? What number of interfaces is good or is bad? (Though "number" may not have a meaning here, I mean to ask what goes into deciding that a class should/shouldn't implement an interface):confused: Any help in this area from anybody shall be of great help. :)