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