Skip to content

Show HN: Programming is easier than you think

easylang.dev
2 pointschkas20 comments
On HN

Comments

Cute!

"A little game - number guessing" fails to process input on latest Android Chrome.

chkasOP

Are you sure? On a mobile device, it's easy to overlook pressing the enter key. Unfortunately, I can't do it much differently because, as far as I know, you can't reliably detect when the on-screen keyboard is closed.

I don't get an Enter key. I get Next which scrolls to next section.

chkasOP

Thank you very much for this feedback. On the desktop and under IOS there is the Enter key, on Android there is really only this Next key - weird. I'll have to sort it out.

Update: Now there should be an Enter key instead of the Next key.

I still get Next.

chkasOP

I suspect that the browser still has the old page saved in the cache. Can you please check this again? The browser should load the current version with this link.

https://easylang.dev/apps/tut_learn.html?v2

No change.

So I deleted site cookies and data. No change.

So I emptied browser cache and retried. Now the button label is Done and press works as expected.

chkasOP

Thank you for your time and effort. The browser cache can really drive one nuts. I assumed that the URL parameter would force a new request.

Perhaps the page Expires is worth checking.

chkasOP

That was stupid of me - I should have also added a URL parameter to the embedded pages.

In Piano, quavers are written as crotchets.

chkasOP

Thanks, you're great. I wouldn't have noticed that in a hundred years.

Question: why is rect not centered on pen, as is circle?

chkasOP

Because it has a width and height.

So does circle shape. Yet it is centred on both, whereas rect shape is centred on neither.

chkasOP

I think it's more intuitive this way. When you draw a rectangle, you start with a corner point and then draw the width and height. With a circle, you go to the center and then draw it with a radius.

I think that's true only if one uses a compasses for circle. And that circle does not start with pen at centre. In easylang, it does.

In my opinion, the easylang positioning shoud not be based on any off-computer drawing process specific to the shape type, but on the result, consistently for all shape types. Only this meets e.g. the expectation that change to shape type retains position.

I wish your project every success.

Suggestion: option to auto-Run upon 1s past each edit.

chkasOP

You can start the program also with Ctrl+R or with Shift+Enter.

Yup. That is what I'd prefer to avoid.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.