Greppability is an underrated code metric

https://piefed.social/post/380937

Greppability is an underrated code metric

Greppability also contributed to this thingy

int main() { // dam }

in Mozilla C-style and GNU C-style projects. Of course, it’s a remnant of the past (grep ^main), but kgmgaehgka.

tracker.c - mozsearch

For code bases where this is a thing, you could use greps context lines: grep —before-context 1 “^main”
grep -B should be more concise