hono4kami to [email protected]English • 3 months agoGreppability is an underrated code metricmorizbuesing.commessage-square25fedilinkarrow-up1125arrow-down11
arrow-up1124arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami to [email protected]English • 3 months agomessage-square25fedilink
minus-square@[email protected]linkfedilink3•3 months agoThe dash - vs underscore _ is also a common “problem” with CLI arguments --file-name, that are mapped to variable names file_name.
minus-squareesalinkfedilink2•3 months 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.