Feature flags are commonly used to enable gradual rollout or experiment with new features. In a few cases, even after the purpose of the flag is accomplished, the code pertaining to the feature flag is not removed. We refer to such flags as stale flags. The presence of code pertaining to stale flags can have the following drawbacks. Unnecessary code clutter increases the overall complexity w.r.t maintenance resulting in reduced developer productivity The flags can interfere with other experimental flags (e.g., due to nesting under a flag that is always false) Presence of unused code in the source as well as the binary. Stale flags can also cause bugs. Piranha is a tool to automatically refactor code related to stale flags. At a higher level, the input to the tool is the name of the flag and the expected behavior, after specifying a list of APIs related to flags in a properties file.

Features

  • Unnecessary code clutter increases the overall complexity w.r.t maintenance resulting in reduced developer productivity
  • The flags can interfere with other experimental flags (e.g., due to nesting under a flag that is always false)
  • Presence of unused code in the source as well as the binary
  • Stale flags can also cause bugs
  • Piranha is licensed under the Apache 2.0 license
  • Piranha is a tool to automatically refactor code related to stale flags

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Piranha

Piranha Web Site

Other Useful Business Software
Ship AI Apps Faster with Vertex AI Icon
Ship AI Apps Faster with Vertex AI

Go from idea to deployed AI app without managing infrastructure. Vertex AI offers one platform for the entire AI development lifecycle.

Ship AI apps and features faster with Vertex AI—your end-to-end AI platform. Access Gemini 3 and 200+ foundation models, fine-tune for your needs, and deploy with enterprise-grade MLOps. Build chatbots, agents, or custom models. New customers get $300 in free credit.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Piranha!

Additional Project Details

Programming Language

Java

Related Categories

Java Libraries

Registered

2023-08-10