Jump to content

Blockly

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Benchun (talk | contribs) at 22:20, 30 November 2014 (copyedit). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Blockly is a client-side JavaScript toolkit for creating visual block programming editors. It was written by Neil Fraser for Google and is open-source under the Apache 2.0 License. [1] It runs in a web browser, and resembles Scratch.

Blockly uses blocks that link together to make code generation easier, and can generate Javascript, Python or Dart code as standard, but can be customised to generate any computer language. [2]

History

Blockly development started in 2011 and was originally designed to replace OpenBlocks in App Inventor. OpenBlocks was built for StarLogo TNG.[3]

User Interface

The user interface of a Blockly program consists of a toolbar, which holds all the available blocks and a workspace, where you place the blocks. There is a trashcan on the workspace which deletes any blocks dragged onto it. [4]

Customising Blockly

Blockly comes with a basic set of blocks for common instructions, but can be customized by adding more blocks. New blocks require a block definition and a generator. The definition tells Blockly how the block should look and the generator tells it how to make it's output code. There is an example program called Block Factory which makes writing the block definition easier by using Blockly blocks to construct a new block.

Blockly Games

Blockly has been used to build Blockly Games, a set of educational games that teach programming concepts such as loops and conditionals.[5][6]

Features

References

  1. ^ "Google Blockly Lets You Hack With No Keyboard". WIRED.
  2. ^ "Google's Blockly Teaches You to Create Apps". NBC Bay Area.
  3. ^ "Google Groups".
  4. ^ "Google Blockly - A Graphical Language with a Difference". i-programmer.
  5. ^ "Google Introduces Kids to Coding Through Blockly Games Project".
  6. ^ "Blockly: Maze Archives - BrainPOP Educators".
  7. ^ "Blockly Demo:".
  8. ^ "Blockly Demo: JS Interpreter".
  9. ^ "Blockly Demo:".
  10. ^ "Blockly Demo: RTL".


"Official website"