Giter Club home page Giter Club logo

Comments (5)

crystalneth avatar crystalneth commented on June 2, 2024

Ok, I was wrong about (3) - that was the me using the gem wrong. 1+2 I stand by.

from dropbox.

RISCfuture avatar RISCfuture commented on June 2, 2024
  1. fixed via your pull request.
  2. A lot of the modifications are pragmatic: "def foo() ... end unless Bar.respond_to?(:foo)". I'll make them all pragmatic.

from dropbox.

RISCfuture avatar RISCfuture commented on June 2, 2024

aaand done.

from dropbox.

crystalneth avatar crystalneth commented on June 2, 2024

Thanks. Sorry for the harsh language. Modifying core objects is a pet pieve of mine.

I don't believe there is any "pragmatic" modification of core objects for a gem like this, that one would not expect to do this type of thing.

If I use this on some obscure admin page of my site, so it is in my Gemfile, and another extension decides it's "pragmatic" to use the same method name for subtly different behavior, it will break something and make it really difficult to track.

This is one of the worst common practices in Ruby and has been denounced by many of the core Rails folks. Rails does this, but they're modifications are well documented and Rails is the core of any application importing that code. I'd prefer they didn't do this kind of stuff either, but nothing is perfect.

Anyway, I'm glad you made this somewhat less bad.

from dropbox.

RISCfuture avatar RISCfuture commented on June 2, 2024

I'm open to patches if you'd to help teach me another elegant way of accomplishing this :)

from dropbox.

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.