Skip to main content

Questions tagged [principles]

5 votes
4 answers
958 views

Specific example question: I am writing multiple different software packages, in different repos, that each do different things. Many of these packages produce something that we want to visualise/plot....
armoured-moose's user avatar
10 votes
4 answers
2k views

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
232 views

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
657 views

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
3 votes
1 answer
331 views

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
  • 191
-5 votes
1 answer
625 views

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
378 views

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
361 views

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
294 views

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 ...
Claudiu Creanga's user avatar
16 votes
4 answers
7k views

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.6k
1 vote
2 answers
578 views

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
6k views

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.6k
7 votes
2 answers
522 views

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
3k views

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.5k