I have a low key quest to find a modern "true" #LiterateProgramming environment that lets you write in the order that makes sense for humans (e.g. some less interesting functions defined in an appendix, overall algorithm structure introduced first and then key parts fleshed out later) while assembling the source code into the order it's needed to execute (e.g. functions defined before they're used).