Is the target of 3 dependencies per class always achievable?
I’m reading the Clean Code book and a chapter says that if a class has more than 3 dependencies is a code smell of that class isn’t doing one thing. Or what is the same, it isn’t following SRP. I’m thinking in certain scenarios in which I am unable to reset the number of dependencies to stick to that number.
Is the target of 3 dependencies per class always achievable?
I’m reading the Clean Code book and a chapter says that if a class has more than 3 dependencies is a code smell of that class isn’t doing one thing. Or what is the same, it isn’t following SRP. I’m thinking in certain scenarios in which I am unable to reset the number of dependencies to stick to that number.
Is the target of 3 dependencies per class always achievable?
I’m reading the Clean Code book and a chapter says that if a class has more than 3 dependencies is a code smell of that class isn’t doing one thing. Or what is the same, it isn’t following SRP. I’m thinking in certain scenarios in which I am unable to reset the number of dependencies to stick to that number.
Database Normalization vs dependencies
I am developing 3-4 interdependent programs. Call them foo bar baz and auth. I want them to be independent of each other. Imagine if I were to license out each program to other companies. Some companies may want foo and bar, others may just want baz, etc. It also seems like good practice to keep auth independent as well.
Package Interfaces – Coupling & Re-Usability
Intent Packages should be designed to perform a single function well. Ideally this means that they should be highly modular and different packages should be able to be ‘plugged-in’ simply by ensuring that they share a common interface. However, I’m unsure how to do this without creating some kind of dependency between the packages or […]
Terminology to indicate that a software component does not seem to belong inside a library
What is the standard or commonly used terminology used in software engineering circles for this scenario that uses “widgets” and “FFT” as a fictitious concrete example:
How small is too small for a library or package?
Background I came across this question about whether few big libraries, or many small libraries is better. I tend to agree with the accepted answer, that many small libraries is better. However, since there is some overhead with creating and referencing a library, I came to wonder, how small is too small? Questions Are there […]
In a component diagram, can multiple required interfaces (sockets) connect to one provided interface (ball)?
I’m designing a component diagram for a coffee machine. There are situations where multiple required interfaces of multiple components connect to a single provided interface of a component. Is it correct to do that?
How would I go about writing my own implementation of Win32 functions?
So I am currently coding a C program for Windows and come across a little bit of a problem. I’ve been compiling using the mingw-w64 toolchain. In my program, I am attempting to remove as many dependencies as I can. I’ve been using Dependency Walker to see which DLLs my program depends on. My question is how can I implement a function/functions from one of the DLLs my program depends on so that I can remove the dependency? I realize static linking is a thing but that would raise application size a lot for libraries that I only want to use one function from.
Is it a good idea to manage a group of repo microservices as submodules of a master repo?
At the moment of writing I have let’s say 4 micro services interoperating in order to build a bigger system.
Every microservice has its own repo.