Settings

Theme

Sloc Cloc and Code 4.0 (scc) – Finding the files that need the most attention

boyter.org

46 points by boyter · 14 comments

Reader

6 threads
othmanosx

Interesting, I built https://pyor.review to fix this exact issue, though it uses AI to categorize the files and groups them by complexity to speed up the review process because most AI generated code is noise, especially migration PRs. Curious to know if this could be done in a deterministic way without the help of AI

  • boyterOP

    Thats what this should be able to do for you. Feel free to hook it in and see if it works. If so please let me know!

cnnrrss

Congratulations on the release boyter! scc has been a really useful tool for probing projects. Looking forward to the new features.

wyre

Thanks for developing scc!

Regarding LOCOMO I have a fork that calculates an estimate based on # of commits * price per task according to Artificial Analysis benchmarks for a given model, and includes a simple overhead multiplier to pad out the estimate.

  • boyterOP

    You are welcome.

    Id like to see that fork. Perhaps I can fold some of it in.

aslakhellesoy

Very interesting. This reminds me a lot of the CRAP metric - a combination of cyclomatic complexity and code coverage.

It would be intersting to combine your «attention» metric with CRAP.

jmfn

Neat tool. Wondering if this has a place helping to gate PR’a that should require human review.

  • boyterOP

    Probably? You could look at hotspots using it and determine a human in the loop must happen.

    If you do hook this up please let me know, id love to write about it.

vivzkestrel

- saw this other post on your blog

- https://boyter.org/2010/08/mysql-backups-done-easily/

- is an sqldump actually a backup?

  • boyterOP

    Its what I used to migrate to the 6 TB sqlite database... so yes? Depends on your definition of backup. In my case I wanted a way to restore in the case of data loss, so yes. Im sure some pedantic sql admin will disagree with me here.

  • ghoul2

    if sqldump isn't a backup, what is?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection