GithubHelp home page GithubHelp logo

Three doc questions about draper HOT 3 CLOSED

drapergem avatar drapergem commented on July 20, 2024
Three doc questions

from draper.

Comments (3)

jcasimir avatar jcasimir commented on July 20, 2024

Jay,

Thanks for asking questions!

  1. I'm hesitant to say it's ready. I'm very thankful to everyone that's trying it out and helping me polish things up. Before I declare it truly production ready I'd like to do more performance analysis, freeze a 1.0 feature set, and get have some of the code scrutinized.
  2. I'm draw a line between presenter and decorator, mostly for historical reasons. To me, a decorator is part of the view layer. Most people use presenter the same way, but I use presenter to refer to "plain old ruby objects" which are wrappers around multiple domain models at the data layer. So, going really "all-in," I might have multiple AR models which are wrapped in a decorator proxy at the model layer, then at the view layer wrap it with a decorator. Sounds awesome and crazy.
  3. That's interesting. I don't see why not. The only thing I can think of that would possibly cause an issue is the self.model_name in base.rb where we call ActiveModel::Name.new(model_class) -- but I did a quick test on Rails 3 / 1.9.2 and it was fine.

from draper.

jaylevitt avatar jaylevitt commented on July 20, 2024

On #2: That makes sense. I'd suggest adding something to the doc, explaining that - and, if you want to get into it a bit more, you can also Google some discussions about the difference between Presenter and Conductor (opinions seem to vary, and I have no idea who's right). It'd be good to give draper the Google juice for "rails presenter"; I've been Googling that once a week forever, every time I run into some ugly view logic.

from draper.

jcasimir avatar jcasimir commented on July 20, 2024

I'm going to think about the decorator/presenter thing more but close the issue for now. Please comment if you have any remaining questions.

from draper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.