Code Monkey home page Code Monkey logo

Comments (2)

petdance avatar petdance commented on May 22, 2024

I can see wanting to easily carry around your ackrc with you in one package.

Two big problems jump out at me:

  • What does the new ack-with-baked-in-ackrc get called? Is it still called ack? How do I know? What kind of surprise am I in for if I'm on a machine that has this rebaked ack on it? Then again, we have that kind of problem if you're on a machine with a weird /etc/ackrc, too.
  • At that point ack is self-modifying, and that frightens me. Does baked-in-ack allow rebaking itself?

from ack2.

hoelzro avatar hoelzro commented on May 22, 2024

I think that I would have it write the new ack on standard out. This way, you name it what you want, and if you replace "dough" ack with "baked" ack, you probably know what you're doing.

You bring up an interesting point about baking an already-baked ack. For the being, I would have the bake code check if $App::Ack::is_baked is true, like so:

  if($App::Ack::is_baked) {
    die "Don't!  You'll burn your ack!\n";
  }

I'm ok with "baking" being only a build option, ex. make baked. I see a little benefit in allowing ack --bake, but not enough to justify its inclusion if the community is against it. No matter what, though, ack --debug would have to show that it's consulting an internal rules list rather than /etc/ackrc and friends.

That actually brings up another interesting question: do the baked rules only supplant the global ackrc, or the global + user, or what? I'll have to think about that a bit.

from ack2.

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.