hono4kami to [email protected]English • 3 days agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square17fedilinkarrow-up11arrow-down10 cross-posted to: programminghackernewsprogramming
arrow-up11arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami to [email protected]English • 3 days agomessage-square17fedilink cross-posted to: programminghackernewsprogramming
minus-square@[email protected]linkfedilink0•3 days agoGreppability 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.
minus-square@[email protected]linkfedilink0•3 days agoFor code bases where this is a thing, you could use greps context lines: grep ---before-context 1 "^main"
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.For code bases where this is a thing, you could use greps context lines:
grep ---before-context 1 "^main"