iPads have decent keyboard cases now. I considered getting one to replace my laptop last month but decided against it because it's not really viable for coding yet.
IMO, those keyboards are ok for some quick notes, but for anything longer, its going to give you issues (unless you have tiny hands).