social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

480
active users

#codemetrics

0 posts0 participants0 posts today
martincho_<p><a href="https://mastodon.social/tags/humor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>humor</span></a> <a href="https://mastodon.social/tags/dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dev</span></a> <a href="https://mastodon.social/tags/CodeMetrics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CodeMetrics</span></a></p>
danzin<p>So I've created a <a href="https://mastodon.social/tags/wily" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wily</span></a> report for one thousand Black (the Python formatter) commits.</p><p>You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.</p><p>There's a trend of increasing LOC and complexity.</p><p>This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.</p><p><span class="h-card" translate="no"><a href="https://mastodon.social/@hugovk" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>hugovk</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@ambv" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>ambv</span></a></span> </p><p><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Black" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Black</span></a> <a href="https://mastodon.social/tags/formatter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>formatter</span></a> <a href="https://mastodon.social/tags/CodeStyle" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CodeStyle</span></a> <a href="https://mastodon.social/tags/Cyclomatic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Cyclomatic</span></a> <a href="https://mastodon.social/tags/Complexity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Complexity</span></a> <a href="https://mastodon.social/tags/Halstead" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Halstead</span></a> <a href="https://mastodon.social/tags/codequality" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codequality</span></a> <a href="https://mastodon.social/tags/codemetrics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codemetrics</span></a> </p><p><a href="https://devdanzin.github.io/black/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">devdanzin.github.io/black/</span><span class="invisible"></span></a></p>
danzin<p>Mike Driscoll: Learning About Code Metrics in <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> with Radon</p><p>Nice introduction to <a href="https://mastodon.social/tags/radon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>radon</span></a>:</p><p>"""<br>You can use Radon to help you find complex code in your code base. <br>[...]<br>Here are the four commands that radon currently can use:</p><p> cc: compute <a href="https://mastodon.social/tags/Cyclomatic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Cyclomatic</span></a> <a href="https://mastodon.social/tags/Complexity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Complexity</span></a><br> raw: compute raw metrics<br> mi: compute <a href="https://mastodon.social/tags/Maintainability" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Maintainability</span></a> Index<br> hal: compute <a href="https://mastodon.social/tags/Halstead" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Halstead</span></a> complexity metrics<br>[...]<br>"""</p><p><a href="https://mastodon.social/tags/codequality" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codequality</span></a> <a href="https://mastodon.social/tags/codemetrics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codemetrics</span></a></p><p><a href="https://www.blog.pythonlibrary.org/2023/09/20/learning-about-code-metrics-in-python-with-radon/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">blog.pythonlibrary.org/2023/09</span><span class="invisible">/20/learning-about-code-metrics-in-python-with-radon/</span></a></p>