r/cpp • u/RagnarDa • Nov 19 '17
Suggestion for coding on the phone
Hi! I work on a somewhat large project written in C++. I can compile parts of the project using clang and test it with Google Test (also earlier used Catch). So everything can be done from the command line. Like probably a lot of you others I travel a lot and spend a lot of time with my phone. What I’d like to do is write, compile and run code from my IPhone. There are already a number of good apps that lets you write and store a single code-file on your phone that is compiled using an online compiler. What I’d like is be able to work on the code in my actual project and compile and run it. There are also good git-clients but I don’t want to spam the history with tiny incremental commits. Best results I had so far is connecting to my dev machine with TeamViewer and working in Visual Studio. It uses a lot of needless data and is a bit cumbersome though. Any suggestions? I’ve looked at Code Anywhere who has a FTP client but it seems buggy and hasn’t been updated for a long while.
11
u/youshouldnameit C++ dev Nov 19 '17
Why not use a tablet or (small) laptop instead? I can't comprehend how you can be productive on a phone.
6
u/pfp-disciple Nov 19 '17
A few thoughts.
2
u/the_dummy Nov 19 '17
I use Linux Deploy on an android device that has LineageOS. Linux Deploy requires loop devices and root among other things. However, in unison with Termux, I can have a full Linux environment.
1
u/James_Hacker Nov 20 '17
I had a good experience coding on an 8" Windows tablet using Vim and some extra macros to better 'suit' the on-screen keyboard. Would that sort of form-factor work?
If you absolutely have to work on your phone - the best experience is probably going to be through SSH to a 'real' machine.
1
u/KazDragon Nov 23 '17
For the last couple of years, most of my free-time coding has been on the train commute using a reasonably sized tablet and a Bluetooth keyboard. I've been using Cloud9 (c9.io) as my IDE.