JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
585 stars 73 forks source link

Humble enhancement suggestions for the oK Mobile app #91

Closed tommythorn closed 2 years ago

tommythorn commented 3 years ago

First off, this is a brilliant idea, thanks for sharing.

I used the J iOS App (no longer available/working) and it wasn't as useful as a calculator because the iOS keyboard is not ideal. However, using it I immediately missed some of the things that makes Free42 so great: haptic feedback and space between keys (which makes mistyping less likely).

Also, I'm not actually skilled enough in Apl/J/K so a one-button access to a quick overview of the keys would make this a nice learning tool.

JohnEarnest commented 3 years ago

Haptic feedback is tricky in a webapp; as far as I'm aware, there's no portable API for it. I'm really not interested in rewriting this as a native application, since it would cost me money to get an iOS developer license even if I distributed it for free, and I'd have to jump through extra hoops to support other platforms and fight bit-rot.

I'm open to concrete ideas for increasing space between keys, but it's a tough series of tradeoffs. The current layout works for me on my 4" iPhone SE, which is rather small compared to most phones today. If you happen to be using an iPad or the like, you might have better results simply using oK's normal web repl. oK mobile will also try to switch between "QWERTY mode" and "calculator mode" keyboards based on the orientation of your device; perhaps the horizontal version is more pleasant for you to type on?

Having access to a reference card seems like a reasonable enhancement.

tommythorn commented 3 years ago

... apparently Apple's Safari doesn't implement the vibration support :( according to https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate, sigh

EDIT: apparently we raced :) Didn't see your update until replying.

JohnEarnest commented 3 years ago

Yeah, it's a bummer. :(