I used to be a die-hard iPad-for-coding user, but with the advent of the M1 MBAs I couldn't justify it anymore.
The thing that broke me was that if I wanted a remote development env (because at the end of the day you can't do development on an iPad without some remote computer running stuff for you) at the time you needed to a) provision on via safari manually b) have some kind of script or something on the iPad capable of doing that for you c) have a cheap/low-power computer always running to run the scripts. [This is assuming you don't have a remote computer already you can turn on. E.g. "only iPad + on-demand cloud resources"]
I eventually concluded the M1 MBA is a better option because of how heavy an iPad Pro 12" + Magic KB Case is in comparison.
I still *love* my iPad Pro. The screen is almost a good enough reason to use it. Also it had LTE which was very useful.
I still think it's possible to make the iPad do everything I wanted the M1 MBA to do without significantly changing how Apps are developed or restrictions on iPadOS (and apps like ShellFish, WorkingCopy, and Blink Shell are really my go-to examples of how that could have existed all this time), but while possible today it's just much higher friction and cost to use an iPad to do the same thing an entry-level M1 MBA could do.