News for hackers. Stuff that matters.
Re:The Shapes of Code by foxes on Tuesday January 28, 2020 @04:02AM (#22167678)
For me I would think of the "shape of code" as an abstract measure of complexity [0]. More text might correlate with more complex logic. This is a measure in a language which manipulates state / control flow.

I'm not sure what happens in a functional language. Maybe you could just think about numbers of functions. In Haskell sometimes it helps to write things in a pointfree way and you can spot some more general function to replace some noise.

[0] https://en.wikipedia.org/wiki/Cyclomatic_complexity

There are no comments on this comment yet.