Counting Lines of Code, and Herd Hound
I won’t lie to you, Herd Hound is the largest codebase I’ve ever written. Nope, not bragging. Just saying I’ve never written large stuff. So I was wondering, how many lines of code it has exactly. That’s how I found the CLOC (Count Lines of Code) tool to aid me in this. I must say I was quite surprised.
Now, I know some of you reading this have probably written 3 or 30 times larger stuff, I’m not saying this is awesome or anything. But I’m pretty impressed in the context of my own development as a developer (pun unintended).
So, the numbers read like so:
- JavaScript: 29,274 loc
- Python: 6,066 loc
- CSS: 1,592 loc
- BASH: 256 loc
- Total (including pieces excluded above): 37,225 loc
Now, not all of the code is mine. There are some 3rd party libraries in there that probably weight in at about 12k loc. So my part of the code would be about 15k to 20k loc (there is some duplication that I’m aware of, but I’m not sure how much code has been duplicated).




