"do not go shopping until after something has a hole in it, then when you are there, replace only that"
1,190 karma · joined January 15, 2021
"do not go shopping until after something has a hole in it, then when you are there, replace only that"
For the JSON keys, I agree somewhat, although it would be easy to compensate by vertically aligning the values.
An incremental grep tool with just this one transformation rule gets you a lot more mileage out of grep.
[1] https://github.com/minad/consult/blob/screenshots/consult-li...
EDIT: Better demo https://jumpshare.com/s/zMENBSr2LwwauJVjo1wS
Should be a judgment call, and the author needs to be used to doing both looping and mapping constructs, so that they are unafraid of the bit of extra typing needed for the loop.
But "begrijpelijk" has a clone: "begriplig". An adverb based on a verb in a foreign dictionary. There is no verb that goes "begreppa", it's just "greppa".
const foo = () => {}
This function is not anonymous, it's called foo. (defvar foo-i 0)
(defun foo ()
(while-no-input
(while (< foo-i 10000)
(print (cl-incf foo-i))))
(when (< foo-i 10000)
(run-with-idle-timer 1 nil #'foo)))
Make a copy of all that, search-replacing "foo" with "bar". Run (progn (foo) (bar)). Both loops will complete eventually.EDIT: OK, you explained what you call the normal way to do things. What kind of code is this that take >1 second in each repl? Out of curosity.
To be fair I haven't used an elisp REPL, unless it counts that I use commands. Any command used in Emacs is an eval step in a REPL.
But you mean a REPL as in a console-style interaction, right? It seems an impoverished interaction model, only necessary with other languages since they are not also the editor process.
Ok I can't have multiple REPLs but neither can I type on multiple keyboards at the same time. So it seems to only matter when you are going to spin up some noticeable chunk of work to be done in the background, while the user interacts with the editor. And that is totally doable with `while-no-input`.
In what situation are you running two or more noticeably slow call stacks that need to happen inside the editor process?
If the developer didn't use the old tricks, it doesn't seem likely they will use the thread trick either.