Sujet : Re: Useless Use Of Regexes
De : sc (at) *nospam* fiat-linux.fr (Stéphane CARPENTIER)
Groupes : comp.os.linux.miscDate : 13. Apr 2025, 19:25:56
Autres entêtes
Organisation : Mulots' Killer
Message-ID : <67fc01b4$0$28487$426a74cc@news.free.fr>
References : 1 2 3 4 5 6 7 8 9
User-Agent : slrn/pre1.0.4-9 (Linux)
Le 13-04-2025, Lawrence D'Oliveiro <
ldo@nz.invalid> a écrit :
On 12 Apr 2025 11:23:14 GMT, Stéphane CARPENTIER wrote:
>
Yes. And then, I have to remove "cat". And only then can I write "grep".
Which is more difficult than just writing "| grep" at the end of the
line.
>
Let’s see:
* CTRL/A, DEL, DEL, DEL, “grep” (8 keystrokes)
versus
* “|grep” (5 keystrokes)
>
That’s 60% more work. I suppose that’s a big chunk out of your working
day ...
Yes, because adding "|grep" comes naturally in mind when removing "cat"
makes me think about the way to do it. So, I have to stop thinking about
of what I want to think about the way to get it.
But, of course, you remove the only important point because you can't
have any reason. What does it bring me to use grep the right way? I can
accept an added work if there is some purpose. The purpose is not about
limiting my CPU ressources, the difference is invisible. The purpose
can't be to get the answer faster, because with the added work, it takes
me more time to have my answer.
So why do you want to fight the UUOC? Why should I follow your advice?
Because some pedantic moron considered it was a worthy fight to do a
long time ago and it has been followed by parrots ever since? If so, it's
not enough. If you can't come with a good reason for me to add an extra
work in my workflow, I don't have any reason to follow it. And for now,
it looks like it's only to follow pedantic morons unable to see a
purpose on what they do.
-- Si vous avez du temps à perdre :https://scarpet42.gitlab.io