home.social

#code-metrics — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #code-metrics, aggregated by home.social.

fetched live
  1. New blog post: Metrics

    Over the years I’ve used a number of different ways of measuring software. The following is a roughly chronological account. [...]

    underlap.org/metrics/

  2. New blog post: Metrics

    Over the years I’ve used a number of different ways of measuring software. The following is a roughly chronological account. [...]

    underlap.org/metrics/

    #SoftwareDevelopment #CodeMetrics

  3. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  4. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  5. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09

  6. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09