In my experience, iPad + keyboard works okay for coding if you SSH into a remote machine [1] and use a terminal-based text editor like emacs or vim. Alternatively, you can use a Git client [2] to code locally but that prevents you from using your preferred text editor or the command line. In theory, Visual Studio Code for the Web [3] could work too though I haven’t tried that approach personally.
I first experimented with iPad coding around 2013 and have tried it periodically since. I haven’t noticed a dramatic improvement in the coding experience over the past decade: Even today, iPad coding just “okay” and not great because laptops are still more versatile at windows management.
[1]: https://termius.com/free-ssh-client-for-ipad
[2]: https://workingcopyapp.com/
[3]: https://vscode.dev/
Yeah, it works okay. I've been using it with GitHub Codespaces[1] in the past, which is not only VSCode Web, but also allows you to run your code (and any terminal commands really) in GitHub's cloud.
You get 60 2-CPU-core hours for free each month, it comes in pretty handy if you just want to quickly code something on the go, and don't have a real laptop / PC available.