Is this function violating Single Resp Principle?
public function obtenerColumna($delimitador=”, $columna=0, $incluirRepetidos=false, $eliminarEspaciosAdyacentes=true, $filaDesde=0, $filaHasta=0) It obtains a column from a set of records of fixed-column length, delimited by a char. You can specify if you want to include repeated records and delete trailing and leading spaces, specify a number of row from where you want to start capturing, and an ending […]
Is this function violating Single Resp Principle?
public function obtenerColumna($delimitador=”, $columna=0, $incluirRepetidos=false, $eliminarEspaciosAdyacentes=true, $filaDesde=0, $filaHasta=0) It obtains a column from a set of records of fixed-column length, delimited by a char. You can specify if you want to include repeated records and delete trailing and leading spaces, specify a number of row from where you want to start capturing, and an ending […]
Is this function violating Single Resp Principle?
public function obtenerColumna($delimitador=”, $columna=0, $incluirRepetidos=false, $eliminarEspaciosAdyacentes=true, $filaDesde=0, $filaHasta=0) It obtains a column from a set of records of fixed-column length, delimited by a char. You can specify if you want to include repeated records and delete trailing and leading spaces, specify a number of row from where you want to start capturing, and an ending […]
How do you apply Single Responsibility principle to a repository
I am trying to apply “SOLID” whenever I can and try to use common sense and avoid a pattern when I see that a pattern is creating more problems than it’s trying to solve. I don’t want to apply a pattern and make life difficult for somebody else using my code just for the sake “I write patterns” if you see what I mean.
How to organize all classes derived from SRP?
As the SRP says, the way to achieve this principle is divide all into smaller. And what you have just made small, make more smaller. As consequence we got more files and my question is about it, how organize all this new classes that are generated to keep our dirs clean, as the code.
How to organize all classes derived from SRP?
As the SRP says, the way to achieve this principle is divide all into smaller. And what you have just made small, make more smaller. As consequence we got more files and my question is about it, how organize all this new classes that are generated to keep our dirs clean, as the code.
Service Oriented Architecture – Component Responsibility
Working on an ecommerce project whereby a PHP application (back-end & non-customer facing) is currently responsible for processing an order from checkout stage through to generating profit/loss reports, processing the order and also performing various algorithms on behalf of a data science team.
Non-anemic model and SRP
I’m implementing a feature in legacy system right now.
Instead of putting all my logic in some dummy application services and having anemic models, I thought I will try to do some OOP this time.
Non-anemic model and SRP
I’m implementing a feature in legacy system right now.
Instead of putting all my logic in some dummy application services and having anemic models, I thought I will try to do some OOP this time.
Injecting data processing logic into class
I want find more elegant and appreciate way to inject processors into CommandProcessorDispatcher
class. Or it can be another one solution (the goal is separate each command processing logic to independent class). Maybe some design pattern can be useful here.