Lines of code (LOC) is a software complexity metric that corresponds to the number of lines of source code in a software component. This is commonly used to estimate projects or measure the complexity of existing code for purposes such as service management.
Accuracy
Lines of Code is occasionally criticized as being an inaccurate measurement as it may reward verbose coding styles over more elegant designs. Lines of code may also underestimate complex portions of code such as algorithms and integration. For example, if you rely on Lines of Code a complex trading algorithm that integrates with 10 different exchanges might be considered equal in complexity to a simple service that displays webpages and communicates with a local database. Nevertheless, lines of code is often useful from a management perspective and tends to be accurate enough to estimate complexity at the order of magnitude level.
Cookies help us deliver our services. You have choices regarding these cookies. Please visit our privacy policy, cookie policy and consent tool to learn more.
Copyright 2002-2026 Simplicable. All rights reserved. This material may not be published, broadcast, rewritten, redistributed or translated. Report violations here.