Live data from Hacker News

Ask HN: Can programming be learnt completely on smartphone?

news.ycombinator.com

11–20 of 75 posts

Re: Ask HN: Can programming be learnt completely on smartphone?

#11
You can probably read all the content of the courses on your phone and even run a basic Python/R interpreter on it, but no. Phone keyboards suck for programming and there are a ton of programs you can't run on a phone (like RStudio or Python IDEs).

Just get a cheap desktop and keyboard on Craigslist. I've found ones for as little as 20USD. Or you might be able to use a Raspberry Pi, if you're into that.

Re: Ask HN: Can programming be learnt completely on smartphone?

#12
Not practically.

If you hooked up a keyboard, used emacs or vim as an editor, you would likely be able to program enough to pass a intro to programming course (with significantly more difficulty than anyone on a computer). In theory you could do a fair bit of development work on your phone, but in practice it would be far too much friction to develop any real (i.e. more complex than intro to programming assignments) software.

Re: Ask HN: Can programming be learnt completely on smartphone?

#14

Probably, yes; the first programmers did not even have keyboards or screens, but rather swapped out the relays manually and checked their voltmeters. But what is the point? You will not be able to complete the exercises as quickly and it will be a pain to download and configure all the software. You can get a cheap Chromebook for $200, stick Ubuntu on it ( https://www.lifewire.com/install-linux-on-chromebook-4125253…

Umm...$200 is a lot of money in many parts of the world. You never know who you might be responding to.

Re: Ask HN: Can programming be learnt completely on smartphone?

#15
Did you mean GNURootDebian? Don't know about R but I have learned a lot of C using the Termux app, I know python is supported. With Termux you are limited to a terminal, but personally I have never been able to see emulated Linux desktop on a phone correctly... Of course if your course includes gui programming you need full desktop. I would recommend getting an external keyboard for programming, or at least the hackers keyboard app.

Re: Ask HN: Can programming be learnt completely on smartphone?

#16
I've written small snippets of code from my phone before, but it's usually either testing specific language syntax, or making minor tweaks to existing code in situations where I'm either learning a new language, or dealing with weird edge cases.

For full-blown development, it's not really suitable. Your phone is best used for reading technical material and watching video content.

Even if you can program on mobile, it's going to be painful. Perhaps less so with an external keyboard and SSH into a cheapo VPS instance, but you're still going to take a substantial productivity hit.

May I ask why you're going this route?

Re: Ask HN: Can programming be learnt completely on smartphone?

#17
Yes. My younger brother did learn programming in a phone. He started in Nokia 2700 Classic, which is not even a smartphone. Then he took a Samsung which runs Android. He certainly didn't become an expert using those devices. But he learnt the basics of Python.

One thing to note probably is, he started very young. And in young ages people can learn very easily. I don't think I can learn programming in a smartphone in my current age. But for kids, whole different game.

Re: Ask HN: Can programming be learnt completely on smartphone?

#18

Probably, yes; the first programmers did not even have keyboards or screens, but rather swapped out the relays manually and checked their voltmeters. But what is the point? You will not be able to complete the exercises as quickly and it will be a pain to download and configure all the software. You can get a cheap Chromebook for $200, stick Ubuntu on it ( https://www.lifewire.com/install-linux-on-chromebook-4125253…

Umm...$200 is a lot of money in many parts of the world. You never know who you might be responding to.

Smartphones and computers are at pretty comparable prices everywhere I've checked; since he owns an (Android) phone laptops can't be that far out of reach.

Re: Ask HN: Can programming be learnt completely on smartphone?

#19
Go for it! Adding a USB keyboard would be immensely helpful.

Seeing that you have access to the internet I would second @rl3's suggestion about trying a (free or cheap) VPS service and SSHing to the machine, especially for snapshots, networking and better performance.

Post reply on HN