Camen Design Forum


(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[4]: Why isn't JavaScript like BASIC?


I would need to do a lot of research first about BASIC and what makes JavaScript (and modern development environments) unfriendly.

I do believe that for immediacy of results, there is no better programming language than BASIC. On a BBC it takes two lines of text to draw a circle. Want to do that in Java? JavaScript? C? The pain is not only how many LOC it takes, the real burden is the amount of background knowledge that is needed just to piece together the blank canvas before you start.

Some of the things that a child shouldn't have to know up front to produce results are OOP, functions and scoping. Anybody have the faintest idea how to play a tune of notes in JavaScript using the new HTML5 sound API? Nope. It's about as intuitive and obvious as a tax form. Therefore there should be a global BASIC-like function something along the lines of `synth (["c#", "d", "e", "f#"]);`.

My aims would be to boil down enough complex functionality into a set of straightforward functions that a child can bash out a game in a couple of hundred lines without the need to build their own framework first :|

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn