hono4kami to [email protected]English • 1 month agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square23fedilinkarrow-up11arrow-down10 cross-posted to: programminghackernewsprogramming
arrow-up11arrow-down1external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami to [email protected]English • 1 month agomessage-square23fedilink cross-posted to: programminghackernewsprogramming
minus-square@[email protected]linkfedilink0•1 month agoThe dash - vs underscore _ is also a common “problem” with CLI arguments --file-name, that are mapped to variable names file_name.
minus-squareesalinkfedilink0•1 month 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.