https://www.logitech.com/en-us/products/ipad-keyboards/folio...
My iPad has better battery, cellular, etc…
Do I use it to code, no, but that is because I don’t really code anymore. I have used it along with parallels access to remote in to my Air from literally across the world, and run VSCode to troubleshoot some code for a friend. It worked fine. Anymore it’s become my travel machine.
The fact that you can remove the keyboard half is a big benefit to some as well.
If you are going somewhere and will want to type when you get there, the Magic Keyboard is coming with you. It folds up to act as a case for your iPad during transit... it is a portable device.
It’s also less invasive that way, you can get a laptop stand but it looks ridiculous in coffee shops.
The benefit of the iPad is the touch screen, that's it. The size/weight argument is only valid for those who aren't loading it up with a keyboard cover. I assume everyone talking about coding on it are going to be using the Magic Keyboard.
[1] https://www.theverge.com/2020/4/20/21227741/apple-ipad-pro-m...