Re:Greppability is an underrated code metric
by nsonha on Tuesday September 03, 2024 @10:42PM
(#41441372)
> should be important distinction what is a function and what is not
code is to express logic clearly to the reader. We should assess it for that purpose, before assess for any derivative, secondary concern such as whether categories of things in code (function etc) visually pops out when you use some specific tool like vim, or grep. There are syntax highlighters for a reason.
And maybe if grep sucks with code then build the proper tool for code searching, instead of writing code after the tool.
code is to express logic clearly to the reader. We should assess it for that purpose, before assess for any derivative, secondary concern such as whether categories of things in code (function etc) visually pops out when you use some specific tool like vim, or grep. There are syntax highlighters for a reason. And maybe if grep sucks with code then build the proper tool for code searching, instead of writing code after the tool.