hono4kami@piefed.social to Programming@programming.devEnglish · 1 year agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square5fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami@piefed.social to Programming@programming.devEnglish · 1 year agomessage-square5fedilink
minus-squarefool@programming.devlinkfedilinkarrow-up1·1 year 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-squarethingsiplay@beehaw.orglinkfedilinkarrow-up0·1 year agoFor code bases where this is a thing, you could use greps context lines: grep ---before-context 1 "^main"
minus-squareMadhuGururajan@programming.devlinkfedilinkEnglisharrow-up1·10 months agogrep -B should be more concise
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"grep -B should be more concise