News for hackers. Stuff that matters.
Re:Python is becoming the world’s most popular programming l... by collyw on Wednesday October 10, 2018 @04:43AM (#18183094)
Is there a quick way to find out your LOC in a python project? Does it include whitespace and comments? What about HTML and JS code?
Re:Python is becoming the world’s most popular programming l... by rusk on Wednesday October 10, 2018 @04:48AM (#18183116)
The typical measure is “Source Lines of Code” (SLOC), which would be calculated on a per-language basis and doesn’t include comments or blank lines. You’d sum these together for your codebase overall. Not sure how you’d do it for HTML or mixed code. Presumably the same since it’s such a rough measure that that level of accuracy really doesn’t matter.
Re:Python is becoming the world’s most popular programming l... by sacado2 on Wednesday October 10, 2018 @04:54AM (#18183149)
I'm using tokei for that. EDIT: it gives you the number of lines of code, blank lines and comment lines, for each language in your project.
Re:Python is becoming the world’s most popular programming l... by shermanyo on Wednesday October 10, 2018 @08:40PM (#18190170)
cloc is another commonly used package. It handles multiple languages and has a nice, readable output format.