Sponsored Links
-->

Friday, March 16, 2018

Wonder Workshop | Blockly
src: d2eawk67eat224.cloudfront.net

Blockly is a client-side JavaScript library for creating visual block programming languages and editors. It is a project of Google and is open-source under the Apache 2.0 License. It typically runs in a web browser, and visually resembles Scratch. Blockly is also being implemented for Android and iOS; not all web browser based features are available for Android/iOS.

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


Video Blockly



History

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


Maps Blockly



User interface

The default user interface of the Blockly editor consists of a toolbox, which holds available blocks, and a workspace, where the user can drag (from the toolbox) and rearrange blocks. The workspace also includes, by default, zoom icons and a trashcan for deleting blocks. Note that the editor can be customised by visual language developers to customise the editing features available, as well as limiting which blocks are available.


Blockly Games : Pond - The BEST version - YouTube
src: i.ytimg.com


Customization

Blockly includes a set of visual blocks for common operations, but 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 existing visual blocks; the intention is to make creating new blocks easier.


Windows 10 IoT Core Blockly - Windows Developer BlogWindows ...
src: winblogs.azureedge.net


Applications

Blockly is used in a number of notable projects, including:

  • MIT's App Inventor, to create applications for Android.
  • Blockly Games, a set of educational games that teach programming concepts such as loops and conditionals.
  • Code.org, to teach introductory programing to millions of students in their Hour of Code program.
  • Rapid Router from Code For Life, to teach programming concepts to Primary Schools pupils.
  • RoboBlockly, a web-based robot simulation environment for learning coding and math.
  • Verge3D leverages Blockly as a scripting environment for WebGL applications (dubbed Puzzles).
  • Wonder Workshop, to control their Dot and Dash educational robots.

Coding with Blocks in Google Blockly - YouTube
src: i.ytimg.com


Features

  • Web based using SVG, no Flash
  • Completely client side JavaScript
  • Support of major web browsers including: Chrome, Firefox, Safari, Opera, IE
  • Mobile support on Android and iOS
  • Support for many programmatic constructs including variables, functions, arrays
  • Minimal type checking supported, designed for weakly typed languages
  • Easy to extend with custom blocks. Use the block factory to make Blockly blocks with Blockly
  • Clean code generation
  • Step-by-step code execution for tracing and debugging code
  • Localised into 50+ languages
  • Support for left-to-right and right-to-left languages

blockly code | Dot & Dash | Pinterest
src: i.pinimg.com


References


Solución laberinto (maze) de Blockly Games - YouTube
src: i.ytimg.com


External links

  • Official website

Source of article : Wikipedia