[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Too fine design granularity leads to numerous macro/function/command
From: |
Emanuel Berg |
Subject: |
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs. |
Date: |
Fri, 13 Aug 2021 20:16:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Arthur Miller wrote:
> In a *shell world* one could logically think of cli utlities
> as "apis" and options as function arguments, and I guess
> pipe would be functional composition. Just a little mind
> stretch if you don't mind the pun :).
Indeed, in a programming language this is clear, more
well-defined, reusable, functional, more modular, etc - maybe
nicely "refactored" that way (unlikely) or even written that
way to begin with (well it _is_ easier and more
pleasant anyway!)
fun-1(...)
fun-2(...)
(...)
fun-n(...)
However,
$ this | is | wasting | forks
and contains ugly pipes. Yukiduk!
Instead one should do it this way:
$ this -iwf
--
underground experts united
https://dataswamp.org/~incal
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs., Eli Zaretskii, 2021/08/13
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs.,
Emanuel Berg <=
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs., Hongyi Zhao, 2021/08/13
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs., Emanuel Berg, 2021/08/13
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs., Emanuel Berg, 2021/08/13
Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs., Emanuel Berg, 2021/08/13