I think the detailed guide would be "write code that doesn't care about the architecture".

If you're doing something low-level enough that it matters about the architecture, then you already know what the impact will be.