I'm glad that I am not graded on how many lines of code appear in the final code I write/commit. I just wrote ~250 lines of experimental code to get to a final ~15 lines of code (in a different module than I started in!) to solve a problem. Everyone else will just see the 15 lines.

The solution is much better than the one I started chasing. But based on SLOCs or other metrics, I would be penalized. smh

#sloc #slocs #programming #coding #software #ProgrammingIsThinking

✨ sloc: Công cụ đếm dòng code nhanh cho Windows! Dùng .NET IO siêu tốc, chỉ cần file .bat là dùng ngay. Tự động bỏ qua file 100MB+ và file nhị phân. Có thanh tiến trình, không yêu cầu cài đặt. Đã mở nguồn trên GitHub! #sloc #cloc #DevelopmentTool #CôngNghệMới #ViệtHóa #CodeTool #IOOptimization

https://www.reddit.com/r/SideProject/comments/1qqta0h/i_built_a_lightweight_cloc_alternative_for/

Fedi software example sizes

Lines of Code (excluding blank lines and comments):

Mastodon: 477,794 (1.5% Chromium)
Misskey: 289,974 (0.9% Chromium)

Chromium: 30,992,426
Firefox: 28,634,675 (92.3% Chromium)

And yes, a bit like apples and iOS: The SLOC of Mastodon and Misskey are from the default branch on GitHub, the browser SLOC are from this site: https://openhub.net/
So the browser SLOC could contain some (a lot of) dependencies.

#code #SLOC

Open Hub, the open source network

#Ohcount (#Ohloh count) is a source code line counter with language detection.

Ohcount is a tool which counts source lines of code (#SLOC) in source files. Along with line counting ohcount can detect programming languages present in a file and licensing terms on a per file basis. Ohcount can be used on both single files as well as entire directories.

Website 🔗️: https://github.com/blackducksoftware/ohcount

apt 📦️: ohcount

#free #opensource #foss #fossmendations #programming

blackducksoftware/ohcount

The Ohloh source code line counter. Contribute to blackducksoftware/ohcount development by creating an account on GitHub.