Misplaced Pages

Blockly

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
JavaScript library
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Blockly" – news · newspapers · books · scholar · JSTOR (July 2019) (Learn how and when to remove this message)
This article contains promotional content. Please help improve it by removing promotional language and inappropriate external links, and by adding encyclopedic text written from a neutral point of view. (November 2024) (Learn how and when to remove this message)
(Learn how and when to remove this message)
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 releaseQ1 2022 Patch 3 / 8 June 2022; 2 years ago (2022-06-08)
Repositorygithub.com/google/blockly
Written inJavaScript
PlatformWeb browser
Size150 KB
Available in50 languages
List of languagesEnglish
TypeLibrary
LicenseApache License 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. It typically runs in a web browser, and visually resembles the language Scratch.

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 customized to generate code in any textual programming language.

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. 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. The editor can be modified easily to customize 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
  • MIT's App Inventor, to create applications for Android.
  • MIT's CoCo, visual collaborative programming website for education.
  • Code.org, to teach introductory programing to millions of students in their Hour of Code program
  • Microsoft's MakeCode, "a free online learn-to-code platform where anyone can build games, code devices, and mod Minecraft"
  • RoboBlockly, a web-based robot simulation environment for learning coding and math
  • PICAXE, to control their educational microchips
  • SAM Labs, in STEAM learn-to-code "education solutions"

Features

  • Web-based using Scalable Vector Graphics (SVG)
  • Completely client-side JavaScript
  • Support of major web browsers including: Chrome, Firefox, Safari, Opera, Edge
  • Support for many programmatic constructs including variables, functions, arrays
  • Minimal type checking supported, designed for dynamically typed languages
  • Easy to extend with custom blocks
  • Clean code generation
  • Step-by-step code execution for tracing and debugging code
  • Localised into 100+ languages
  • Support for left-to-right and right-to-left languages

References

  1. "Release Q1 2022 Patch 3 · google/Blockly". GitHub.
  2. Metz, Cade. "Google Blockly Lets You Hack With No Keyboard". Wired.
  3. "Google's Blockly Teaches You to Create Apps". NBC Bay Area. 13 June 2012.
  4. "Google Groups". Groups.google.com. Retrieved 16 January 2018.
  5. Black, Lucy (12 June 2012). "Google Blockly – A Graphical Language with a Difference". I-programmer. Retrieved 3 July 2019.
  6. "Scratch 3.0's new programming blocks, built on Blockly". Google.
  7. "MIT App Inventor 2". MIT.
  8. "Translate Code.org". Code.org.
  9. "Microsoft MakeCode". Microsoft.
  10. "Microsoft MakeCode Computer Science Education". Microsoft.
  11. "PICAXE Blockly". PICAXE. Retrieved 5 July 2020.
  12. "SAM Labs Blocks: Getting started on Workbench". edu.workbencheducation.com. Retrieved 2020-10-10.
  13. "Blockly Demo: Code". Blockly-demo.appspot.com. Retrieved 16 January 2018.
  14. "Blockly Demo: JS-Interpreter". Blockly Samples. Retrieved 24 February 2023.
  15. "Localisation statistics for the Blockly core module". Translatewiki.net. Retrieved 16 January 2018.
  16. "Blockly Demo: RTL". Blockly Samples. Retrieved 24 February 2023.

External links

Google free and open-source software
Software
Applications
Programming languages
Frameworks and
development tools
Operating systems
Related
Categories: