hono4kami@piefed.social to Programming@programming.devEnglish · 1 day agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square17fedilinkarrow-up1110arrow-down11
arrow-up1109arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami@piefed.social to Programming@programming.devEnglish · 1 day agomessage-square17fedilink
minus-squarethingsiplay@beehaw.orglinkfedilinkarrow-up3·20 hours agoThe dash - vs underscore _ is also a common “problem” with CLI arguments --file-name, that are mapped to variable names file_name.
minus-squareesa@discuss.tchncs.delinkfedilinkarrow-up2·46 minutes agoYeah, translating between cases isn’t exactly a problem IME. Might be neat to have a case-aware grep though, so you can get kebab-case, snake_case, camelCase and PascalCase all done in one go.
The dash
-
vs underscore_
is also a common “problem” with CLI arguments--file-name
, that are mapped to variable namesfile_name
.Yeah, translating between cases isn’t exactly a problem IME. Might be neat to have a case-aware grep though, so you can get kebab-case, snake_case, camelCase and PascalCase all done in one go.