design-principles Questions
2
The difference between these two principles is not clear for me. They just look like the same thing.
What is the difference if any?
Lammastide asked 3/4, 2014 at 9:0
2
Solved
I've been thinking recently about the Liskov Substitution Principle and how it relates to my current task. I have a main form which contains a menu; into this main form I will dock a specific form ...
Videlicet asked 13/1, 2014 at 13:48
1
Solved
I am looking to make some changes to an existing WCF service. I wanted to know if it would be best to make super methods such as a Save() that would use the values received to decide what action to...
Morra asked 4/10, 2013 at 3:15
1
Solved
In this Node app I'm working on, it's possible for users to book appointments.
When an appointment is booked, the users will later get a reminder by mail X hours before the actual appointment.
I'...
Dodger asked 18/9, 2013 at 9:52
2
Solved
Multitasking seems to be a disaster at times when big projects crashes due to shared mutation of I would say shared resources are accessed by multiple threads. It becomes very difficult to de...
Grau asked 23/6, 2013 at 17:23
6
This was the question asked in an interview.
There is a Label with a property Text
In one page a label is simple Label, in other pages it may handle any one or combination of the below actions
Cli...
Titania asked 19/4, 2013 at 7:40
3
Solved
I've found a similar question
How to compare two distinctly different objects with similar properties
that may implicitly and/or in part reply to my question.
Suppose I want compare (without a l...
Reiterant asked 7/3, 2013 at 16:2
3
Solved
There are a few questions similar to this which deals with right input and output types like this. My question is what good practices, method naming, choosing parameter type, or similar can s...
Illboding asked 25/11, 2012 at 23:45
1
Solved
In relational database design, there are normal forms to guide the design process. Are there similar prinicples that apply to the design of graph databases like neo4j?
In particular, I'm puzzled ...
Hyades asked 26/6, 2011 at 7:38
6
Solved
Here is a very simple question, which I'm still very uneasy about:
Why is it widely accepted now for a class to return a reference to its private member through an accessor method? Doesn't this to...
Modica asked 18/7, 2012 at 14:59
1
Solved
I have a parent-child view model object structure set up and need to update an observable on the parent from the child. I've basically come up with two patterns for doing so:
1] Pass a reference o...
Merited asked 4/4, 2012 at 4:33
3
Solved
In Python, you can assign an arbitrary attribute from outside the defining class:
class Profile(models.Model):
user = models.OneToOneField(User)
name = models.CharField(max_length=140)
p = Pro...
Pouter asked 28/10, 2011 at 16:34
6
Solved
In an OO component, when you have only one implementation available for an class and that class is not 'published' to other components, is it still advisable to have an interface and work with the ...
Dufour asked 8/9, 2009 at 16:24
5
Solved
I have a problem understanding an UML below:
Specifically, what is the relationship between PersistentSet and ThirdPartyPersistentSet?
What is the relationship between PersistentObject and Third...
Rib asked 1/6, 2011 at 22:6
7
Solved
I know this is probably subjective but I read this optimization page from Google for PHP and they suggest use the variable property directly without the need of getters and setters. Understandably ...
Forgetmenot asked 2/6, 2011 at 13:47
2
Could anyone please point out the meaning of the graph below:
What is the relationship between PolicyLayer and PolicyServiceInterface
What is the relationship between PolicyServiceInterface and...
Dewy asked 2/6, 2011 at 13:46
8
I have been coding for a few years and still feel that my knowledge is not broad enough to become a professional. I have studied some books related to design patterns, but I know there are many oth...
Horrify asked 1/6, 2010 at 7:5
8
Solved
In many projects I work on, whenever I have to return a read only collection, I use the IEnumerable<T> interface and make it type specific like so:
Public ReadOnly Property GetValues()...
Buchan asked 1/3, 2011 at 15:30
7
Solved
As you know the 'program to an interface' design principle broadly prefers supertypes instead of concrete types or implementations.
Is it consistent with the principle to use instanceof in a Java...
Landwaiter asked 11/2, 2011 at 21:20
2
Solved
I know that it's possible in principle to turn even procedural languages such as C or MATLAB into object-oriented ones. This question has been fairly well discussed here and here.
What I found mis...
Dilution asked 21/1, 2011 at 13:49
6
Solved
I came across the following piece of code during a code review.
My intuition is telling me that this isn't following proper OOP.
I'm thinking that instead the LoadObject method should return a ne...
Venue asked 11/8, 2010 at 20:41
3
Solved
Today I came to a fundamental paradox of the object programming style, concrete types or interfaces.
Whats the better election for a method's return type: a concrete type or an interface?
In most...
Shogunate asked 21/4, 2010 at 0:2
4
Solved
Develop a elegant Pub-Sub architecture in web-oriented-apps is a real challenge.
Although there are some very interesting solutions using long-polling-connections (e.g. COMET) and repetitive-timeou...
Meredithmeredithe asked 22/2, 2010 at 23:28
4
Solved
loosely speaking, Liskov Substitution Principle states that a derived class can be substitute in place of the base class without affecting the user.
In the case when the base class is an abstract c...
Invent asked 12/2, 2010 at 19:7
3
We are working on an image processing project using C# and EmguCV. Our team is composed of 3 people. To make faster progress, the 3 of us work on different sub-problems or experiment with different...
Cosenza asked 14/11, 2009 at 16:48
© 2022 - 2024 — McMap. All rights reserved.