Trailing Slash

November 17, 2021

Trailing Slash

Including the trailing slash inside a variable that is used to generate paths is a anti-pattern. Consumers of a variable should add the trailing slash. Otherwise there is no way for them to remove the slash. Even if all current occurrences of the variable feature the slash, the future is unknown.