timriley on rich-component-dirs-config
Add extra attributes to compone… Add unit tests for Component.lo… (compare)
timriley on rich-component-dirs-config
Add unit tests for ComponentDir (compare)
timriley on rich-component-dirs-config
Tidy AutoRegistrar Move regist… (compare)
timriley on rich-component-dirs-config
Tidy AutoRegistrar Move regist… (compare)
timriley on rich-component-dirs-config
Add spec (and adjust approach) … (compare)
timriley on rich-component-dirs-config
Initialize components directly … Remove unneeded requiring of co… (compare)
timriley on rich-component-dirs-config
Initialize components directly … (compare)
timriley on rich-component-dirs-config
Remove stale comment Scan file for magic comment opt… Do not load components with aut… (compare)
timriley on rich-component-dirs-config
Use dry-configurable master (compare)
timriley on cherry-pick-concurrent-requires
system
and lib
dirs, use dry-system
to manage components, use roda as a router and so on. But just without dry-w as a dependency. I doesn't mean I have something against dry-w, just share my experience.
config.default_context = Container["view.context"]
context
to default_context
is something I already tried after sniffing around a bit in debug mode and just trying things out, but it leads to another error:NoMethodError: undefined method `for_rendering' for #<DwrTest::Main::View::Context:0x00007fd53fc59f38>
/Users/eliavlavi/.rvm/gems/ruby-2.5.3/gems/dry-view-0.5.4/lib/dry/view/rendering.rb:23:in `initialize'
/Users/eliavlavi/.rvm/gems/ruby-2.5.3/gems/dry-view-0.5.4/lib/dry/view/rendering.rb:7:in `new'
/Users/eliavlavi/.rvm/gems/ruby-2.5.3/gems/dry-view-0.5.4/lib/dry/view/rendering.rb:7:in `prepare'
...
127.0.0.1 - - [18/Jan/2019:10:47:25 +0200] "GET / HTTP/1.1" 500 151990 0.0265
"< 0.5"
is my addition, without it it didn't work
FooAction.new.call(args)
- even if I can override the initialize
method, as they describe, this is not how I want to do it, I want to have a single instance of those classes and just pass data through them.Minimise the number of places I have to look to understand what's going on in an individual piece of code.
...without burying me in a five-hundred-line piece of code with a score or three private methods, like too many Rails controllers I've had to do chainsaw surgery on over the years
FooService.new.do_stuff(params)
?