Get the latest tech news

LoC Is a Dumb Metric for Functions


What’s the quickest giveaway that someone’s an amateur developer? When they tell you to break out a function into smaller functions, and the first reason they cite is “it’s …

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of functions

functions

Photo of LOC

LOC

Photo of dumb metric

dumb metric

Related news:

News photo

I tested this Oura Ring 4 rival that's functions similarly but at half the price (and no subscriptions)

News photo

Checking that functions are constant time with Valgrind (2010)

News photo

Rasterizer: A GPU-accelerated 2D vector graphics engine in ~4k LOC