"Late game factorio feels exactly like coding, except you can't copy paste as well and make loops and other time saving abstractions."I'm not sure what you mean by "as well", but Factorio does have various rather sophisticated methods of copying and pasting. For instance, there's the regular Control-C sort of copy, which allows you to rotate the entities before pasting, should you prefer. Then there are blueprints, which let you select which entities in a copied blueprint to store, what icon(s) to assign them, and let you have a library of blueprints and folders of blueprints even. That's more sophisticated than some text editors' copy/paste features.
As far as loops go, you can actually create loops in Factorio.
First, there's the simple belt loop. Those can be pretty useful (like with Koravex enrichment process, and coal-powered coal miners powering themselves or each other are also pretty popular).
Inserters can also be used in loops (from box to box, for instance).
Then there are more sophisticated loops involving trains and entire factory groupings.
Then there's the circuit network and combinators, which provide a visual programming language in which loops are possible. Some mods provide combinators will expose the full power of Lua programming to you in-game.
This is not to mention the possibility of writing your own Factorio modules in Lua, which literally is programming in text in a traditional language, and where you can write loops to your heart's content.
As for "time saving abstractions", with the Factorissimo2 mod, you can even abstract away parts of your factory and reuse those parts as modules. These modular parts can themselves be abstracted or nested as submodules of other modules, etc.