Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Oskar Szrajer
@gotar
or hack root for rom::repo, to have base class to limit code repetition, like: https://github.com/gotar/dry-web-skeleton/blob/master/lib/persistence/repo/base.rb#L15
probably other places too, like class around dry-v schema to make it AutoInjectable
if you guys have time, any comments welcome, trying to build as simple skeleton as possibe. Your @timriley is great but to complex to just teach/explain/show different dry-web pieces
Piotr Solnica
@solnic
I'd call dry-web stuff as a pretty advanced thingie (at least for now)
so it's gonna be tough to explain to people who mostly know rails
Oskar Szrajer
@gotar
yeap i will try 3-4h workshops for good devs but rails ways devs
we will see
I already told them something about roda and rom, but they never wrote any app outside rails
then I plan to write some basic roda + rom app, and then go deeper and deeper inside container, auto-inject ...
we will see
Piotr Solnica
@solnic
it's gonna be interesting for sure :D
hanami will be a much much better "entry point" for people, I think
Oskar Szrajer
@gotar
the goal is not to teach dry-w, but maybe someone will pick roda or rom or dry-container for next project
Piotr Solnica
@solnic
yeah defo lots of interesting stuff to learn for people
Oskar Szrajer
@gotar
yeap but it;s special event for *RUG, on TRUGs for last 1-2y I try to explain rom and roda, and they ask for a workshops to sit together and write app in those technologies to learn
hard for them to force themself to try at home
then will will try this way, evangelistaion all the time ;]
ok time to sleep, bye and thx for great support as always :)
Piotr Solnica
@solnic
sure that's a really awesome initiative, thanks for doing that :)
:wave:
Tim Riley
@timriley
@gotar this sounds great, nice work!
What you are doing with that AutoInject hack is actually a lot nicer with dry-component's injector. But I'll see if we can improve the base AutoInject too
With dry-component you can just switch strategies ad-hoc
e.g. include MyComponent::Inject.args["foo"]
Piotr Solnica
@solnic
:heart_eyes:
Tim Riley
@timriley
MyComponent::Inject.args.hash.kwargs.args[“foo”] if you really want
;)
I’ll add an issue to remind me to do that to dry-auto_inject directly
And I’ll release dry-component today :)
@gotar I think I have a fix for your repo issue
And changed class Posts to be class Posts < Base[:posts]
and change class Base to be class Base < ROM::Repository::Root
Piotr Solnica
@solnic
@timriley did you figure out that complex stuff with lazy-booting components on demand?
Tim Riley
@timriley
@solnic Indeed I did.
Piotr Solnica
@solnic
:scream_cat:
Oskar Szrajer
@gotar
Hmm I will try tmr for sure. Thx for advice.
Tim Riley
@timriley
Well, I think I did, @solnic! haha
Piotr Solnica
@solnic
can't wait to try this stuff out
but that has to wait until rom is out with dry-v/t/l upgrades
Tim Riley
@timriley
:)
Piotr Solnica
@solnic
:zzz: time :wave:
Tim Riley
@timriley
:wave:
Andy Holland
@AMHOL
:D
Chase Gilliam
@Ch4s3
:clap:
John Backus
@backus
@solnic if you agree with dry-rb/dry-validation#179 I would be interested in implementing it
Would be easier to implement this if attr hadn't been nixed entirely
Oskar Szrajer
@gotar
@timriley I change code to reflect your proposals, all works - thx