These are chat archives for dry-rb/chat
to_hthe model, and manipulate the data, then initialize it into new model, but the code turned to be repetitive and ugly, or maybe its just me who sense there's something better should be used there, I think you got to this point too, so what are you do in favour to solve this?
dry-system: Is there a reason why the
MyApp::Containershould be defined under
system/my_app/container.rband not via
lib/my_app/container.rb? Example: https://github.com/icelab/berg/blob/master/system/berg/container.rb
new_value = MyStruct.new(old_value.to_h.merge(new_attribute: 42)), how can I change this such that dry-rb doesn't revalidate all attributes, but only the changed ones?
new, right? Not really a new API