The purpose of a locked boot system is privacy. A MacBook is a less secure device, and one that's been rooted and had linux installed is basically open season for any attacker. An iPad trades off the ability to put some other OS, for fairly close to total security. State-level enemies can torture you or run expensive intrusion software… and Apple improves the defenses against the latter every time. Now it reboots if it hasn't been used in a while, say sitting in an evidence locker.
Boot loader aside, you can write code on an iPad.
There are plenty of code editors, interpreters, and several of them have compilers. The premiere one is Pythonista, but I'm also fond of LispPad (R7RS Scheme). There are a few "linux in a box" things like ish, which give a full shell in a sandbox where it's safe.
I wasn't able to find any pico or nano apps, but there are several Vims and emacsen.
The purpose of a locked boot system is privacy. A MacBook is a less secure device, and one that's been rooted and had linux installed is basically open season for any attacker. An iPad trades off the ability to put some other OS, for fairly close to total security. State-level enemies can torture you or run expensive intrusion software… and Apple improves the defenses against the latter every time. Now it reboots if it hasn't been used in a while, say sitting in an evidence locker.
Boot loader aside, you can write code on an iPad.
There are plenty of code editors, interpreters, and several of them have compilers. The premiere one is Pythonista, but I'm also fond of LispPad (R7RS Scheme). There are a few "linux in a box" things like ish, which give a full shell in a sandbox where it's safe.
I wasn't able to find any pico or nano apps, but there are several Vims and emacsen.