Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Blockly

From Wikipedia, the free encyclopedia
JavaScript library
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding 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 articlecontainspromotional content. Please helpimprove it by removingpromotional language and inappropriateexternal links, and by adding encyclopedic text written from aneutral point of view.(November 2024) (Learn how and when to remove this message)
(Learn how and when to remove this message)
Blockly
Original authorsNeil Fraser, Quynh Neutron,Ellen Spertus, Mark Friedman
DevelopersGoogle,MIT
Initial releaseMay 2012; 13 years ago (2012-05)
Stable release
12.1.0 / 30 May 2025; 5 months ago (2025-05-30)[1]
Repositorygithub.com/google/blockly
Written inJavaScript
PlatformWeb browser
Size150KB
Available in50 languages
List of languages
English
TypeLibrary
LicenseApache License 2.0
Websitedevelopers.google.com/blockly

Blockly is a client-sidelibrary for the programming languageJavaScript for creating block-basedvisual programming languages (VPLs) and editors. A project ofGoogle, it isfree and open-source software released under theApache License 2.0.[2] It typically runs in aweb browser, and visually resembles the languageScratch.

Blockly uses visual blocks that help simplify programming, and can generate code inJavaScript,Lua,Dart,Python, orPHP. It can also be customized to generate code in textualprogramming language.[3]

History

[edit]

Blockly development began in summer 2011. The first public release was in May 2012 atMaker Faire. Blockly was originally designed as a replacement forOpenBlocks inApp Inventor.[4] Neil Fraser began the project with Quynh Neutron,Ellen Spertus, and Mark Friedman as contributors.

In October 2025, theRaspberry Pi Foundation announced that from 10 November 2025, the Blockly open source library and assets, and key members of the Blockly team will transition from Google to the Raspberry Pi Foundation.[5]

User interface

[edit]
Example of Blockly code to convert fromFahrenheit toCelsius
Example of Blockly code with a while loop

The defaultgraphical 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 candrag and drop and rearrange blocks. The workspace also includes, by default, zoom icons, and a trashcan to delete blocks.[6] The editor can be modified easily to customize and limit the available editing features and blocks.

Customization

[edit]

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, theBlock Factory, which allows new blocks to be described using extant visual blocks; the intent is to make creating new blocks easier.

Applications

[edit]

Blockly is used in several notable projects, including:

  • MIT'sScratch (since version 3.0), visual programming environment for education[7]
  • MIT'sApp Inventor, to create applications for Android.[8]
  • MIT'sCoCo, visual collaborative programming website for education.
  • Code.org, to teach introductory programing to millions of students in their Hour of Code program[9]
  • Microsoft's MakeCode, "a free online learn-to-code platform where anyone can build games, code devices, and mod Minecraft"[10][11]
  • RoboBlockly, a web-based robot simulation environment for learning coding and math
  • PICAXE, to control their educational microchips[12]

Features

[edit]

References

[edit]
  1. ^"Release blockly-v12.1.0 · google/blockly".GitHub. Retrieved27 June 2025.
  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. Retrieved16 January 2018.
  5. ^CBE, Philip Colligan (2025-10-28)."The new home for Blockly".Raspberry Pi Foundation. Retrieved2025-10-28.
  6. ^Black, Lucy (12 June 2012)."Google Blockly – A Graphical Language with a Difference".I-programmer. Retrieved3 July 2019.
  7. ^"Scratch 3.0's new programming blocks, built on Blockly".Google.
  8. ^"MIT App Inventor 2".MIT.
  9. ^"Translate Code.org".Code.org.
  10. ^"Microsoft MakeCode".Microsoft.
  11. ^"Microsoft MakeCode Computer Science Education".Microsoft.
  12. ^"PICAXE Blockly".PICAXE. Retrieved5 July 2020.
  13. ^"Blockly Demo: JS-Interpreter".Blockly Samples. Retrieved24 February 2023.
  14. ^"Localisation statistics for the Blockly core module".Translatewiki.net. Retrieved16 January 2018.
  15. ^"Blockly Demo: RTL".Blockly Samples. Retrieved24 February 2023.

External links

[edit]
Wikimedia Commons has media related toBlockly.
Google free and open-source software
Software
Applications
Programming languages
Frameworks and
development tools
Operating systems
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Blockly&oldid=1320253677"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp