Pauloparakleto / gerenciamento-dos-estudos

Aqui eu gerencio via karban os meus estudos em programação
0 stars 1 forks source link

How to desacoplate codes already acoplated? #93

Open Pauloparakleto opened 1 year ago

Pauloparakleto commented 1 year ago

This is the "S" of the SOLID principle. You have seen presenters hash with lot of dependencies like:

{
 foo: bar
} 

private

def bar
 { nested_bar: nested_bar}
end

def nested_bar
 'nested_bar_value'
end

How presenters can be organized in order to avoid nested hashes methods dependencies?