GithubHelp home page GithubHelp logo

Comments (1)

flacle avatar flacle commented on August 27, 2024

Hi @tushantKrispcall ,

It's not naive at all, the terminology is not common. Regarding your question your understanding is correct! I was inspired by this article that states that:

"Code churn is when an engineer rewrites their own code in a short period of time. Think of it as writing a postcard and then tearing it up and writing it again, and then again."

Side-note: because "a short period of time" is subjective anyone is able to determine this on their own by specifying the start and end dates.

The word 'contribution' defines indeed new lines of code that got introduced and did not receive any edits within the specified period of the time. So to comeback to your example:

contribution: 11000
churn: -900

means that for a specified time period there were 11K new lines added to the code-base and 900 lines that already existed before the starting date got edited by a particular author (or any author if left blank).

I'm not sure if 'legacy' and 'efficiency' are better suited. If you look here, legacy is defined as "source code that relates to a no-longer supported or manufactured operating system or other computer technology". Efficiency in my opinion is defined as optimizing something that already exists for a particular purpose, like execution performance for example. I think it can get confusing. Then again the definition of churn within the context of business metrics is something entirely different 🙃.

You can always fork/clone the repository and change the definitions on lines 110-111 of gitcodechurn.py.

Hope this helps and my apologies for the delayed response to your question.

from truegitcodechurn.

Related Issues (18)

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.