Get the latest tech news

Decomplexifying Curl


(I wrote about this topic in my weekly email this week. This is the blog version, somewhat extended.) Easy to read Two contributing factors that make code hard to read are function length and function complexity. To keep source code easy to read, understand and debug we should strive towards keeping functions short and simple. … Continue reading decomplexifying curl →

I know, it sounds really simple and straight forward but in a living project that goes on for decades, code develops, moves and grows over time. We can of course argue about the specific method or number that pmccabe presents for complexity, but I think it at least is pretty good at actually identifying the correct functions and the exact particular score it sets is not terribly important. Both pull-requests became > 2000 modified lines monsters, but they also had immediate and distinct effects on the graphs; which ideally should mean that the code readability is now a little better than before, making the functions easier to improve and work with going forward

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Decomplexifying Curl

Decomplexifying Curl