Re:MIT App Inventor
by exDM69 on Wednesday March 21, 2012 @05:43AM
(#3733691)
I like the ideas behind the app inventor programming language. It has a lisp-ey look and feel to it. The language is made out of blocks that look like puzzle pieces. The shape of the piece stands for it's syntactic meaning, there's a distinct shape for expressions and statements. The color of the piece is it's type, e.g. red for boolean.
So an "if" statement is a statement piece that has places to plug in a boolean (red) expression piece and two statement pieces. That's structure and interpretation of programming languages for you.
The weakness of the language is the difficulty of representing recursion. I think there was another MIT project that did this well, their program representation was a visual graph where recursion was represented as back edges. This is similar to how the Haskell compiler stores programs internally as graphs. An interesting feature of the visual graph programming language was that all variable and function names are optional (but useful) comments.
I feel that researching and experimenting with non-text representations of computer programs is worth the effort.
Re:MIT App Inventor
by wladimir on Wednesday March 21, 2012 @06:42AM
(#3733783)
An interesting feature of the visual graph programming language was that all variable and function names are optional (but useful) comments
Do you perhaps remember the name of the project? This is mightily interesting. I've thought about this many times, that if you represent a program as a graph (instead of a tree) you don't really need 'names' or 'symbols' as such (except to make it understandable to humans), just connections. This allows for a cleaner separation of syntax and semantics, and would make it easier to manipulate programs without having to type.
Re:MIT App Inventor
by andyjohnson0 on Wednesday March 21, 2012 @10:04AM
(#3734423)
My seven-year-old son has recently been getting his first experience of programming using the Lego Mindstorms visual programming environment [1]. It uses a similar 'jigsaw puzzle' representation, and he just found it instantly intuitive. It has similar limitations to App Inventor, but I don't see support for recursion as being too important for this type of programming.
Re:MIT App Inventor
by exDM69 on Wednesday March 21, 2012 @03:54PM
(#3736275)
>> but I don't see support for recursion as being too important for this type of programming.
That is a fair point, recursion is not directly used very often in conventional programming. However, to me, recursion is the missing link that makes a language a programming language (Turing complete).
There is still work to do to find a better structured representation for computer programs than a string of characters is.
PS. I think your son is old enough and motivated enough to get an Arduino or a Python book and start learning ;) That's about the age I started programming after seeing my dad stare at a blue text-filled screen all night trying to make ends meet as a freelancer.
Re:MIT App Inventor
by andyjohnson0 on Thursday March 22, 2012 @08:48AM
(#3739440)
For the time being I'd like to keep the programming he does related to something physical - like the lego robot you program using the mindstorms environment. At his age I think he could become bored with just shuffling bits or putting text onto a screen, and anything sophisticated enough to impress him and hold his interest (probably graphical) might be to complex. Also the challenge of physically building a controllable robot is a nice contrast to the abstract programming task.
I'd like to try him with Scratch (http://scratch.mit.edu/) before moving on to text-based programming (if he wants to). Python is a good idea: we could learn it together...
I do have a netduino, and he's seem me working on that, but C# requires a lot of up-front knowledge. Arduino and wiring might be in his range.
He's a bright kid and I've learned a lot just by seeing how he conceptualizes these ideas.
Re:MIT App Inventor
by andyjohnson0 on Thursday March 22, 2012 @08:49AM
(#3739447)
Thanks! I didn't know about that. Unfortunately we are using the older RCX mindstorms system, and the app inventor components only seem to work for the newer NXT system.
Re:MIT App Inventor
by bigiain on Wednesday March 21, 2012 @02:23AM
(#3733351)
Ahhh, "4th generation languages" come to mobile apps.
I'm _so_ glad all those "idea types" and "business cofounders" won't need my advice or services anymore, 'cause now they can make their own apps without needing any of us annoying technical types telling them "actually, you can't do that"…
Re:MIT App Inventor
by kennywinker on Tuesday March 20, 2012 @11:55PM
(#3733025)
This looks like google app inventor reborn, yeah?
Seems like a noble goal, but not implemented in a satisfying way. I'd like to see an example of something decent created with these tools.
I would definitely be more interested in this kind of thing if it ran on-device, as well. Like AIDE (which is awesome, btw).
Re:MIT App Inventor
by seanmcdirmid on Wednesday March 21, 2012 @01:05AM
(#3733216)
Many of us are working on touch-based programming on tablets, I think there will be many interesting tablet-based programming environments coming on line this year.
One of the problems I have with AppInventor is that it feels like procedures (in a hidden event loop) are not the right abstraction for the high-level programming model that they are aiming for.
Re:MIT App Inventor
by nextparadigms on Wednesday March 21, 2012 @12:04AM
(#3733058)
Will they allow apps made with App Inventor to be published on the Play Store this time? Because I think when Google owned it they said they won't accept apps made with it on the market.
I think the confusion was that the AppInventor FAQ said you couldn't do it - but only because they didn't provide an out-of-the-box way to do it. That's quite different from banning it (which is what the OP implied).
So an "if" statement is a statement piece that has places to plug in a boolean (red) expression piece and two statement pieces. That's structure and interpretation of programming languages for you.
The weakness of the language is the difficulty of representing recursion. I think there was another MIT project that did this well, their program representation was a visual graph where recursion was represented as back edges. This is similar to how the Haskell compiler stores programs internally as graphs. An interesting feature of the visual graph programming language was that all variable and function names are optional (but useful) comments.
I feel that researching and experimenting with non-text representations of computer programs is worth the effort.
Do you perhaps remember the name of the project? This is mightily interesting. I've thought about this many times, that if you represent a program as a graph (instead of a tree) you don't really need 'names' or 'symbols' as such (except to make it understandable to humans), just connections. This allows for a cleaner separation of syntax and semantics, and would make it easier to manipulate programs without having to type.
[1] Example: http://www.techno-stuff.com/AirPressure.htm
That is a fair point, recursion is not directly used very often in conventional programming. However, to me, recursion is the missing link that makes a language a programming language (Turing complete).
There is still work to do to find a better structured representation for computer programs than a string of characters is.
PS. I think your son is old enough and motivated enough to get an Arduino or a Python book and start learning ;) That's about the age I started programming after seeing my dad stare at a blue text-filled screen all night trying to make ends meet as a freelancer.
I'd like to try him with Scratch (http://scratch.mit.edu/) before moving on to text-based programming (if he wants to). Python is a good idea: we could learn it together...
I do have a netduino, and he's seem me working on that, but C# requires a lot of up-front knowledge. Arduino and wiring might be in his range.
He's a bright kid and I've learned a lot just by seeing how he conceptualizes these ideas.
I'm _so_ glad all those "idea types" and "business cofounders" won't need my advice or services anymore, 'cause now they can make their own apps without needing any of us annoying technical types telling them "actually, you can't do that"…
(Who wants to port RAMIS to iOS?)
I would definitely be more interested in this kind of thing if it ran on-device, as well. Like AIDE (which is awesome, btw).
One of the problems I have with AppInventor is that it feels like procedures (in a hidden event loop) are not the right abstraction for the high-level programming model that they are aiming for.
That's not true at all. I'm not aware of anyone who actually did publish anything, but Google didn't stop you doing it.
Here's another example: http://www.crucialthought.com/2011/05/15/publishing-an-app-i...
I think the confusion was that the AppInventor FAQ said you couldn't do it - but only because they didn't provide an out-of-the-box way to do it. That's quite different from banning it (which is what the OP implied).
Edit: and here is a thread about doing it with the MIT hosted version: https://groups.google.com/forum/embed/?fragments=true#!topic...