When describing an actual production environment, it's easy to end up with duplicate /ssh:someuser@someserver:somedirectory/... :dir properties all over the file. This is extremely difficult to scan.
Here's how I solve this with :tangle (identity <var-name>)
#+begin_src emacs-lisp :tangle ~/.doom.d/config.el
(setq! my-doom-dir (expand-file-name "~/.doom.d")
my-doom-config-file (expand-file-name "config.el" my-doom-dir)
)
#+end_src
#+begin_src emacs-lisp :tangle (identity my-doom-config-file)
(do-stuff)
#+end_src
Here's how I solve this with
:tangle (identity <var-name>)