hono4kami@piefed.social to Programming@programming.devEnglish · 6 days agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square21fedilinkarrow-up1120arrow-down11 cross-posted to: [email protected]
arrow-up1119arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami@piefed.social to Programming@programming.devEnglish · 6 days agomessage-square21fedilink cross-posted to: [email protected]
minus-squarethingsiplay@beehaw.orglinkfedilinkarrow-up1·6 days agoFor code bases where this is a thing, you could use greps context lines: grep ---before-context 1 "^main"
For code bases where this is a thing, you could use greps context lines:
grep ---before-context 1 "^main"