Jump to content

Blockly

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 88.10.103.48 (talk) at 13:14, 3 February 2021 (Applications: I added another application in which Blockly is being used worldwide.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Blockly
Original author(s)Neil Fraser, Quynh Neutron, Ellen Spertus, Mark Friedman
Developer(s)Google, MIT
Initial releaseMay 2012; 12 years ago (2012-05)
Stable release
1.20190215.0 / 15 February 2019; 5 years ago (2019-02-15)
Preview release
1.20190419.0 / 19 April 2019; 5 years ago (2019-04-19)
Repositorygithub.com/google/blockly
Written inJavaScript
Operating systemAndroid, iOS
PlatformWeb browser
Size150 KB
Available in50 languages
List of languages
English
TypeLibrary
LicenseApache 2.0
Websitedevelopers.google.com/blockly

Blockly is a client-side library for the programming language JavaScript for creating block-based visual programming languages (VPLs) and editors. A project of Google, it is free and open-source software released under the Apache License 2.0.[1] It typically runs in a web browser, and visually resembles the language Scratch. It is also being implemented for the mobile operating systems Android and iOS, though not all of its browser-based features will be available on those platforms.

Blockly uses visual blocks that link together to make writing code easier, and can generate code in JavaScript, Lua, Dart, Python, or PHP. It can also be customised to generate code in any textual programming language.[2]

History

Blockly development began in summer 2011. The first public release was in May 2012 at Maker Faire. Blockly was originally designed as a replacement for OpenBlocks in App Inventor.[3] Neil Fraser began the project with Quynh Neutron, Ellen Spertus, and Mark Friedman as contributors.

User interface

The default graphical user interface (GUI) of the Blockly editor consists of a toolbox, which holds available blocks, and where a user can select blocks, and a workspace, where a user can drag and drop and rearrange blocks. The workspace also includes, by default, zoom icons, and a trashcan to delete blocks.[4] The editor can be modified easily to customise and limit the available editing features and blocks.

Customization

Blockly includes a set of visual blocks for common operations, and can be customized by adding more blocks. New blocks require a block definition and a generator. The definition describes the block's appearance (user interface) and the generator describes the block's translation to executable code. Definitions and generators can be written in JavaScript, or using a visual set of blocks, the Block Factory, which allows new blocks to be described using extant visual blocks; the intent is to make creating new blocks easier.

Applications

Blockly is used in several notable projects, including:

  • MIT's Scratch, visual programming environment for education[5]
  • MIT's App Inventor, to create applications for Android[6]
  • Blockly Games, a set of educational games that teach programming concepts such as loops and conditionals[7][8]
  • Code.org, to teach introductory programing to millions of students in their Hour of Code program[9]
  • RoboBlockly, a web-based robot simulation environment for learning coding and math
  • Wonder Workshop, to control their Dot and Dash educational robots[10]
  • KodeKLIX, to control their snap-together electronic components[11]
  • PICAXE, to control their educational microchips[12]
  • SAM Labs, in STEAM learn-to-code education solutions[13]
  • CoderZ, an online learning environment to teach students how to program robots; and the main sponsor of the competition CoderZ League.

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". Groups.google.com. Retrieved 16 January 2018.
  4. ^ Black, Lucy (12 June 2012). "Google Blockly – A Graphical Language with a Difference". I-programmer. Retrieved 3 July 2019.
  5. ^ "Scratch 3.0's new programming blocks, built on Blockly". Google.
  6. ^ "MIT App Inventor 2". MIT.
  7. ^ "Google Introduces Kids to Coding Through Blockly Games Project". EWeek.
  8. ^ "Blockly: Maze Archives – BrainPOP Educators". BrainPop.
  9. ^ "Translate Code.org". Code.org.
  10. ^ "Wonder Workshop Blockly". Wonder Workshop. Retrieved 3 July 2019.
  11. ^ "KodeKLIX STEM Kit Coding Interface". KodeKLIX. Retrieved 5 July 2020.
  12. ^ "PICAXE Blockly". PICAXE. Retrieved 5 July 2020.
  13. ^ "SAM Labs Blocks: Getting started on Workbench". edu.workbencheducation.com. Retrieved 2020-10-10.
  14. ^ "Blockly Demo". Blockly-demo.appspot.com. Retrieved 16 January 2018.
  15. ^ "Blockly Demo: JS Interpreter". Blockly-demo.appspot.com. Retrieved 16 January 2018.
  16. ^ "Localisation statistics for the Blockly core module". Translatewiki.net. Retrieved 16 January 2018.
  17. ^ "Blockly Demo: RTL". Blockly-demo.appspot.com. Retrieved 16 January 2018.