design-principles Questions
17
Solved
Playing around with Swift, coming from a Java background, why would you want to choose a Struct instead of a Class? Seems like they are the same thing, with a Struct offering less functionality. Wh...
Neighboring asked 15/6, 2014 at 18:33
4
Solved
I am trying to understand the Single Responsibility principle but I have tough time in grasping the concept. I am reading the book "Design Patterns and Best Practices in Java by Lucian-Paul Torje; ...
Lynching asked 9/9, 2018 at 18:12
4
Solved
Obviously there are syntactical differences between YAGNI and KISS but I can't see any semantic differences between them. Are they really in essence just the same thing?
Asclepius asked 23/9, 2014 at 16:3
5
Is this Simple Factory violating the Open Closed Principle?
The SimpleProductFactory needs to change every time a new concrete product needs to be created but it adheres to the single responsibili...
Euphrates asked 31/12, 2017 at 15:40
35
Solved
I have heard that the Liskov Substitution Principle (LSP) is a fundamental principle of object oriented design. What is it and what are some examples of its use?
Boys asked 11/9, 2008 at 15:17
5
I am reading Head First Design pattern and just stuck on the Hollywood Principle. Earlier I read about Inversion of Control and what I understood was, it's a design principle (some also call it pat...
Archy asked 4/5, 2017 at 14:50
6
My understanding of the Liskov substitution principle is that some property of the base class that is true or some implemented behaviour of the base class, should be true for the derived class as w...
Bordelaise asked 14/11, 2009 at 18:30
14
Solved
The Open/Closed Principle states that software entities (classes, modules, etc.) should be open for extension, but closed for modification. What does this mean, and why is it an important principle...
Quiroz asked 12/9, 2008 at 13:48
1
I have a question regarding the "Use Case Output Port" in Uncle Bob´s Clean Architecture.
In the image, Uncle Bob describes the port as an interface. I am wondering if it has to be that way or if ...
Atonal asked 20/5, 2016 at 11:4
4
Solved
I'm new to Ruby on Rails, and I went through these articles.
Design Patterns in Ruby: Observer, Singleton
Design Patterns in Ruby
But I couldn't understand the actual difference between design ...
Horrific asked 9/7, 2015 at 12:12
3
I have problem in understanding Single Responsibility Principle. Should SRP be applied at class level or at method level?
Lets say I have a Student class, I need to create student, update stu...
Lozenge asked 28/11, 2015 at 7:45
1
Solved
I m learning about java optional wrapper, to do so I m reading the following tutorial
however I have a simple question that is not answered in the article: in item 25: Avoid Using Identity-Sensiti...
Barker asked 10/7, 2019 at 11:31
7
Solved
The Interface Segregation Principle (ISP) says that many client specific interfaces are better than one general purpose interface. Why is this important?
Reproachless asked 12/9, 2008 at 13:40
2
Solved
In a recent discussion about distributed processing and streaming I came across the concept of 'code moving to data'. Can someone please help explaining the same. Reference for this phrase is MapRe...
Vestal asked 15/11, 2016 at 4:21
4
Solved
I know SOLID principles were written for object oriented languages.
I found in the book: "Test driven development for embedded C" by Robert Martin, the following sentence in the last chapter of t...
Duckworth asked 15/7, 2013 at 6:51
5
Solved
At work, we have optimization engines, and one of the inputs used by these engines are business rules, which we create and edit with a proprietary rule editor.
These rules are of our own proprietar...
Eolith asked 13/12, 2009 at 12:51
4
Solved
Is it good to use a const reference field as a readonly getter in C++ classes?
I mean, does this code meet good practices?
class check{
private:
int _x;
public:
const int& x = _x;
void set...
Cypress asked 18/9, 2017 at 8:58
1
Solved
I was going through the following link to understand what high-level and low-level modules mean in the context of Dependency Inversion Principle.
As per the explanation given there, is the followi...
Dromedary asked 25/4, 2017 at 6:46
3
Solved
Can someone give me an example of the Single Responsibility Principle? I am trying to understand what it means, in practice, for a class to have a single responsibility as I fear I probably b...
Voyeurism asked 16/5, 2012 at 13:51
1
Solved
I'm working on the project which provides REST API.
Recently we decided to integrate it with Swagger to create detailed documentation for each endpoint.
Almost all RESTs were successfully integrate...
Wassyngton asked 12/12, 2015 at 23:19
2
Solved
INTRODUCTION
I work on my master thesis about inheritance problems and work out some
indicators which show that an inheritance problem exist.
Like the following example:
EXAMPLE
public stat...
Olvan asked 3/6, 2015 at 9:52
7
I'm new to the concept of object oriented programming (in java) and I often encounter the following design problem:
I often create classes with instance variables which are not known at the moment...
Carlist asked 20/4, 2015 at 10:16
3
Solved
Suppose there are two .net projects not under same solution. ProjectA is under solution1 and ProjectB is under solution2. ProjectA has a reference of ProjectB and ProjectB has reference of ProjectA...
Successor asked 23/3, 2015 at 16:17
1
Solved
The RAII (Resource Acquisition Is Initialization) is one of the suggested ways of constructing objects. How does it relate to the unit testing principles that are saying: no complex job done in the...
Icarian asked 2/5, 2014 at 19:53
4
Solved
Im pretty new to REST but as far as i have gathered i understand that the following URL's conform to the REST principles. Where the resources are laid out as follows:
/user/<username>/libra...
Kight asked 31/5, 2011 at 16:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.