Gibheer has quit [Read error: Connection reset by peer]
Gibheer_ is now known as Gibheer
V8Energy has joined #rom-rb
V8Energy has quit [Ping timeout: 260 seconds]
knowtheory has joined #rom-rb
kapowaz has quit [Ping timeout: 276 seconds]
franckverrot has quit [Ping timeout: 276 seconds]
kapowaz has joined #rom-rb
franckverrot has joined #rom-rb
jfredett has joined #rom-rb
jfredett has quit [Client Quit]
snusnu1 has joined #rom-rb
postmodern has quit [Quit: Leaving]
cored has joined #rom-rb
cored has joined #rom-rb
snusnu1 has quit [Quit: Leaving.]
snusnu has joined #rom-rb
breakingthings has joined #rom-rb
bf4 has joined #rom-rb
jfredett has joined #rom-rb
V8Energy has joined #rom-rb
mbj has joined #rom-rb
jfredett has quit [Read error: Connection reset by peer]
jfredett has joined #rom-rb
mbj has quit [Quit: leaving]
mbj has joined #rom-rb
<snusnu>
yo mbj
<mbj>
snusnu: jo
<mbj>
on a train, expect me dropping from channel
<snusnu>
how does anima behave when a subclass needs more than the base class attributes?
<mbj>
snusnu: class Base; include Anima.new(:foo); end class Subclass < Base; include anima.extend(:bar); end
<snusnu>
mbj: aha! thx!
<mbj>
snusnu: undocumented :(
<snusnu>
heh
<snusnu>
maybe i'll fix that at some point soon
<snusnu>
mbj: and how would i do a ducktrap that first transforms a hash, but then does more transformation and instantiate a concord class?
<mbj>
snusnu: No buildin so far
<mbj>
snusnu: use custom
<snusnu>
mbj: so i'd have … yeah
<mbj>
snusnu: Feel free to come up with ideas!
<mbj>
snusnu: BTW concord from ducktrap? What is the use case :D
<mbj>
?
<snusnu>
i actually won't need it probably, but i started out with concord classes representing different states during derserialize/sanitize/authenticate
<snusnu>
you know, i don't really see a point in anima as long as i have only 1 or 2 objects i want to inject into a class
mbj_ has joined #rom-rb
mbj has quit [Ping timeout: 264 seconds]
<mbj_>
snusnu: A good point is the ducktrap integratin.
mbj_ is now known as mbj
<mbj>
snusnu: The thing is, I use concord *only* for cases that are NOT modelling my domain in an "outer" interface.
<mbj>
snusnu: Okay for processors/internals etc.
<mbj>
snusnu: But for "public" interface such a s DTOs it makes lots of sense to have named params.
<snusnu>
mbj: yeah
<mbj>
Also anima is easier to refactor than concord.
<snusnu>
mbj: in my case, i requestify the incoming rack request, then i deserialize the cookie out of the header, then i sanitize using a SESSION ducktrap, and that ducktrap converts to Input::State::Unauthenticated
<snusnu>
for that last state, concord would be enough, even if i were to add a timestamp to the session, i'd still only have 2 objects to inject
<snusnu>
and i doubt that my session cookie will ever contain more than those 2 properties