Didn’t seem all that AI sloppy to me
- 0 Posts
- 3 Comments
Joined 1 year ago
Cake day: June 6th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Kache@lemmy.zipto
Programming@programming.dev•Cyclomatic caps: the limit is the lever, not the warning
7·19 days agoCyclomatic complexity is like trying to measure complexity of a mathematical formula by the counting penstrokes. Don’t mistake a metric’s ease of measurement for its correctness, see: productivity vs lines of code.
Every point under “Why?” is too optimistic about forced deconstructions being good, that all the small pieces will be cut along the right seams.
Breaking up a messy scribble in the wrong places just leaves you with the same messy knot, now as a shuffled jigsaw puzzle.
If the code is written for humans, then excercise human judgement and use a relaxed “complexity metric”. If the code is written for agents, then this metric matters even less. If forced to pick a number, I’d use something like 50+ to only alert on the truly excessive.

This is merely one instance/example of a deeper principle: avoid mixing layers of abstraction