Snap! (programming language)
|Paradigm(s)||object-oriented, educational, event-driven|
|Designed by||Brian Harvey and Jens Mönig|
|Stable release||3.1.1 / May 19, 2011|
Snap! is a free, browser-based educational programming language blocks-based graphical programming language that allows students to create interactive stories, animations, games, and more, while learning about mathematical and computational ideas. Snap! was inspired by Scratch, but also targets both novice and more advanced students by including and expanding Scratch's features.
Snap! 4.0 is entirely browser-based with no software that needs to be installed on the local device.
Snap! 4.0 and its predecessor BYOB were developed by Jens Mönig for Windows, Mac OS X or Linux, with design ideas and documentation provided by Brian Harvey from University of California, Berkeley and have been used to teach "The Beauty and Joy of Computing" introductory course in CS for non-CS-major students.
Earlier, desktop-based 3.x version's open-source code is available under a license that allows modifications for non-commercial uses and can be downloaded from the UC Berkeley website or CNET Download.com and CNET TechTracker's download page. The source code is AGPL licensed and is available for download within Snap! itself and on Github.
The screen areas are arranged in the way they used to be in Scratch prior to the version 2.0, with the blocks palette in the left area, the scripts area associated with a selected sprite in the middle of the screen, and the stage area with sprites thumbnails listed below it in the right area of the screen.
The "stage area" is featuring the results (i.e. animations, turtle graphics etc, everything either in small or normal size, full-screen also available). Bellow it are listed all available sprites' thumbnails.
With a sprite thumbnail selected, blocks of commands can be applied to it by dragging them from the Blocks Palette onto the middle area of the screen, containing all the scripts associated with the selected sprite. Available blocks are listed and categorized as the Motion, Looks, Sound, Pen, Control, Sensing, Operators, and Variables blocks as shown in the table below. Each can also be individually tested under different conditions and parameters via double-click.
|Motion||Moves sprites and
|Control||If statements, events, and
costumes, and output
|Sensing||All sprite hit detection
and user input
|Sound||Plays audio files and
programmable sequenced audio
|Variables||Variables and lists, including lists of lists|
Besides Script tab, there are two additional tabs, the Costumes tab and the Sounds tab. An expandable bar at the right is Help area.
The most important features which differentiate it from Scratch, include:
- first class functions or procedures (their mathematical foundations are called also "Lambda calculus"),
- first class lists (including lists of lists),
- first class sprites (in other words prototype-oriented instance-based classless programming),
- nestable sprites
- for versions before 4.0
- While Scratch 2.0, because it is written in Flash, only works on the latter three.
- Jens Mönig user contributions page
- Mönig's blog post announcing BYOB as bringing protypal inheritance to Scratch
- Brian Harvey user contributions page
- Brian Harvey's homepage
- The Beauty and Joy of Computing course homepage
- Snap! download page http://snap.berkeley.edu/ at UC Berkeley website
- CNET Download.com and CNET TechTracker's BYOB for Mac download page
- CNET Download.com and CNET TechTracker's BYOB for Windows download page
- Github Snap! page