by bootload · 9y ago · 0 comments
Nice - https://developers.google.com/blockly/ no real fan of google, but the tools and code churned out by individuals there is pretty interesting. This I will play with.
You are right.
It looks horrible and cluttered and could be made better. Though visuals and design aside, the idea is sound. There is a real barrier b/w textual/visual in software. You don't see this in other physical disciplines like EE.
It would be interesting to have a better (easier to read, standardised etc.) version of these flow charts. Not impossible and possibly easier to trace, explain and see alternatives/improvements in design.
I'm not so sure "it could be made better".
That's not to say I think it's a lost cause: I think it works great for short, 5-10 line programs. Once programs grow larger it becomes very hard to reason with, like with most VPLs.
[0] https://scratch.mit.edu/ [1] https://code.org [2] https://www.gethopscotch.com/ [3] https://www.tynker.com/ [4] http://stencyl.com/
From the about page: One of the limitations of Scratch as a language for computer science education is that its lists are not first class, so you can’t have a list of lists. Making lists first class is enough of an extension to Scratch to allow the creation of any other data structures (trees, heaps, hash tables, dictionaries, and so on) in user-defined Snap! code, implemented as lists of lists. via https://snap.berkeley.edu/about.html
Take even the smallest snippet:
while (Count <= 3) {
To you or me, this is pretty obvious. I've had kids ask me questions I'd never have thought of because I know this stuff already:
* What do the parentheses mean? * What is Count, is it a Javascript thing? * Is Count being set to 3? (<= looks like an arrow, not necessarily less than or equal to) * What is that squiggle? (meaning the '{') * Is this a program?
I'm with you, the Blockly stuff is hardly legible to me. But to kids learning this for the first time, I can tell you from first hand experience the color/shape/block aspect makes a huge difference.
A simple for-loop can be complicated.
First, they need to understand that a for-loop instantiates a variable (i). Then they need to understand that the next step is a limit: i < something. And then they need to understand that i++ means increment i every time that the below code is run.
Nevermind that it makes more sense to go: i = 0, i = I + 1, i < something, that's how it works.
Of course if they don't get that, they may not be cut out for programming. But its far from intuitive.