News for hackers. Stuff that matters.
Re:Ask HN: Why don't smartphones encourage programming like ... by nindalf on Saturday April 15, 2023 @11:41AM (#35581624)
The answer is obvious - most people don’t want to do this. They want to text or call a friend, look up the weather or sports, stream some entertainment or read the news. They’re experts in their own domains and don’t have the time or inclination to learn programming.

There’s some heavy condescension in this thread, claiming that not programming “keeps people stupid”. As if creating can only happen in an IDE and not in ProCreate or iMovie. It would help if programmers like us eased up on everyone else. Not everyone needs to be exactly like us.

Also, you have to be living under a literal rock if you’ve missed the potential impact of LLMs, specifically chatGPT plugins. Once that’s generally available, everyone can tell the LLM what they want in English and have it done. Everyone can build custom recipes to reuse or create them on the fly. That’s a revolution waiting to happen. And it’ll happen without having to show every smartphone user a basic terminal.

Re:Ask HN: Why don't smartphones encourage programming like ... by Sharlin on Saturday April 15, 2023 @11:54AM (#35581779)
> and not in ProCreate or iMovie.

Or – gasp – Instagram or TikTok!

—

I just listened to a radio show where they talked about how easy it is to create (rap music and music videos in this case) these days, as all you need is your phone rather than expensive devices and desktop applications.

Re:Ask HN: Why don't smartphones encourage programming like ... by ungamedplayer on Sunday April 16, 2023 @11:07AM (#35590628)
Phone made rap sounds like hot garbage though.
Re:Ask HN: Why don't smartphones encourage programming like ... by polishdude20 on Saturday April 15, 2023 @12:01PM (#35581844)
Yeah and to add to this: People, in general, want to connect with other people. Programming is a means to that end. Only for a small part of the population is programming in itself an end.
Re:Ask HN: Why don't smartphones encourage programming like ... by iamdamian on Saturday April 15, 2023 @12:52PM (#35582314)
> Only for a small part of the population is programming in itself an end.

What about in absolute terms? How many millions of developers would write or run code on their phone / tablet if they could?

Re:Ask HN: Why don't smartphones encourage programming like ... by wruza on Saturday April 15, 2023 @01:13PM (#35582512)
Idk, I just want to set two timers at the same time by tapping a custom button, and also make an “app” to open a gate for a delivery guy. And other simple stuff that doesn’t require a CS degree.

I believe that when someone’s idea of what people want equals to the status quo, they just talk out of their Stockholm’s.

Re:Ask HN: Why don't smartphones encourage programming like ... by Jetrel on Saturday April 15, 2023 @05:59PM (#35584999)
That's fully possible, even easy, on an iOS device.

---

The kind of programming people are agitating for in threads like these is emphatically NOT general-purpose programming. It's a very specific kind of proto-programming - being able to write direct inputs in exactly the kind of way you'd write software in the 1980s; a core example being the ability to write for a built-in BASIC interpreter, right on the commandline.

Plot twist: that shit's useless.

I grew up in that era, and that kind of programming is a toy. You can write gimmicky little things like outputting text in various colors, or at extraordinary expense, you can use these incredibly basic building-blocks to jerry-rig higher-level constructs to actually accomplish something meaningful.

It's an incredibly damning indictment that most of the successful pieces of software from that era started by bootstrapping their way out of having to do direct "dos/apple console" programming and wrote a high-level interpreter for something better so they didn't have to deal with that; every major title did something like its own virtual machine (c.f. lucasarts games), its own lisp interpreter, etc.

It doesn't teach you to program; it teaches you to bootstrap language interpreters — if you get incredibly lucky and figure that out on your own. The other "99% of space marines get attrited in training"; the other 99% of aspiring programmers from that era never figured that out, and gave up at the blinkenlights stage, without ever building an actual piece of software, or really getting their machine to actually do anything. I use that example to illustrate the absurdity: the WH40K trope is meant to be satire, because that level of attrition in any field is just a bafflingly wasteful way to elevate people to higher skillsets. Survivor bias may make heroes out of the tiny minority of people who actually made it (the Jordan Mechners of the world), but the cost in people who never "break through" isn't worth it.

I'd rather teach people to actually program. Teaching them to build the ingredients for programming (not the universal ingredients, but just the ingredients to enable it on one very particular kind of host medium) isn't it.

My regard to that "programming" era is: "rest in piss, you won't be missed".

Re:Ask HN: Why don't smartphones encourage programming like ... by diego_moita on Saturday April 15, 2023 @12:14PM (#35581984)
It is more than obvious if you look at the broad picture: computers on the 80s were sold to a few million people, most of them with, at least, high school degree and math inclinations (a.k.a. "nerds"). Smartphones, o.t.o.h. are sold to billions of people.

The scale is just immense and is a completely different audience.

Re:Ask HN: Why don't smartphones encourage programming like ... by masklinn on Saturday April 15, 2023 @12:47PM (#35582263)
An other component is that computers in the 80s largely did not have the power to hide their workings from users. In fact the cheaper ones required basic knowledge of operations in order to just use otherwise they were glorified heaters.
Re:Ask HN: Why don't smartphones encourage programming like ... by zamnos on Saturday April 15, 2023 @09:20PM (#35586372)
The other thing about computers in the 80's is that Internet access back then was a rarity. So the question, as asked (and answered by most of the comments), includes an implicity purity test - that only on-device programming is "real" programming and that programming on the Internet "doesn't count" for some reason. Yet between glitch.com, jsfiddle, etc, there's a whole slew of accessible programming environments available. I can low-code up some Zapier zaps and a Stripe checkout page, which is enough to get an MVP if you've found your niche customers.

Yeah, it's a different world than on-device compilers on back in the 80's but we're not programming in the 80's any more either. Hell, Stack Overflow didn't come about until 2008. Try telling people you learned to program before Stack Overflow (and Google, for that matter).

Re:Ask HN: Why don't smartphones encourage programming like ... by DerekL on Sunday April 16, 2023 @03:14AM (#35587956)
But even then, most of the time computers were used to run programs written by others, such as spreadsheets, word processors, and games. (Though a spreadsheet can be thought of as a specialized type of program.)
Re:Ask HN: Why don't smartphones encourage programming like ... by amelius on Saturday April 15, 2023 @12:35PM (#35582160)
> The answer is obvious - most people don’t want to do this.

There are still millions of people who want to do this.

The question is more: why do phone companies actively discourage it?

Re:Ask HN: Why don't smartphones encourage programming like ... by paulryanrogers on Saturday April 15, 2023 @12:52PM (#35582309)
Because they're selling to the least common denominator, not to a niche of power users. With time the power will be more evenly distributed. But that will probably require new methods and tooling that haven't even been invented yet.
Re:Ask HN: Why don't smartphones encourage programming like ... by great_psy on Saturday April 15, 2023 @01:00PM (#35582386)
Have you played around with the shortcuts app on the iPhone ? It is pretty powerful for something that is highly constrained to a few select operations.

It’s not full out programming but it is a good entry way once you are done with scratch.

Re:Ask HN: Why don't smartphones encourage programming like ... by tdeck on Saturday April 15, 2023 @02:24PM (#35583191)
By "phone companies" you really mean Apple. You can do this easily in Android, there are even full-blown IDEs for various languages in the Play store. Google created App Inventor as an entry-level way of doing this. None of this seems to be particularly popular but it's an option.
Re:Ask HN: Why don't smartphones encourage programming like ... by kfir on Saturday April 15, 2023 @03:55PM (#35583993)
Are you familiar with swift playground? https://www.apple.com/swift/playgrounds/
Re:Ask HN: Why don't smartphones encourage programming like ... by tdeck on Saturday April 15, 2023 @07:10PM (#35585566)
I wasn't but this looks fun!
Re:Ask HN: Why don't smartphones encourage programming like ... by DerekL on Sunday April 16, 2023 @03:16AM (#35587962)
Re:Ask HN: Why don't smartphones encourage programming like ... by cellularmitosis on Saturday April 15, 2023 @10:59PM (#35586863)
What do you mean by actively discourage? There are many interpreter and REPL apps, there are swift playgrounds, etc, and there is nothing stopping you from submitting yet another programming app to the AppStore.
Re:Ask HN: Why don't smartphones encourage programming like ... by aswanson on Saturday April 15, 2023 @12:36PM (#35582168)
Facts. I like retro computing and have dozens of old processors I want to kit up and build tools for. But that's just me. To expect most people to want to do stuff like that would not make sense.
Re:Ask HN: Why don't smartphones encourage programming like ... by dehrmann on Saturday April 15, 2023 @12:50PM (#35582295)
I work in tech as a software engineer and I (mostly) don't want to do this. I want my phone to work out of the box.

The other thing I'd add is that even when I want to write a mobile app, doing it on the device itself would be a nightmare. Composing emails is already hard enough.

Re:Ask HN: Why don't smartphones encourage programming like ... by acomjean on Saturday April 15, 2023 @01:40PM (#35582739)
If I wanted to write a mobile app for an apple device I really can’t do a native one as I run Linux on my computers.

Yeah there’s flutter or react for app development. But it’s just different.

Samsung has a thing called “dex” that allows your smartphone to hook up to an external monitor, as does the steam deck. These machines are powerful enough to develop on, they’re just locked down enough

Re:Ask HN: Why don't smartphones encourage programming like ... by perryizgr8 on Saturday April 15, 2023 @11:32PM (#35587034)
You can run full blown VS code on Dex. It is quite slow on my S10, but this is a 4 year old phone now.
Re:Ask HN: Why don't smartphones encourage programming like ... by wruza on Saturday April 15, 2023 @01:09PM (#35582473)
I (mostly) don't want to do this. I want my phone to work out of the box.

Software working out of the box and programming aren’t mutually exclusive.

Re:Ask HN: Why don't smartphones encourage programming like ... by easrng on Saturday April 15, 2023 @02:16PM (#35583104)
ehh i do dev on my phone sometimes (Termux and sometimes in-browser editors) and it's an ok experience imo
Re:Ask HN: Why don't smartphones encourage programming like ... by dTal on Saturday April 15, 2023 @02:24PM (#35583193)
This kinda begs the question. Yeah, writing a smartphone app is already painful, and doing it that way on the device would be ridiculously more painful. Is that an inherent property of the form factor, or the result of systematically orienting the system towards consumption?

I say the latter. I used to program with great facility in BASIC on my calculator in high school. I was not even the only one who could do this. The input methods available were much less rich than what a smartphone can provide, not to mention the display. Now, in 2023, the easiest way to write simple programs on my phone is by emulating that calculator. Come on!

Re:Ask HN: Why don't smartphones encourage programming like ... by dehrmann on Saturday April 15, 2023 @06:35PM (#35585313)
I think you beat up your own strawman. True, development on the device is harder because of the form factor, but what truly makes it harder is devices are more complex, so everything else is more complex. It means more complicated API, frameworks, IDEs, etc.

To the original question, table stakes are an order of magnitude greater than when 80's computers booted to a Basic prompt.

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.

Re:Ask HN: Why don't smartphones encourage programming like ... by eimrine on Saturday April 15, 2023 @02:10PM (#35583044)
> As if creating can only happen in an IDE and not in ProCreate or iMovie.

Short answer is yes. Don't you see how much video environment sucks to text environment? You can not do science in ProCreate or iMovie.

Re:Ask HN: Why don't smartphones encourage programming like ... by KyeRussell on Saturday April 15, 2023 @07:36PM (#35585743)
Nobody that “does science” says “do science”. This just feels like you’re advocating for some nebulous form of “real work”. Check your priors.
Re:Ask HN: Why don't smartphones encourage programming like ... by eimrine on Sunday April 16, 2023 @12:41AM (#35587329)
The fact that smartphones encourage video creating and not encourage programming is the essence of the topic. Also smartphones discourage to have a "real talk" because of touchscreen is better to spam animated smiles instead of text. Also smartphones discourage to use a "real software" because they are shaped to be an environment for spyware. Also smartphones discourage to use a "real web-browser" because apps are just "more native" webpages without tabs, scale, ability to change fonts and all the nativeness is about to steal as much data as possible.

What can I do to stop the conception of "real work" to be nebulous?

Re:Ask HN: Why don't smartphones encourage programming like ... by shrimp_emoji on Sunday April 16, 2023 @09:33AM (#35589908)
The devices also inherently bar you from doing this even if you wanted.

Mobile text editors play ads before opening a new tab or loading a file.

They're devices for consoomer cattle. (To paraphrase Terry Davis.)

Re:Ask HN: Why don't smartphones encourage programming like ... by cudgy on Sunday April 16, 2023 @10:02AM (#35590119)
“you have to be living under a literal rock if you’ve missed the potential impact of LLMs”

Isn’t this statement condescending, which you criticize the article of doing?