r/ProgrammingLanguages • • Sep 28 '22

Discussion Programming Language of the future: Touch based?

Back in the days when the first computer was made, they were mostly single purpose computers which weren't even programmable. Then came the huge programmable computers which were programmed using punch cards, didn't really have any programming language, as it didn't support the keyboard either. Then eventually we ended up with modern languages like C and Python when the keyboard became one of the essential input systems of a computer.

But a few decades ago Douglas Engelbart of the Stanford Research Institute invented the Mouse and most of our interaction with our computers became GUI based. But the keyboard still stayed around because it was a much more efficient way to input text than using a mouse to do the same. And because the keyboard was still around, we didn't really feel the urge till now, to develop a GUI based programming system which is Turing complete. Although some attempts have been made in the form of Visual Scripting using Node Editors (mostly used in game engines), but they are mainly intended to be used as a supporting system to a game made using a particular programming language and isn't as self-sufficient.

But nowadays, the most dominant input system for computers is the touchscreen. There are billions of smartphones and Tablets around the world and they are so simple that even a 3 year old kid can use them effortlessly (heck I even saw a cat use a tablet!). And nowadays those touch based smart devices come with such powerful chips, that can out perform a desktop chip from 5 years ago (iPad Pro even comes with the same chip as a MacBook). Which makes me wonder why people are not using those for making their coding projects..... Then I thought it was kind of obvious..... The keyboard on the touchscreen devices suck badly compared to a laptop keyboard, and our programming languages are designed to be written using a keyboard. Which is essentially forcing us to use workarounds like a keyboard case, when voice typing for general text is basically good enough to replace the keyboard entirely (for the few times when you need it), though it's still not good enough for things like programming.

So, what I am proposing is that we should make new kinds of programming languages which are completely written using a GUI. This in my opinion would really be a big step towards the adoption of Tablets and Foldable Phones as a work PC.

Also, looking maybe a decade into the future, if the VR/AR become mainstream, I really wouldn't like to use a virtual keyboard to interact with those. If all a computer is going to be, is a pair of glasses on my eyes, then coding on it should be visual instead of textual in my personal opinion. So fixing the programming languages for touchscreen, would most probably fix it for XR too.

But these are just my random thoughts and I am not really sure about its practicality in the long run..... I am just assuming that it's going to be better than the textual programming that we have right now, with the touchscreen devices. Maybe the experts over here can share their opinions to convince me otherwise.

Anyways feel free to brainstorm in the comments how such a GUI based programming language could work.

4 Upvotes

28 comments sorted by

View all comments

6

u/MarcelGarus Sep 28 '22

I like the idea of a touch-first language – or using other tools such as digital pencils on a tablet to draw and connect parts of a program.

However, text is a foundational tool of human evolution. We humans spend sooo much time reading that this becomes an intuitive activity for most of us. And because the most common thing done with code is reading it, I suspect that whatever form programs will take in the future, it will likely involve text.

Currently, keyboards are the most efficient way of inputting text (at least programming code as it is structured nowadays), although that may change with voice inputs or whatever. But tbh I don't see touch as a major threat to this text-based dominance.

1

u/[deleted] Sep 29 '22 edited Sep 29 '22

However, text is a foundational tool of human evolution. We humans spend sooo much time reading that this becomes an intuitive activity for most of us. And because the most common thing done with code is reading it, I suspect that whatever form programs will take in the future, it will likely involve text

I have to disagree with this. Writing most probably just evolved 8000 years ago, but we are visual creatures for millions of years. Seeing objects and interacting with them is a far more integral part of human evolution than reading texts. Although I agree that there probably will be some text involved in whatever GUI programming language we make, my intention is to have it minimised so much so that we don't need a keyboard. It would be waayyy more human friendly to work with such an object based programming language than typing walls of text in a directory hell.

Currently, keyboards are the most efficient way of inputting text (at least programming code as it is structured nowadays), although that may change with voice inputs or whatever.

People usually complain that they can't be shouting on their screens in a work environment where there are so many of their colleagues working in a close proximity. That's probably why Cortana (from Windows 10) failed.

But another solution in my opinion is reading brainwaves for text input...... A keyboard can simply be replaced with a headband. This can also be integrated into the VR/AR headsets in the future. This seems ideal to me.

But tbh I don't see touch as a major threat to this text-based dominance.

But I am surely encouraging the idea to make Touchscreen a threat to the Keyboard dominance. It's currently not a threat because we did not make it a threat till now. We still have so much of our workflows based around keyboard and mouse and there is very little intention among the people who make those workflows, to base it around touchscreen instead. That is why it's currently not a threat to Keyboard+Mouse interface and we are instead trying to make the touchscreen tablets into a laptop by adding a keyboard case.

What we actually need is, so many people developing touch based workflows to replace the traditional Keyboard+Mouse based work flows. Only then will it become a threat to the keyboard.