Defining a new command as \newcommand{\boo}{\texttt{boo}} and then using it in the text as \boo removes the space after boo and the next word. This is fine if the next word happens to be a period, ., but not good otherwise.
The workout is to write \boo \ in the main text. Question: Is there a way to avoid this "\" (to be able to type faster)?
What I tried: I tried \newcommand{\boo}{\texttt{boo}\ } instead, but then the problem with the period is reversed - it is not fine if the next word happens to be period, ., but is fine otherwise.

\(or{}but seexspacepackage if you are not convinced. – David Carlisle Apr 08 '21 at 10:15\at the end make any difference to typing speed? See https://tex.stackexchange.com/a/86620/1090 – David Carlisle Apr 08 '21 at 10:36