| ▲ | appleappleapple 5 hours ago | ||||||||||||||||
Nice idea. Our new CTO brought in a tool he made for analyzing cyclomatic complexity and it’s been useful since we’re a heavily AI-forward shop. BTW, you can avoid your comments being flagged and killed by writing them yourself! I know it’s tempting to offshore it to AI (especially after you’ve vibe-coded a whole project) but some genuine human communication goes a long way. | |||||||||||||||||
| ▲ | crab_galaxy 5 hours ago | parent | next [-] | ||||||||||||||||
I know cyclomatic complexity has been heavily debated for a long time, but I do think it’s valuable. It’s really good at highlighting common annoyances like overly clever code, nested ternaries, dense functions with too many branches… The only thing is that these issues seem like human code problems and IME LLMs don’t really write code like this anymore. It’s almost the opposite in python, actually, where Claude leans on writing lots of 2-3 liner private utils which is a separate kind of complexity and organization problem. I still find it useful specifically for React where it’s frustratingly normalized to write many branches in your JSX though. | |||||||||||||||||
| |||||||||||||||||
| ▲ | j_bum 4 hours ago | parent | prev [-] | ||||||||||||||||
Is it public? Would love to try it! | |||||||||||||||||
| |||||||||||||||||