News for hackers. Stuff that matters.
Re:Ask HN: Why don't smartphones encourage programming like ... by throwaway4aday on Saturday April 15, 2023 @01:04PM (#35582420)
I think your obvious answer is wrong. The fact is that modern smartphones are walled gardens with very large, powerful gatekeepers who want to protect their duopoly. The original impetus behind locking down the operating systems on smartphones was security but it evolved into a perfect way to ensure control over their market. There are no generic PC clones in the cellphone market, only small hobbyist or niche products that barely work. A+G encourage programming for their OSs only in so far as the output of such an activity can be sold on their app stores where they can take their cut and still retain absolute control over what gets installed.

In regards to plugins, someone has to write them. Even if the people writing those plugins use LLM tools to assist them they still need to know how to put software together and how to manage all of the services that those APIs talk to and how to scale their infrastructure along with user growth.

Re:Ask HN: Why don't smartphones encourage programming like ... by mardifoufs on Saturday April 15, 2023 @01:51PM (#35582851)
I'm not sure that's true. AFAIK even Apple allows bundled interpreters for educational purposes on the App Store. There are tons of ways to program on both mobile platforms.

Here's just a random example, a full python environment for iPhone/iPad:

https://pyto.app/

Re:Ask HN: Why don't smartphones encourage programming like ... by lozenge on Saturday April 15, 2023 @02:36PM (#35583296)
The speed you can input data into a smartphone just isn't conducive to creating anything. It isn't a grand conspiracy. On my computer I've never created something with the same screen size as the intended viewer.
Re:Ask HN: Why don't smartphones encourage programming like ... by comfypotato on Saturday April 15, 2023 @07:19PM (#35585626)
I read the comments until I found this one. There’s something to be said for not needing the blazing speed of vim/Emacs, because most of the work is thinking, but smartphones are so far on the opposite end of the spectrum that the input and interaction with the dev environment is prohibitive.

I think this is the key problem, no more no less. If I had a decent keyboard I would be much more inclined to write software on my phone. Come on, there isn’t even a shift key, led along the other modifiers.

Re:Ask HN: Why don't smartphones encourage programming like ... by lozenge on Saturday April 15, 2023 @07:37PM (#35585749)
Yep, somebody else mentioned programming on their graphics calculator. Yeah, the display sucks but it has a better keyboard than your phone, especially if the BASIC keywords are assigned keys or key combinations. Phones need you to watch the screen as you input which inherently slows everything down.
Re:Ask HN: Why don't smartphones encourage programming like ... by chlorion on Saturday April 15, 2023 @09:27PM (#35586408)
I'm not sure what you mean about blazing speed and Emacs. Emacs is not a modal editor and isn't intended to increase your typing or code editing speed anymore than any other text editor.

I think people assume that Emacs is a modal editor like Vim but I'm not totally sure why that is.

Otherwise I agree that the mobile input methods are simply too limiting to work with.

Moving around the cursor is pretty difficult and accessing non-alphanumeric symbols sometimes requires clicking the "modifier" thing once or twice.

The on-screen touch-driven keyboard also takes up at least half of the screen, and shrinking it makes hitting a specific key much more difficult.

There is also the difficulty in holding the phone while doing all of this!

On Android you can connect a regular keyboard to the device and use that, then I think working on stuff could be viable!

Re:Ask HN: Why don't smartphones encourage programming like ... by Kokouane on Saturday April 15, 2023 @10:43PM (#35586772)
> Emacs is not a modal editor and isn't intended to increase your typing or code editing speed anymore than any other text editor.

This is true by default, but many people do use Spacemacs or Emacs with doom mode enabled which does allow vi keybindings, so I think some people associate it with modal editing.

Re:Ask HN: Why don't smartphones encourage programming like ... by Hedepig on Sunday April 16, 2023 @04:54AM (#35588344)
Emacs can be anything you want if you build it or what you want is built.
Re:Ask HN: Why don't smartphones encourage programming like ... by ttttt444yeak on Saturday April 15, 2023 @09:21PM (#35586377)
This is the real reason. It's very simple. Not even programmers would program on a smartphone so of course non programmers also aren't going to do it.
Re:Ask HN: Why don't smartphones encourage programming like ... by tester457 on Monday April 17, 2023 @04:53PM (#35606471)
There are many people who write short programs on smartphones with termux.[0]

[0] https://news.ycombinator.com/item?id=24979258

Re:Ask HN: Why don't smartphones encourage programming like ... by melagonster on Saturday April 15, 2023 @09:32PM (#35586428)
I saw some gen-Z input on their cellphone, they told me it is faster than keyboard.

in another way, it is possible to connect a keyboard to cellphone.

Re:Ask HN: Why don't smartphones encourage programming like ... by ungamedplayer on Sunday April 16, 2023 @11:04AM (#35590600)
This is probably true for non touch typing, almost absolutely incorrect for a competent touch typist who regularly uses words outside of the default common English suggestions provided by the keyboard.
Re:Ask HN: Why don't smartphones encourage programming like ... by literallyroy on Sunday April 16, 2023 @10:49AM (#35590471)
Just to clarify when you say:

> I think your obvious answer is wrong

You are saying this is wrong:

> The answer is obvious - most people don’t want to do this.

You are saying you believe the majority of people *do* want to learn to program?

I’m my eyes the BASIC prompts at startup we’re there because that’s how you had to interact with computers at the time. Seems like the vast majority of people want to use their phones not program them.