Memorize idioms
Here are a few "idioms" that do certain things, depending on the nature of the language.
Pseudo-linear code
If dynamic code generation is ever required, it may be of use to use the pseudo-linear code model:
v
\"line 1"
\"line 2"
.
.
\"line N"
Assuming \
and v
mean what they usually do.
Infinite loop
In almost all 2D languages, ><
is an infinite, unbreakable loop. If, for some reason, you need to do this, this is the best way, despite how nice this might look:
>v
^<
In fact, if you make your code a 1-liner, you could just use ^
or v
, as such:
i?vo;
This v
will send the IP to itself, wrapping around. You may still be able to use this approach in any instance where a directional command points to a series of (relative) no-ops.
Quine framework
Usually, languages with a string/quote framework can have a quine like this:
<quote><generate "><output stack><terminate>
For ><>, this would look like:
":1-r>o<#
Except this one exits with an error as termination. It is probably the shortest ><> quine, or, at least, the shortest one that I have found.