Questions tagged [principles]
The principles tag has no usage guidance.
13 questions
10
votes
4
answers
2k
views
What's the name of the principle that a method should EITHER orchestrate OR do?
I recall a principle that a professor talked about while I was in school (back in the mists of time) that went something along the lines of "A method/function should either orchestrate other ...
-3
votes
2
answers
186
views
Is there reliable evidence of the benefit of implementing all practices of an Agile methodology (e.g Scrum) vs only some of them? [closed]
For example, the Scrum Guide states (emphasis mine):
The Scrum framework, as outlined herein, is immutable**. While
implementing only parts of Scrum is possible, the result is not Scrum.
Scrum exists ...
6
votes
2
answers
622
views
How do microservices and 12-factor app principles come together?
I'm wondering how service oriented architectures can follow the 12-factor principles.
Designing an architecture as microservices means (to me) that you separate the features in services. This means ...
2
votes
1
answer
294
views
When should concrete public methods be used if implementing an interface?
Recently I have been trying to avoid down-casting object types from an interface type to their concrete types, and 'if' statements that check for an objects concrete type at run-time. This has made me ...
-5
votes
1
answer
608
views
violations of persistence ignorance
I have read about Persistence Ignorance principle,
The ebook give some examples of violations of this principle, but I don't understand. Could you please help me to give some explain?
Some examples ...
5
votes
2
answers
352
views
I keep bouncing from "god function" to "tiny SRP functions" how do I break this cycle?
This question is important for me in growing in my technical abilities. I find I swing from end-to-end, like a pendulum, in writing code that is simultaneously DRY yet readable & efficient. And I'...
0
votes
1
answer
284
views
Which principle is it to fetch only needed data?
It often makes sense to "fetch only what you need" for example if I should display only 10 rows of data then I should not fetch the entire data set because it would waste resources for a large data ...
1
vote
1
answer
285
views
Rule of Least Power - what can you deduce from it?
https://en.wikipedia.org/wiki/Rule_of_least_power
Does it mean that if you can do an animation with css you should do it with css instead of using javascript. Or if you can do an application in ...
16
votes
4
answers
7k
views
Dependency Inversion Principle vs "Program to an interface, not an implementation"
I'm trying to understand how the Dependency Inversion Principle differs from the "program to an interface, not an implementation" principle.
I understand what "Program to an interface, not an ...
1
vote
2
answers
563
views
What are the principles of open source projects? [closed]
Although its generally agreed by organisations like the OSI and the FSF what is and isn't an open source software (basically, the the terms of the source code license) what are the guiding principals ...
4
votes
4
answers
6k
views
Why is Encapsulation considered a primary principle in OOP?
I am currently trying to understand more deeply the 4 principles of OOP: Abstraction, Encapsulation, Inheritance, and Polymorphism.
After studying the four principles, I don't fully understand why ...
7
votes
2
answers
505
views
What is "Semantics visibility"?
I'm reading 97 Things Every Programmer Should Know, now I'm positioned in "Apply Functional Programming Principles", and there is a paragraph that says:
...A leading cause of defects in imperative ...
17
votes
2
answers
2k
views
Build one to throw away vs Second-system effect
On one hand there is an advice that says "Build one to throw away". Only after finishing a software system and seeing the end product we realize what went wrong in the design phase and understand how ...