From my experience (which isn't worth much but I have had similar thoughts about this) I went with a used iPhone 8 last year for around $180 because I thought it was going to get iOS 16, which it did. It's good until September next year (when the next iOS probably comes out) and at that point I will probably get a newer iPhone albeit probably a used one to save money.
Louis Rossmann recently released a video talking about GrapheneOS as his daily driver and breaks down some usability misconceptions. (https://www.youtube.com/watch?v=yIZmUINSvQ4)
When you say 'prevents you from writing apps' do you mean native iOS apps which (at least to my knowledge) can only be done on Macs? Or do you mean other types of applications?
So I originally wanted to make a repo that had general CS and programming info but then I discovered OSSU's repo. Feeling as though there was still space for my general idea, I switched to lessons and maybe specific resources from hackers for hackers.
https://github.com/sindresorhus/awesome-chatgpt