this post was submitted on 23 Aug 2023
74 points (95.1% liked)

Programming

17048 readers
806 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

The title would probably be confusing, but I could not make it better than this. I noticed that most programming languages are limited to the alphanumerical set along with the special characters present in a general keyboard. I wondered if this posed a barrier for developers on what characters they were limited to program in, or if it was intentional from the start that these keys would be the most optimal characters for a program to be coded in by a human and was later adopted as a standard for every user. Basically, are the modern keyboards built around programming languages or are programming languages built around these keyboards?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (2 children)

An example (that you can't type) is: yā<ã.Δ¹sŸèOQ

I think the only thing here you can’t type is the superscript. The rest is easily typeable, at least on a Mac or a smartphone.

[–] [email protected] 1 points 1 year ago (1 children)

@snowe @themoonisacheese I can type ¹ on a smartphone pretty easily

[–] [email protected] 2 points 1 year ago (1 children)

Are you typing the character or using markdown to accomplish that?

[–] [email protected] 2 points 1 year ago (1 children)

@snowe Typing the character. With GBoard it's switch to numbers+symbols then press and hold a number (in this case 1) to access fractions and superscripts.

[–] [email protected] 1 points 1 year ago (1 children)

Hmm Gboard on iphone doesn't do that. Strange. I can hold plenty of other letters and numbers (like 0 to get °), but not 1-9.

[–] [email protected] 1 points 1 year ago (3 children)

@snowe not sure if this image attachment is going to federate correctly from Mastodon to Lemmy

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

Woah that’s cool. Wonder why it’s not on iOS. It’s clearly not a limitation, so I’m just guessing google doesn’t want to.

[–] [email protected] 2 points 1 year ago (1 children)

@snowe a very common reason with Google products, I've found; up to and including not wanting to provide that product anymore.

[–] [email protected] 1 points 1 year ago

😂 yeah, that's why I've been trying to stop using google entirely, it's just asking to lose data or lose a workflow you use, or whatever. I got sick and tired of it.

[–] [email protected] 1 points 1 year ago (1 children)

It did not. Cool to see federation between mastodon and lemmy though!

[–] [email protected] 1 points 1 year ago

@snowe It's got its quirks. For example, if I am replying to someone who's not on programming.dev then I have to make sure to tag @programming (or another account on the instance) in order for my post to still federate to your server, otherwise only the person I'm replying to would see my reply and it wouldn't show in comments.

I did discover that adding the tag as a trailing reply to a missing comment thread will cause the entire reply chain to federate, so that's neat.

[–] [email protected] 1 points 1 year ago (1 children)

Well, soft keyboards thend to do that yeah. But nobody is using a smartphone to program.

The point is that nobody is good enough at 05AB1E to type it by hand, everyone just has an idea of what they're trying to accomplish and copy-pastes commands from the documentation.

[–] [email protected] 2 points 1 year ago

I wasn’t talking just touchscreen keyboards. On Mac you just hold option and you can type almost all of those letters. I do understand your point though. Thanks for explaining