Questions tagged [principles]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
4 answers

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 ...
Garandy's user avatar
  • 211
-3 votes
2 answers

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 ...
Francesco Bianco's user avatar
6 votes
2 answers

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 ...
Irindul's user avatar
  • 73
2 votes
1 answer

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 ...
Mayron's user avatar
  • 181
-5 votes
1 answer

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 ...
Chau Than's user avatar
5 votes
2 answers

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'...
james's user avatar
  • 161
0 votes
1 answer

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 ...
Niklas Rosencrantz's user avatar
1 vote
1 answer

Rule of Least Power - what can you deduce from it? 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 ...
Claudiu Creanga's user avatar
16 votes
4 answers

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 ...
Aviv Cohn's user avatar
  • 21.4k
1 vote
2 answers

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 ...
Ricardo Gladwell's user avatar
4 votes
4 answers

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 ...
Aviv Cohn's user avatar
  • 21.4k
7 votes
2 answers

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 ...
InfZero's user avatar
  • 171
16 votes
2 answers

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 ...
Random42's user avatar
  • 10.4k