by zachlatta on 12/10/24, 6:00 PM
by barosl on 12/10/24, 11:12 AM
I also write code using my phone when I'm on a bus or the subway. It requires some patience but after getting used to it, the experience is surprisingly pleasant especially if you're familiar with terminal-based tools. My environment consists of:
- Galaxy S24 Ultra
- Termius: I think it is the best terminal emulator and SSH client on Android. The sad thing is that the paid version is a bit too expensive. ($10 per month, no permanent option)
- tmux: Mobile connections are brittle so it is a must.
- Vim: Allows me to navigate the code freely without using arrow keys, which is really useful on the touch keyboard.
Not that of a big deal, but the thing that I think is more pleasant on the phone than on the PC is that I can use my fingerprint to log in to the remote server. The fingerprint is stored in the TPM so it is safe. It feels magical!
Edit: The biggest pain point for me was the limited width of the smartphone screen. It is a bit hard to skim over the code quickly because most lines are severely cut. Text wrapping helps this but personally I hate text wrapping. Keeping landscape mode is not an option because the code area is completely hidden when the touch keyboard is displayed. That's why foldable phones are great for coding, as they have a wider screen. My previous phone was Galaxy Fold and it was a wonderful coding machine.
by ksynwa on 12/10/24, 8:54 AM
I'm getting a little bit of anxiety just reading about this. I hate typing on phone especially if the text haa symbols mixed in. I mistype a lot more often on phone and often somehow skip entire words. (Don't know what the cause of this is.)
I am guessing they using some specialised keyboard that makes it easier to type symbols etc.
by erbdex on 12/10/24, 12:21 PM
In developing countries like India - a surprisingly high number of students do not have access to a computer. I have a lot of friends who had to learn enough on phone to bootstrap into buying their first laptop.
One of my best friend - in his village in the hills they did not have electricity but the government had sent a PC. No one was allowed to go close to it but that was the very thing that inspired him to learn computers. Today he's one of the sharpest linux/infosec folks in my small circle.
by pandemic_region on 12/10/24, 10:04 AM
Back in the 90's, I created something like a mortgage calculator on my HP48gx. It was about 1500 "lines" (a line being maybe at most 30 chars) , all keyed in using only the calculator. The mind is capable of many things.
by ongytenes on 12/10/24, 12:49 PM
I been writing programs for over 50 years and I shuddered at the thought of doing it on a phone. My first thought, he must be a masochist. Then I thought he might not had anything better to work on. I'm a touch typist who doesn't need to look at the keyboard why typing. Given my cataracts and tiny screen and tiny keyboard, it is torture to type on my phone.
by matwood on 12/10/24, 9:13 AM
by cess11 on 12/10/24, 11:07 AM
I think there's a lot of us that do more or less serious programming on our handhelds. The author of Picolisp does a lot of development on a tablet, and has created his own software keyboard:
https://software-lab.de/penti.htmlI've been using it for years, and have solved crises at work with it and Termux by SSH:ing from my phone into a box attached to the right VPN and jumped from there to control over production. Tablets are really nice in this area, they have a lot of battery time and one can lay in bed and do the stuff in vim, tmux, &c. as one usually does, just a little bit slower due to software keyboards being a bit less efficient.
by theden on 12/10/24, 11:09 AM
I've done development on a Nokia n900, but with an external keyboard — can't imagine using an on-screen keyboard, or even a tiny physical one!
Funny thing is, I don't know if some high sec work envs are much better, where developers have to nest remote through machines (of different OSes) just to get a terminal...
by ivjw on 12/10/24, 9:46 AM
Whenever I want to put something down, I open the browser on my phone, type in the address bar, then hit <CR>. Later I synch them along with the other tabs when I have access to the desktop. This routine developed totally unintentionally and has been somehow more productive than all the fancy notetaking apps I'd used. Maybe it's something about the claustrophobically tiny input slot that makes me want to widen it as much as possible. Another bonus is that when I later get to format the long string of text that is synched (as you can see I don't believe in the paragraph when writing on my phone), I get loads of additional ideas.
by felixhummel on 12/10/24, 9:10 AM
by mid-kid on 12/10/24, 11:26 AM
I know it sounds silly but vim controls surprisingly well on a touch keyboard. Not needing modifier keys nearly as often as other editors is a major blessing here.
by andix on 12/10/24, 1:38 PM
30 years ago a lot of software was developed on 25 by 80 character displays and without multitasking. It also worked.
by seba_dos1 on 12/10/24, 5:27 PM
I used to write plenty code on a tiny resistive touchscreen of the Openmoko Neo Freerunner 16 years ago. I was often hacking on its OS itself since big chunks of FSO middleware were written in Python. 25k lines doesn't seem that much.
In fact, I found it less annoying for typing code than current big capacitive screens or even N900's keyboard (which was great for texting, but could really use an additional row of keys for symbols).
by dailykoder on 12/10/24, 9:51 AM
Looks like a nice plugin. Kudos to the madman, I will def check that one out. Thanks!
Always have written markdown without preview and hoped that it looked right when I commited it.
Edit: Or on edge cases I have used remarkable[1], which I have found ages ago. I don't even know how """good""" it is, but I like its simplicity.
- [1] https://remarkableapp.github.io/
by eligro91 on 12/11/24, 6:18 AM
I'm also doing that but to develop side projects instead of playing games or reading news, it's an effective way to spent in transit / before sleeping, waiting on lines, in boring talks etc etc
I'm using
Keep notes - for crafting the issues and bugs I want to fix, reshaping the solution
ChatGPT -
Copy shortcuts - I'm able to copy various parts of the application and sent to ChatGPT (file path, code...) and then after the code I'm writing my plans. asking to tell what to change
Neovim - with many great shortcuts to make life easier, copying and pasting specific parts, quick save, run python scripts, the tree navigation and search is awesome, git plugins as well
Fastapi & Vue - I'm running on my phone the Web app and debugging it with pdb
Kiwi browser - has great debug tools
Termux of course
Git - pushing to a repo and it's being deployed to vercel
it's great when I find small bugs in the app when I'm using it, i can fix it right away without opening laptop
by severino on 12/10/24, 1:45 PM
I once read an article about how some Nintendo Famicom developers in the 80s used to program their games without a keyboard, just using some kind of joystick or trackball to select the characters on the screen. Knowing that, this doesn't look that bad.
by Havoc on 12/10/24, 12:41 PM
So we fedex him a laptop and then agi by end of week
by morningsam on 12/10/24, 11:20 AM
I think this will become more common, not just in developing countries but also in the West, where phones are practically mandatory to have and laptops aren't, so lots of kids will get their first programming experience on phones.
by sensanaty on 12/10/24, 9:20 AM
This sounds like actual torture, and the madman inflicted it on himself. Kudos, I guess?
by arp242 on 12/10/24, 10:30 AM
One of the people on vi Stackexchange site mostly answers questions from his phone. Glad it works for him, but just seems absolutely mental to me, especially when you have access to a decent machine.
by zwnow on 12/10/24, 9:15 AM
I use Neovim on Termux as well occasionally. With the right macros it's not too bad to write on phone. Fun for little stuff and languages that do not require tons of brackets.
by coolcoder613 on 12/10/24, 11:26 AM
I have a lilygo T-Deck, I use it for writing in bed with a custom text editor [0]. It has a surprisingly great typing experience, and I can get up to a decent speed. Typing
can be good on handheld devices.
[0] https://github.com/coolcoder613eb/notepad
by walthamstow on 12/10/24, 11:23 AM
This is what they make you do in Guantanamo
by shoooooooooota on 12/10/24, 11:20 AM
Inverting this:
If you were to develop a programming language, IDE and DX optimized for coding on a phone, what would that look like?
by wslh on 12/10/24, 11:26 AM
Genuinely speaking, are there UX/UI/CHI innovations about developing software on small screens? I think it go both ways: it is not only about the form-factor but rather programming languages and UIs specifically adapted. For example, it is not the same to develop in C++ that using Python or LISP.
by sharperguy on 12/10/24, 11:46 AM
I wonder what keyboard he is using? I use Thumb-Key which is a very unorthodox keyboard layout which I find speeds up things like typing special characters needed for coding. I can use vim decently well but I wouldn't develop anything that large with it.
by brokenmachine on 12/10/24, 10:40 PM
Why not just plug a USB or bluetooth keyboard into the phone?
That would be 90% of a laptop IMO. Although I haven't tested it much, Samsung Dex makes my phone appear very much like a laptop when using an external keyboard and monitor.
by ch33zer on 12/10/24, 11:10 AM
Nowhere near as sophisticated but I wrote my entire blog on my phone without a keyboard. It was somewhat annoying but you get used to it:
http://Blaise.bikeby nuc1e0n on 12/14/24, 11:03 PM
I've written code on a phone before and it's not nearly as uncomfortable as it used to be. Especially with the cloud.
by jopicornell on 12/10/24, 9:45 AM
I love to have the portability of my phone, so I have my neovim as IDE on Termux, and I've to say that to do some fixes or review something puntual, it's not that bad. Writing a whole plugin is another level!
by bilekas on 12/10/24, 11:21 AM
I’ve fixed one or two things on my phone in a pinch, or restarted some services but having the patience to code fully on a phone/tablet is a whole different level of dedication. I feel naked without an LsP.
by hinkley on 12/10/24, 8:19 PM
I remoted into work from home one day using my tablet to connect to my work machine. It kinda worked. But I wouldn’t want to do it daily.
by iammrpayments on 12/10/24, 9:38 AM
That also happen to be my currently favorite neovim plugin before I knew this about the developer, which makes this even more impressive to me.
by daft_pink on 12/10/24, 10:18 AM
Am I the only one who clicked through just to find out how to get neovim working on my iPhone? My iPhone doesn’t do that :(
by ghjfrdghibt on 12/10/24, 10:34 AM
My initial reaction was: Why?!
But fair play, I find it hard enough to program on a keyboard.
by imposterr on 12/10/24, 3:31 PM
by unikz on 12/14/24, 4:01 PM
He deserves a Macbook M4 Max
by uludag on 12/10/24, 1:18 PM
This is actually a surprisingly depressing post.
It makes me question all the assumptions I have about dev UX. If my dev tooling was taken away, the saas products I depend on shut down, slack replaced by email, keyboard with phone, etc. would I eventually adapt to such a situation? Would my productivity cut be only marginal?
I sure hope the case is that this developer is just a genius, as I'd like to think we as devs (and maybe as a society at large) are not just deluding ourselves thinking that software is innovating.
by isoprophlex on 12/10/24, 11:45 AM
That's one way of making sure your wrists are completely useless for any kind of work at age 30...
by karel-3d on 12/10/24, 10:19 AM
His parents still want to send him to medical school, because he's Asian, so he needs to be a doctor. (I'm directly quoting him!)
That's ... something.
by Namm22 on 12/10/24, 2:48 PM
This is truly inspiring! Writing a 25k-line Neovim plugin entirely on a phone and touchscreen shows incredible dedication and adaptability. It makes me curious about the tools or workflows they used to achieve this. What motivated them to stick with this unconventional approach?
by enotmcsquare on 12/10/24, 11:32 AM
People say always use the tool that's best suited for the job. This is very good example of why that advice shouldn't be followed.