hono4kami@piefed.social to Programming@programming.devEnglish · 1 month agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square24fedilinkarrow-up1124arrow-down11 cross-posted to: programming@zerobytes.monsterprogramming@zerobytes.monster
arrow-up1123arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami@piefed.social to Programming@programming.devEnglish · 1 month agomessage-square24fedilink cross-posted to: programming@zerobytes.monsterprogramming@zerobytes.monster
minus-squarethingsiplay@beehaw.orglinkfedilinkarrow-up1·1 month 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"