Greppability is an underrated code metricmorizbuesing.com hono4kami ( @hono4kami@piefed.social ) Programming@programming.devEnglish • 18 days ago message-square23fedilinkarrow-up189
arrow-up189external-linkGreppability is an underrated code metricmorizbuesing.com hono4kami ( @hono4kami@piefed.social ) Programming@programming.devEnglish • 18 days ago message-square23fedilink
minus-square thingsiplay ( @thingsiplay@beehaw.org ) linkfedilink3•17 days agoThe dash - vs underscore _ is also a common “problem” with CLI arguments --file-name, that are mapped to variable names file_name.
minus-square esa ( @syklemil@discuss.tchncs.de ) linkfedilink2•17 days 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.