Recent from talks
Nothing was collected or created yet.
Scratch (programming language)
View on Wikipedia
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)
|
| Scratch | |
|---|---|
Logo used since 16 October 2015 | |
Scratch 3.0 editor | |
| Paradigm | Event-driven, block-based programming language |
| Developer | Scratch Foundation |
| First appeared | |
| Stable release |
|
| Implementation language | Squeak (Scratch 1.x) ActionScript (Scratch 2.0)[3] HTML5, JavaScript (Scratch 3.0)[3][4] |
| OS | Microsoft Windows, macOS, Linux (via renderer), HTML5 (via web browser), iOS, iPadOS, and Android. |
| License | GNU Affero General Public License (Scratch 3.0)[5]
|
| Filename extensions | .sb, .sprite (Scratch 1.x) .sb2, .sprite2 (Scratch 2.0) .sb3, .sprite3 (Scratch 3.0) |
| Website | scratch |
| Influenced by | |
| Logo, Smalltalk, HyperCard, StarLogo, AgentSheets, AgentCubes, Etoys, Snap! | |
| Influenced | |
| Catrobat,[6] ScratchJr,[7] Snap!,[8] mBlock, Turtlestitch | |
Scratch is a high-level, block-based visual programming language and website aimed primarily at children as an educational tool, with a target audience of ages 8 to 16.[9][10] Users can create projects on the website using a block-like interface. Scratch was conceived and designed through collaborative National Science Foundation grants awarded to Mitchel Resnick and Yasmin Kafai.[11]
Scratch is developed by the MIT Media Lab and has been translated into 70+ languages, being used in most parts of the world. Scratch is taught and used in after-school centers, schools, and colleges, as well as other public knowledge institutions. As of 15 February 2023, community statistics on the language's official website show more than 123 million projects shared by over 103 million users, and more than 95 million monthly website visits.[12] Overall, more than 1.15 billion projects have been created in total, with the site reaching its one billionth project on April 12th, 2024.[citation needed]
Scratch takes its name from a technique used by disk jockeys called "scratching", where vinyl records are clipped together and manipulated on a turntable to produce different sound effects and music. Like scratching, the website lets users mix together different media (including graphics, sound, and other programs) in creative ways by creating and "remixing" projects, like video games, animations, music, and simulations.[13]
Scratch 3.0
[edit]User interface
[edit]
The Scratch interface is divided into three main sections: a stage area, block palette, and a coding area to place and arrange the blocks into scripts that can be run by pressing the green flag or clicking on the code itself. Users may also create their own code blocks, which will appear in the "My Blocks" section.
The stage area features the results (e.g., animations, turtle graphics, either in a small or normal size, with a full-screen option also available) and all sprites' thumbnails being listed in the bottom area. The stage uses x and y coordinates, with 0,0 being the stage center.[14]
With a sprite selected at the bottom of the staging area, blocks of code can be applied by dragging them from the block palette into the coding area. The Costumes tab allows users to change the look of the sprite with a vector and bitmap editor in order to create various effects, including animation.[14] The Sounds tab allows attaching sounds and music to a sprite.[15]
When creating sprites and also backgrounds, users can draw their own sprites manually,[14] choose a sprite from the library, or upload an image.[15]
The table below shows the categories of the programming blocks:
| Category | Notes | |
|---|---|---|
| Motion | Movements of sprites, like angles and directions. | |
| Looks | Controls the visuals of the sprite. | |
| Sound | Plays audio files and effects. | |
| Events | Event handlers and broadcasters. | |
| Control | Conditionals, loops, and cloning. | |
| Sensing | Interactions between sprites, the mouse pointer, and the backdrop. | |
| Operators | Mathematical operators, conjunctions, and comparisons. | |
| Variables | Blocks to access and set variables. Cloud variables are synced across all running versions of the project. | |
| Lists | Blocks to access and interact with lists. | |
| My Blocks | User-defined functions, accessible as blocks. They can have inputs and have the option to run without a screen refresh. | |
| Extensions | Extra categories (e.g. Pen, Music) of blocks that can be added to a project at any time. | |
Offline editing
[edit]

An offline "Desktop Editor" for Scratch 3.0 is available for Microsoft Windows 10 and above in the Microsoft Store, Apple's macOS, ChromeOS, Android, and unofficially in Linux here; (although Scratch states on their download page that they are working with open-source partners to support Linux in the future)[16] this allows the creation and playing of Scratch programs offline. The offline editor can also be downloaded in previous versions, such as Scratch 2.0 and Scratch 1.4 (an archive of older versions is found here).
Extensions
[edit]In Scratch, extensions add extra blocks and features that can be used in projects. In Scratch 2.0, the extensions were all hardware-based and Pen was a normal category. Software-based extensions were added in Scratch 3.0, such as text-to-speech voices, along with some new hardware-based extensions like the micro:bit. The extensions are listed below.

Physical
[edit]- LEGO Mindstorms EV3 – Control motors and receive sensor data from the Lego Mindstorms EV3
- Makey Makey – Use Makey Makey to control projects
- LEGO Education WeDo 2.0 – control motors and receive sensor data from the Lego WeDo
- micro:bit – Use of a micro:bit to control projects
- LEGO BOOST – Bring robotic creations to life
- Go Direct Force & Acceleration – Sense pull, push, motion, and spin
Digital
[edit]Many of the digital extensions in Scratch 3.0 used to be regular block categories that were moved to the extensions section to reduce clutter. These include:
- Music – Play digital instruments (drums, trumpets, violins, pianos, and more). Previously part of the Sound category.
- Pen – Draw on the Stage with a variety of thicknesses and color. Previously a normal block category.
- Video Sensing – Detect motion with the camera. Previously in the Sensing category.
New digital extensions have also been added in collaborations with commercial companies. These include:
- Text to Speech – Converts words in a text into voice output, especially having an option for languages (variety of voices, supplied by Amazon)
- Translate – Uses Google Translate to translate text from one language into a variety of other languages, including Arabic, Chinese, Dutch, English, French, Greek, Norwegian, and Japanese
- Makey Makey – Options for better key pressing and press multiple keys in order. You can grab a join block if you want more control on the extension.
A paper published in 2019 by NYU argues and illustrates, for coding music with Scratch, "that the music and sound blocks as currently implemented in Scratch may limit and frustrate meaningful music-making for children, the core user base for Scratch."[17]
Scratch Lab
[edit]The Scratch Lab[18] displays experiments from the Scratch Team, intended to explore whether new features may be added to the full website in the future. Experimental features currently under development include:
- Video Sprites – Fill sprites with live video.
- Face Sensing – Make animated costumes and games that interact with a user's face.
- Animated Text – Bring words to life with colors, fonts, and animations.
Community of users
[edit]
Scratch is used in many different settings: schools, museums, libraries, community centers, and homes.[19][20][21] Scratch is designed primarily for users aged 8–16, but it is used by all ages and has a sizeable adult user base as of 2009.[10][22] This wide outreach has created many surrounding communities, both physical and digital.[12] In April 2020, the Tiobe ranking of the world's programming languages included Scratch in the top 20. According to Tiobe, there are 50 million projects written in Scratch, and every month one million new projects are added.[23]
Educational users
[edit]Scratch is used as the introductory language because the creation of interesting programs is relatively easy, and skills learned can be applied to other programming languages such as Python and Java.
Scratch is not exclusively for creating games. With the provided visuals, programmers can create animations, text, stories, music, art, and more. There are already many programs that students can use to learn topics in math, history, and even photography. Scratch allows teachers to create conceptual and visual lessons and science lab assignments with animations that help visualize difficult concepts. Within the social sciences, instructors can create quizzes, games, and tutorials with interactive elements. Using Scratch allows young people to understand the logic of programming and how to creatively build and collaborate.[24]
Scratch is taught to more than 800 schools and 70 colleges of the DAV organization in India and across the world.[25][26]
In higher education, Scratch is used in the first week of Harvard University's CS50 introductory computer science course.[27][28]
Online community
[edit]
Users of Scratch are called "Scratchers". Scratchers have the capability to share their projects and receive feedback. Projects can be uploaded directly from the development environment to the Scratch website and any member of the community can view and download the full source code to study or to remix into new projects.[29][30] Scratchers can also create project studios, comment, favorite, and "love" others' projects, follow other members to see their projects and activity, and share ideas. Projects range from games and animations to practical tools. Additionally, to encourage the creation and sharing amongst users, the website frequently establishes "Scratch Design Studio" challenges.[31]
Educators have their own online community called ScratchEd, developed and supported by the Harvard Graduate School of Education. In this community, Scratch educators share stories, exchange resources, and ask questions.[32][non-primary source needed]
Scratch Studios
[edit]Scratchers can upload their projects to studios where other Scratchers can upload their project for others to see and for other Scratchers to view, comment and remix their project. A studio usually consists of different projects made by Scratchers. Some Scratch studios are created by Scratchers to put all their projects into one library.

Scratch Wiki
[edit]The Scratch Wiki is a support resource for Scratch and information about its website, history, and phenomena surrounding it. Although supported by the Scratch Team (the developers of Scratch), it is primarily written by Scratch users (Scratchers) and is hosted independently of the main Scratch website.[33]
Roles
[edit]Roles are displayed as a label under a user's username on profile pages and on forum posts. To prevent vandalism, new accounts have the "New Scratcher" role, as opposed to the usual "Scratcher" role. Some restrictions are imposed onto New Scratcher accounts, including the inability to use cloud data and a minimum 30 second cooldown period between posting comments.[34][user-generated source] After a period of time of interacting and creating projects, an account will be eligible to gain the Scratcher role.[35]
Official moderators and developers of Scratch are labeled as part of the "Scratch Team" and usually have an asterisk at the end of their username.[36] The site also has special types of accounts for Students and Educators to use Scratch in the classroom.[37]
Censorship
[edit]In August 2020, GreatFire announced that the Chinese government had blocked access to the Scratch website. At the time, it was estimated that more than three million people in China were using it.[38][citation needed] The outlet cited the fact that Macau, Hong Kong and Taiwan were listed as countries on the website.[38][39]
Code base
[edit]The source code for the project editor in all three major versions, as well as a majority of the current website, is hosted publicly on GitHub across various repositories.[40] Scratch 3.0 is JavaScript-based, 2.0 is programmed in ActionScript,[4] and the 1.x versions were based on Squeak, which itself is based on Smalltalk-80.[41]
2.0 had an experimental JavaScript-based interpreter that was being developed in parallel with the ActionScript version.[42]
On 13 May 2014, a year after the release of Scratch 2.0, it was announced by a developer on the Scratch Forums that 2.0 would become open source.[43]
In 3.0, Scratch blocks are implemented using Blockly, a JavaScript library developed by Google for creating block-based visual programming languages.[44][45]
Events
[edit]Scratch Educators can gather in person at Scratch Educator Meetups. At these gatherings, Scratch Educators learn from each other and share ideas and strategies that support computational creativity.[46]
An annual "Scratch Week", formerly known as "Scratch Day", is declared in May each year. Community members are encouraged to host an event on or around this day, large or small, that celebrates Scratch. These events are held worldwide, and a listing can be found on the Scratch Day website. Scratch Week is a series focusing on Scratch activities on the Scratch website.[47]
Every April Fools' Day, the Scratch Team will play pranks on users and add Easter eggs, one example being that all event blocks in projects turn into cat versions of the same blocks.
History
[edit]In the early 2000s, the MIT Media Lab's Lifelong Kindergarten group (LLK) was developing visual programming languages targeted towards children.[48] In 2003, Mitchel Resnick, Yasmin Kafai, and John Maeda were awarded a National Science Foundation grant for the development of a new programming environment for children to express themselves with code.[11] The LLK, led by Mitchel Resnick, in partnership with Yasmin Kafai's team at UCLA worked closely with Computer Clubhouses in Boston and Los Angeles to develop Scratch, grounding its design in the practices and social dynamics of these after-school youth centers.[11] It started as a basic programming language, with no labeled categories and no green flag.[49] Similar to AgentSheets[50] Scratch employed concepts of Tactile Programming later known as blocks-based programming. Scratch was made with the intention to teach kids to program.[49]
The philosophy of Scratch encourages the sharing, reuse, and combination of code, as indicated by the team slogan, "Imagine, Program, Share".[51] Users can make their own projects, or they may choose to "remix" someone else's project. Projects created and remixed with Scratch are licensed under the Creative Commons Attribution-ShareAlike License.[52] Scratch automatically gives credit to the user who created the original project and program in the top part of the project page.[21]
Scratch was developed based on ongoing interaction with youth and staff at Computer Clubhouses. The use of Scratch at Computer Clubhouses served as a model for other after-school centers demonstrating how informal learning settings can support the development of technological fluency.[53]
Scratch 2.0 was released on 9 May 2013.[14] The update changed the look of the site and included both an online project editor and an offline editor.[54] Custom blocks could now be defined within projects, along with several other improvements.[55] The Scratch 2.0 Offline editor could be downloaded for Windows, Mac, and Linux directly from Scratch's website, although support for Linux was later dropped. The unofficial mobile version had to be downloaded from the Scratch forums.[56][57]

Scratch 3.0 was first announced by the Scratch Team in 2016. Several public alpha versions were released between then and January 2018, after which the pre-beta "Preview" versions were released.[58] A beta version of Scratch 3.0 was released on 1 August 2018.[59] for use on most browsers; with the notable exception of Internet Explorer.[60]
Scratch 3.0, the first 3.x release version, was released on 2 January 2019.[61] On 28 June 2023,[62] the header and links on the Scratch Website changed from blue to purple, and new optional high-contrast block colors were introduced, to make the site easier for colorblind people to read and use.[63]
In 2013, the Scratch Foundation (formerly the Code-To-Learn Foundation) was founded, and on March 11, 2019, the Scratch Team separated from the MIT Media Lab and moved to the Scratch Foundation.[64] The MIT Media Lab continues to collaborate closely with the Scratch Foundation.
Scratch Foundation
[edit]The Scratch Foundation (formerly the Code to Learn Foundation) is a company founded in 2013 to hold the ownership of Scratch and ScratchJr. The MIT Media Lab transferred Scratch and ScratchJr to the Scratch Foundation in 2019. Their website can be found here.
Filetypes
[edit]In Scratch 1.4, an *.sb file was the file format used to store projects.[65]
An *.sb file is divided into four sections:
- "header", this 10-byte header contains the ASCII string "ScratchV02" in versions higher than Scratch 1.2, and "ScratchV01" in Scratch 1.2 and below
- "infoSize", encodes the length of the project's infoObjects. A 4-byte long, 32-bit, big-Endian integer.
- "infoObjects", a dictionary-format data section. It contains: "thumbnail", a thumbnail of the project's stage; "author", the username of the project's creator; "comment", the Project Notes; "history", the save and upload log; "scratch-version", the version of Scratch used to save the file;
- "contents", an object table with the Stage as the root.[66] All objects in the program are stored here as references.[67]
Scratch 2.0 uses the *.sb2 file format. These are essentially zip files containing a .json file as well as the contents of the Scratch project including sounds (stored as .wav) and images (stored as .png).[68] Each filetype, excluding the project.json, is stored as a number, starting at 0 and counting up with each additional file. The image file labeled "0.png" is always a 480x360 white image, but "0.wav" will still be the earliest non-deleted file.
The ScratchX experimental version of Scratch used the .sbx file format.[69]
Scratch 3.0 uses the *.sb3 format.[70]
Older versions
[edit]Although the main Scratch website now runs only the current version (Scratch 3.0), the offline editors for Scratch 2.0 (and the earlier Scratch 1.4) are still available for download[71] and can be used to create and run games locally.[72] It is still possible to upload projects from the Scratch 2.0 launcher, which are immediately converted into Scratch 3.0 when uploaded to the main site.[73] There is also an offline version of Scratch 3.0.
Technology
[edit]The editor of Scratch 1.4 and below was written in Squeak, while its online project viewer was written in Java, and a player written in Adobe Flash was later added.[41][74] Scratch 2.0 relied on Adobe Flash for the online version, and Adobe AIR for the offline editor. These have fallen out of favor, and Adobe dropped support for them at the end of 2020.[75][76]
Scratch 2.0 changed how sounds were imported, so many Scratch 1.4 sounds stopped working. (The project file was changed from *.sb to *.sb2).[77]
Interface
[edit]
In Scratch 2.0, the stage area is on the left side, with the programming blocks palette in the middle, and the coding area on the right. Extensions are in the "More Blocks" section of the palette.[22]
The web version of Scratch 2.0 introduced project autosaving.[78]: 23
The blocks palette in Scratch 2.0 is made of discrete sections that are not scrollable from one to the next; the table below shows the different sections:
| Category | Notes | |
|---|---|---|
| Motion | Moves and changes the position of sprites | |
| Events | Event handlers | |
| Looks | Controls the visuals of the sprite | |
| Control | Conditionals and loops | |
| Sound | Audio files, sequences, and music | |
| Sensing | Sprite interaction | |
| Pen | Draw on the canvas | |
| Operators | Mathematical operators | |
| Data | Variables, arrays and lists | |
| More Blocks | Functions and extensions, return value is always void
| |
Scratch 2.0 introduced the backpack, which can be used to transfer scripts, sprites, costumes, and sounds between projects.[78]: 14–15
Features
[edit]Scratch uses event-driven programming with multiple active objects called sprites.[14] Sprites can be drawn, as vector or bitmap graphics, from scratch in a simple editor that is part of Scratch, or can be imported from external sources. Scratch 3.0 only supports one-dimensional arrays, known as "lists", and floating-point scalars and strings are supported but with limited string manipulation ability. There is a strong contrast between the powerful multimedia functions and multi-threaded programming style and the rather limited scope of the Scratch programming language.
Scratch 2.0 features
[edit]Scratch 2.0 does not treat procedures as first class structures and has limited file I/O options with Scratch 2.0 Extension Protocol, an experimental extension feature that allows interaction between Scratch 2.0 and other programs.[79] The Extension protocol allows interfacing with hardware boards such as Lego Mindstorms[80] or Arduino.[81] Scratch 2.0 also has the following features:
- Smart block switching
- Two-column category menu
- Reverse order of project controls
- Display stage on left side
- Square block inputs
- Compact editor
- Collapsing sprite properties
- Scratch 2.0 themes
Snap! (Build Your Own Blocks)
[edit]A more advanced visual programming language inspired by Scratch is Snap!, featuring first class procedures (their mathematical foundations are also called lambda calculus), first-class lists (including lists of lists), and first-class truly object-oriented sprites with prototyping inheritance, and nestable sprites, which are not part of Scratch.[82] Snap! (previously "BYOB") was developed by Jens Mönig[83][84] with documentation provided by Brian Harvey[85][86] from University of California, Berkeley and has been used to teach "The Beauty and Joy of Computing" introductory course in CS for non-CS-major students.[87] Both of them were members of the Scratch Team before designing "Snap!".[88][22]
ScratchJr
[edit]In July 2014, ScratchJr was released for iPad, and in 2016, ScratchJr for Android. Although heavily inspired by Scratch and co-led by Mitch Resnick, it is nonetheless a complete rewrite designed for younger children—targeting ages 5 through 7.[89]
Community-made modifications
[edit]Due to the open source nature of Scratch, numerous forks and browser extensions have been created by the community that aim to improve or modify the user experience. ScratchTools and Scratch Addons are some examples of open-sourced browser extensions that add many upgrades and new features to the Scratch website and editor.[90][91]
TurboWarp is a fork of the Scratch 3.0 editor that compiles Scratch into JavaScript code when a project is run, resulting in projects' general performances boosting significantly.[92] In addition, there are many technical settings and the same addons that Scratch Addons provides.[93] TurboWarp can also export projects to standalone HTML5, Bundle (macOS) and EXE files.[94]
Users can also create their own extensions for Scratch 3.0 using JavaScript.[95] Although the intention for Scratch 3.0 was to allow unofficial JavaScript extensions to be developed by users, it was abandoned due to moderation risks. As a result, the official site doesn't allow JavaScript extensions to be added, but several modifications of Scratch do.
Before 2.0, a number of Scratch forks[96][better source needed] were created using the source code of Scratch 1.4. These programs usually only included a few extra blocks not present in Scratch.[97][better source needed]
See also
[edit]- Blockly, an interface used by Scratch to make the code blocks.
- Snap! (programming language)
- Swift Playgrounds
- Alice (software)
- Twine (software)
- Lego Mindstorms EV3
- Kodu Game Lab
- Code.org
- Programmable Cricket
- PWCT
- Visual programming language
- Pencil Code (programming language)
References
[edit]- ^ Maloney, John; Burd, Leo; Kafai, Yasmin; Rusk, Natalie; Silverman, Brian; Resnick, Mitchel (29–30 January 2004). Scratch: A Sneak Preview. Second International Conference on Creating, Connecting and Collaborating through Computing. Section 6: Project status and next steps. doi:10.1109/C5.2004.33 – via ResearchGate.
- ^ "Scratch Timeline – Scratch Wiki". en.scratch-wiki.info.
- ^ a b Lee, David (28 December 2018). "What you need to know about Scratch 3.0". Computhink. Retrieved 9 February 2024.
- ^ a b Frang, Corey (28 February 2019). "Porting Scratch from Flash to JavaScript: Performance, Interoperability and Extensions". bocoup. Retrieved 9 February 2024.
- ^ "Strengthening Our Commitment to Free and Open Source Software". Scratch Foundation. Retrieved 6 December 2024.
- ^ "Catrobat Home". catrobat.org.
- ^ "ScratchJr – Home". scratchjr.org.
- ^ "Snap! Build Your Own Blocks". snap.berkeley.edu.
- ^ "KS1 / KS2 Computing: Programming a robot crocodile". BBC Teach. Retrieved 8 December 2024.
- ^ a b scratch, scratch (11 October 2022). "Scratch – About". scratch.mit.edu.
- ^ a b c "NSF Award Search: Award # 0325828 – ITR: A Networked, Media-Rich Programming Environment to Enhance Informal Learning and Technological Fluency at Community Technology Centers". www.nsf.gov. Retrieved 15 April 2021.
- ^ a b "Community statistics at a glance". scratch.mit.edu. Archived from the original on 6 April 2016. Retrieved 18 May 2019.
- ^ Schorow, Stephanie (14 May 2007). "Creating from Scratch". MIT News. Archived from the original on 13 October 2018. Retrieved 18 May 2019.
- ^ a b c d e Marji, Majed (2014). Learn to Program with Scratch. San Francisco, California: No Starch Press. pp. xvii, 1–9, 13–15. ISBN 978-1-59327-543-3.
- ^ a b "Science Buddies: Scratch User Guide: Installing & Getting Started with Scratch". ScienceBuddies.org. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "Scratch Desktop". Retrieved 19 September 2019.
- ^ "Music Making in Scratch: High Floors, Low Ceilings, and Narrow Walls? /". Jitp.commons.gc.cuny.edu. 16 May 2019. Retrieved 27 February 2022.
- ^ "Scratch Lab". lab.scratch.mit.edu. Retrieved 27 September 2023.
- ^ Oliveira, Michael (30 April 2014). "Canadian schools starting to teach computer coding to kids". CTV.ca. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "Scratch Day". Science Museum of Minnesota. Archived from the original on 8 April 2013. Retrieved 18 May 2019.
- ^ a b Lamb, Annette; Johnson, Larry (April 2011). "Scratch: Computer Programming for 21st Century Learners" (PDF). Teacher Librarian. 38 (4): 64–68. Retrieved 18 May 2019.
- ^ a b c Resnick, Mitchel; Maloney, John; Hernández, Andrés; Rusk, Natalie; Eastmond, Evelyn; Brennan, Karen; Millner, Amon; Rosenbaum, Eric; Silver, Jay; Silverman, Brian; Kafai, Yasmin (2009). "Scratch: Programming for All" (PDF). Communications of the ACM. 52 (11): 60–67. doi:10.1145/1592761.1592779. S2CID 229934947.
- ^ Fay, Joe (6 April 2020). "Kids programming language Scratch nails top 20 in latest dev rankings • DEVCLASS". DEVCLASS. Retrieved 27 April 2020.
- ^ Martin, Neil (25 June 2015). "What is Scratch? Is it AV or IT?". AV Magazine. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "DAV CS Syllabus" (PDF). Archived from the original (PDF) on 13 July 2018. Retrieved 18 May 2019.
- ^ "DAV Jharkhand Syllabus". Retrieved 18 May 2019.
- ^ Young, Jeffrey R. (20 July 2007). "Fun, Not Fear, Is at the Heart of Scratch, a New Programming Language". The Chronicle of Higher Education. ISSN 0009-5982. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "CS50 Syllabus". Archived from the original on 17 March 2015. Retrieved 18 May 2019.
- ^ Monroy-Hernandez, Andres; Hill, Benjamin Mako; Gonzalez-Rivero, Jazmin; Boyd, Danah (2011). "Computers Can't Give Credit: How Automatic Attribution Falls Short in an Online Remixing Community". Proceedings of the 29th International Conference on Human Factors in Computing Systems (CHI '11). ACM. pp. 3421–30. arXiv:1507.01285. doi:10.1145/1978942.1979452. S2CID 7494330.
- ^ Hill, B.M; Monroy-Hernández, A.; Olson, K.R. (2010). "Responses to remixing on a social media sharing website". ICWSM 2010: Proceedings of the 4th International Conference on Weblogs and Social Media, May 23–26, 2010. Washington, D.C.: AAAI Press. arXiv:1507.01284. Bibcode:2015arXiv150701284M. ISBN 978-1-57735-445-1. OCLC 844857775.
- ^ "Scratch Design Studio". wiki.scratch.mit.edu. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "Scratch for Educators". scratch.mit.edu. Archived from the original on 5 October 2008. Retrieved 18 May 2010.
- ^ "Scratch Wiki". en.scratch-wiki.info. Archived from the original on 12 May 2019. Retrieved 18 May 2019.
- ^ jvvg (1 June 2013). "An explanation of the 'New Scratcher' status". Discuss Scratch. Retrieved 11 January 2024.
- ^ "What is a Scratcher and how do I become one?". mitscratch.freshdesk.com. 4 November 2021. Retrieved 10 February 2024.
- ^ "Scratch Team - Scratch Wiki". en.scratch-wiki.info. Retrieved 26 May 2023.
- ^ "Student and Teacher Accounts - Scratch Wiki". en.scratch-wiki.info. Retrieved 26 May 2023.
- ^ a b Liao, Rita (7 September 2020). "China bans Scratch, MIT's programming language for kids". TechCrunch. Retrieved 27 April 2021.
- ^ "China blocks MIT's kid-friendly programming language Scratch". Developer Tech News. 8 September 2020. Retrieved 19 November 2020.
- ^ "Scratch Source Code". Scratch Wiki. Retrieved 8 April 2024.
- ^ a b "Scratch". Squeak/Smalltalk. Retrieved 7 March 2021.
- ^ Lightnin (29 October 2013). "We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)". Discuss Scratch. Retrieved 18 May 2019.
- ^ speakvisually (13 May 2014). "Scratch 2.0 Offline Open Source Code!". Discuss Scratch. Retrieved 13 January 2024.
- ^ "Blockly". Google Developers.
- ^ Pasternak, Erik (17 January 2019). "Scratch 3.0's new programming blocks, built on Blockly". Archived from the original on 23 July 2019. Retrieved 2 October 2019.
- ^ "Scratch Educator". Meetup.com. Archived from the original on 21 April 2019. Retrieved 18 May 2019.
- ^ "Scratch Week". Archived from the original on 7 April 2019. Retrieved 18 May 2019.
- ^ "LLK – Projects – Building-Block Programming". llk.media.mit.edu. Archived from the original on 30 April 2001. Retrieved 19 December 2021.
- ^ a b "Development of Scratch 1.0". en.scratch-wiki.info. Archived from the original on 3 January 2019. Retrieved 18 May 2019.
- ^ "Tactile Programming: A Unified Manipulation Paradigm Supporting Program Comprehension, Composition and Sharing". Retrieved 15 October 2021.
- ^ "Scratch – Imagine, Program, Share". scratch.mit.edu. Archived from the original on 22 February 2011. Retrieved 18 May 2019.
- ^ "Creative Commons License". wiki.scratch.mit.edu. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "ITR: A Networked, Media-Rich Programming Environment to Enhance Informal Learning and Technological Fluency at Community Technology Centers". National Science Foundation. Archived from the original on 30 December 2015. Retrieved 18 May 2019.
- ^ "Scratch Desktop". scratch.mit.edu. Archived from the original on 6 April 2019. Retrieved 18 May 2019.
- ^ Biggs, John (10 May 2013). "Kids' Programming Tool Scratch Now Runs in the Browser". TechCrunch. Archived from the original on 9 July 2017. Retrieved 18 May 2019.
- ^ Shane (grokblah), on behalf of the Scratch Team (29 August 2013). "Updated Scratch 2 Offline Editor (Beta) is now available!". Discuss Scratch. Retrieved 18 May 2019.
- ^ "Scratch 2.0 Preview". YouTube. MITScratchTeam. 1 May 2013. Archived from the original on 24 January 2014. Retrieved 18 May 2019.
- ^ "Scratch 3.0". en.scratch-wiki.info. Archived from the original on 9 May 2019. Retrieved 18 May 2019.
- ^ "3 Things To Know About Scratch 3.0". Medium.com. 31 January 2019. Archived from the original on 12 May 2019. Retrieved 18 May 2019.
- ^ "Scratch 3.0". scratch.mit.edu. Archived from the original on 6 April 2019. Retrieved 18 May 2019.
- ^ "Scratch 3.0 – Scratch Wiki". en.scratch-wiki.info. Retrieved 27 April 2021.
- ^ ceebee, on behalf of the Scratch Team (28 June 2023). "Color Contrast is here!". Discuss Scratch. Retrieved 5 September 2023.
- ^ ceebee, on behalf of the Scratch Team (5 June 2023). "Coming Soon: Color Contrast in Scratch!". Discuss Scratch. Retrieved 5 September 2023.
- ^ Mitchel Resnick, one of the founders of Scratch (12 March 2019). "Supporting the Growth of Scratch - Mitchel Resnick - Medium". Medium. Retrieved 5 March 2024.
- ^ "Scratch Wiki – *.sb". 4 October 2015. Retrieved 7 November 2015.
- ^ "Scratch File Format (1.4)/Object Table – Scratch Wiki". en.scratch-wiki.info. Retrieved 19 February 2022.
- ^ "Scratch File Format (1.4)/Object Table – Scratch Wiki". en.scratch-wiki.info. Retrieved 19 February 2022.
- ^ "Scratch File Format (2.0)". Scratch Wiki. Retrieved 2 October 2019.
- ^ "LLK/scratchx". GitHub. 16 August 2022.
- ^ "Scratch File Format". Scratch Wiki. Retrieved 2 October 2019.
- ^ "Scratch 2.0 Offline Editor". MIT. Retrieved 21 September 2019.
- ^ "3 Things To Know About Scratch 3.0". The Scratch Team. 31 January 2019. Retrieved 21 September 2019.
- ^ "Offline Editor (2.0) – Scratch Wiki". en.scratch-wiki.info. Retrieved 27 April 2021.
- ^ "Scratch Forums / Beta Flash player". Scratch Archived Forums. Retrieved 7 March 2021.
- ^ O'Donnell, Lindsey (14 January 2019). "Mozilla Kills Default Support for Adobe Flash in Firefox 69". Retrieved 21 September 2019.
- ^ Adobe Corporate Communications (30 May 2019). "The Future of Adobe AIR". Archived from the original on 25 August 2019. Retrieved 21 September 2019.
- ^ "Reference Guide Scratch 1.4" (PDF). Maine EDU. Scratch.mit.edu. Retrieved 25 April 2025.
- ^ a b McManus, Sean (2013). Scratch Programming in easy steps. Leamington Spa: Easy Steps. ISBN 978-1-84078-612-5.
- ^ "Scratch Extension". MIT. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "EV3+Scratch Extension". Scratch extension GitHub. Code & Circuit. Archived from the original on 20 January 2016. Retrieved 18 May 2019.
- ^ "Preliminary Scratch extension for talking to Arduino boards running Firmata". Scratch extension GitHub. Damellis. Archived from the original on 16 January 2018. Retrieved 18 May 2019.
- ^ "Snap! – Build Your Own Blocks". University of California, Berkeley. Archived from the original on 16 May 2019. Retrieved 18 May 2019.
- ^ Mönig, Jens. "Jens on Scratch". Scratch. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ Mönig, Jens (31 May 2011). "BYOB 3.1 – Prototypal Inheritance for Scratch". Chirp Blog. Archived from the original on 6 December 2013. Retrieved 18 May 2019.
- ^ "Brian Harvey". Electrical Engineering and Computer Sciences. Archived from the original on 3 April 2019. Retrieved 18 May 2019.
- ^ "bharvey". Scratch. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "CS10 : The Beauty and Joy of Computing". EECS Instructional Support Group Home Page. Archived from the original on 23 January 2014. Retrieved 18 May 2019.
- ^ "Relationship With the Scratch Team". Archived from the original on 2 January 2020. Retrieved 2 January 2020.
- ^ "About ScratchJr". scratchjr.org. Retrieved 19 September 2019.
- ^ "Frequently Asked Questions". Scratch Addons Docs. Retrieved 7 January 2024.
- ^ "Is the Scratch Programming Environment Ideal for all?" (PDF). Proceedings of the 15th International Conference on Computer Supported Education. ISBN 978-989-758-641-5.
- ^ "How TurboWarp runs Scratch projects 10-100x faster | TurboWarp Documentation". docs.turbowarp.org. Retrieved 7 January 2024.
- ^ "TurboWarp - Run Scratch projects faster". turbowarp.org. Retrieved 17 April 2022.
- ^ "TurboWarp Packager". packager.turbowarp.org. Retrieved 7 January 2024.
- ^ "Scratch 3.0 Extensions". Github. MIT. Retrieved 19 September 2019.
- ^ "Scratch Modification". Scratch Wiki. Lifelong Kindergarten Group at the MIT Media Lab. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
- ^ "Blocks". Scratch Wiki. Archived from the original on 18 May 2019. Retrieved 18 May 2019.
External links
[edit]Scratch (programming language)
View on GrokipediaScratch is a free, block-based visual programming language and online community platform designed to enable children to create interactive stories, games, animations, and other digital media while introducing core computational thinking and problem-solving concepts.[1] Developed initially by the Lifelong Kindergarten group at the Massachusetts Institute of Technology's Media Lab, it targets learners primarily aged 8 to 16 but appeals broadly to beginners in programming.[2] Launched publicly in May 2007, Scratch features a drag-and-drop interface that assembles code blocks to avoid syntax errors, promoting rapid prototyping and iteration.[1] The platform fosters a global community where users share, remix, and collaborate on projects, with over 135 million registered accounts and more than 164 million shared creations recorded as of mid-2024, reflecting its widespread adoption in education and informal learning.[3] Available in over 70 languages and moderated by the nonprofit Scratch Foundation since its transition from direct MIT oversight, Scratch emphasizes equity, self-expression, and creative computation over rote coding drills.[1] Empirical studies demonstrate its efficacy in enhancing student engagement, emotional investment in learning, and performance in programming fundamentals, particularly through hands-on project-based activities that build sequential reasoning, event handling, and variable manipulation skills.[4][5] While celebrated for lowering barriers to entry and sparking interest in computer science among youth—evidenced by its role in millions of annual new users and integration into curricula worldwide—Scratch has drawn critique from some computing educators who contend its abstracted visuals may insufficiently convey the logical rigor and debugging demands of text-based languages, potentially hindering transitions to professional programming tools.[2][6]
History and Development
Origins at MIT Media Lab
The development of Scratch originated within the Lifelong Kindergarten research group at the MIT Media Lab, led by Mitchel Resnick, with initial work commencing in 2002.[7] The project drew inspiration from observations of children in after-school programs like the Computer Clubhouse network, where participants struggled with text-based programming languages but showed enthusiasm for creative expression through computers.[8] Resnick's group sought to create a visual programming environment that embodied constructionist principles, influenced by Seymour Papert's Logo language, emphasizing low-floor, high-ceiling, and wide-wallwidth accessibility for learners aged 8 to 16.[9] A key spark for the name "Scratch" came from group member Oren Zuckerman in 2002, evoking the improvisational remixing style of DJs scratching records to parallel the intended playful, iterative coding process.[7] The first prototype emerged around late 2002 to early 2003, with a more defined version dated October 11, 2003, featuring block-based scripting to avoid syntax errors common in traditional coding.[10] Development received support from a National Science Foundation grant spanning 2003 to 2007, enabling a team including technical lead John Maloney to refine the interface for intuitive drag-and-drop assembly of code blocks representing commands for sprites and media manipulation.[9] This foundational phase at the Media Lab prioritized empirical testing with youth users, iterating based on playtesting feedback to ensure the tool fostered computational thinking without requiring prior expertise, setting the stage for its public release in 2007.[11] The effort reflected the Lab's broader mission to integrate technology with creative learning, building on prior projects like LEGO Mindstorms to promote lifelong kindergarten-style education.[12]Early Versions and Iterations
The initial public release of Scratch occurred on May 15, 2007, as a downloadable desktop application developed by the MIT Media Lab's Lifelong Kindergarten Group.[8] This version introduced a block-based programming interface allowing users to create interactive media projects using sprites, backdrops, and scripts assembled via drag-and-drop, with support for multimedia elements like sound and vector graphics.[8] The accompanying website launched on the same date, enabling project sharing, though early adoption focused on offline use in educational settings.[8] Subsequent iterations refined Scratch 1.x through incremental updates addressing usability, stability, and functionality. Scratch 1.1, released on May 26, 2007, primarily updated the Control blocks category to improve sequencing and looping capabilities.[8] Version 1.2 followed on December 2, 2007, incorporating additional blocks for enhanced motion and sensing, alongside bug fixes and performance optimizations.[8] Further advancements came with Scratch 1.3 on September 2, 2008, which added support for lists to enable data storage and manipulation in scripts.[8] The final iteration, Scratch 1.4, released July 2, 2009, featured a revamped user interface for better sprite editing and cloning, new sensing blocks for variable detection, and improved compatibility with international keyboards, marking the culmination of desktop-focused enhancements before the shift to web-based development.[8] These updates collectively expanded Scratch's expressiveness while maintaining its core accessibility for young learners, with over 1 million projects shared by 2010.[8]Establishment of Scratch Foundation
The Scratch Foundation was founded in 2013 as the Code-to-Learn Foundation by Mitchel Resnick, a professor of learning research at the MIT Media Lab's Lifelong Kindergarten Group, and David Siegel, co-founder and co-chairman of the investment firm Two Sigma.[13][14] The organization was established as an independent nonprofit to address the need for sustainable funding and broader dissemination of Scratch, which had been developed at MIT since its initial release in 2007 but faced limitations in scaling under university auspices alone.[15] It achieved 501(c)(3) tax-exempt status in January 2014, enabling it to focus on fundraising to support Scratch's ecosystem, including online community resources, educational events, and global outreach.[16] In July 2015, the foundation renamed itself the Scratch Foundation to more directly align with its core mission of promoting Scratch as a tool for creative coding among youth, emphasizing engagement in systematic reasoning, collaboration, and self-expression through programming.[17] This rebranding reflected Scratch's growing prominence following the 2013 release of Scratch 2.0, which shifted the platform to a web-based model and spurred rapid user expansion.[13] The foundation's establishment marked a transition for Scratch from primarily MIT-led development to a model involving external partnerships, with the nonprofit assuming responsibilities for moderation, resource creation, and long-term sustainability to reach underserved communities worldwide.[18] By 2019, plans were announced to further empower the foundation to lead in Scratch's design, updates, and support infrastructure.[15]Core Design and Features
Block-Based Programming Paradigm
Scratch employs a block-based visual programming paradigm, where users construct programs by dragging and snapping together graphical blocks that represent code elements, rather than typing text commands. These blocks, resembling interlocking puzzle pieces, are organized into color-coded categories such as Motion for sprite movement, Control for loops and conditionals, and Sensing for detecting user inputs or environmental states, enabling users to build scripts intuitively without manual syntax management.[19] This approach inherently prevents syntax errors by ensuring blocks only connect in valid sequences; for instance, a "move 10 steps" block from the Motion category can attach below an event-triggering "when green flag clicked" hat block, but incompatible shapes reject invalid attachments. Developed by researchers at the MIT Media Lab, the paradigm draws from earlier educational tools like Logo but emphasizes immediate visual feedback and event-driven execution to foster creativity and computational thinking in learners aged 8 to 16, as outlined in foundational documentation on Scratch's design.[20][19] Block types include hat blocks to initiate scripts on events, stack blocks for linear command sequences, reporter blocks that output numerical or string values for use in other blocks, boolean blocks yielding true/false conditions, and cap blocks to conclude loops or sequences without further attachments. Core Scratch provides over 100 such blocks, extensible via plugins, allowing construction of complex behaviors like conditional branching or variable manipulation while maintaining accessibility for beginners. The paradigm's efficacy stems from its reduction of cognitive load—studies on visual languages note decreased error rates compared to text-based coding, though it limits advanced refactoring common in professional environments.[21][22]User Interface and Workflow
The Scratch user interface features a central stage that serves as the runtime environment for displaying backdrops and sprite interactions during project execution.[23] Adjacent to the stage, the sprites pane lists thumbnails of all sprites and the stage itself, enabling users to select elements for editing by clicking on them.[23] Below the stage, the scripts area provides space for assembling code blocks specific to the selected sprite or stage.[23] On the left side, the block palette organizes draggable code blocks into color-coded categories, including Motion (blue) for positional changes, Looks (purple) for visual effects, Sound (pink) for audio, Events (yellow) for triggers, Control (orange) for flow structures like loops and conditionals, Sensing (light blue) for inputs, Operators (green) for calculations, and Variables (red) for data storage.[24][25] Additional categories such as Pen for drawing and My Blocks for custom procedures appear as needed.[23] Users access the editor by logging into the Scratch website at scratch.mit.edu and selecting "Create" to open a new project, which initializes with a default cat sprite and blank stage.[26] To build functionality, users add sprites via the sprites pane options: choosing from the built-in library, drawing in the paint editor, uploading images, or using surprises for random assets.[27] With a sprite selected, compatible blocks are dragged from the palette and snapped together in the scripts area to form sequential stacks, where shape and notch designs prevent invalid connections and promote logical assembly.[28] Scripts typically begin with event blocks like "when green flag clicked" to initiate execution upon user activation.[29] Project execution follows by clicking the green flag icon above the stage, which runs all eligible scripts in parallel, updating the stage in real-time to reflect sprite movements, changes, and interactions.[30] Users halt execution via the red stop sign, allowing iterative testing and debugging by modifying blocks—such as dragging them apart or back to the palette—and re-running.[23] Completed projects can be saved automatically to the user's online account, shared publicly for community viewing and remixing, or exported as .sb3 files for offline use, supporting collaborative workflows where remixes build upon originals with attribution.[1] This drag-and-drop paradigm minimizes syntax errors, enabling focus on computational concepts like sequencing, looping, and conditionals through visual feedback.[31]Extensions and Customization
Scratch extensions provide modular additions to the core programming environment, introducing new block categories for specialized functionalities such as hardware integration and advanced media manipulation. Users activate extensions by selecting them from the Extensions menu in the bottom-left of the editor interface, which dynamically loads corresponding blocks into the palette without altering the base system. This design, implemented in Scratch 3.0, separates optional features from essential ones to streamline the initial user experience while enabling expansion.[32][33] The platform includes eleven official extensions as of Scratch 3.0's release on January 2, 2019: five software-focused ones—Music (for MIDI synthesis and beatboxing), Pen (for vector drawing and stamping), Video Sensing (for camera-based motion detection), Text to Speech (for converting text to synthesized audio), and Translate (for real-time language conversion using Google Translate API)—and six hardware-oriented ones supporting devices like LEGO Mindstorms EV3 (for motor and sensor control), BBC micro:bit (for pins and accelerometer data), LEGO WeDo 2.0 (for tilt and distance sensing), LEGO BOOST (for color and force feedback), and Vernier Go Direct sensors (for force and acceleration measurements). These extensions facilitate interdisciplinary applications, such as robotics and multimedia projects, by bridging visual programming with physical computing.[34][35] Beyond extensions, customization occurs through user-defined procedures, termed "My Blocks" or custom blocks, which encapsulate reusable code sequences within a sprite or the stage. Created via the "Make a Block" button in the My Blocks palette, these allow definition of hat blocks with optional input parameters, run-with-without-screen-refresh modifiers for performance, and recursion capabilities. For instance, a custom block might abstract a movement routine with speed and direction inputs, promoting code modularity and reducing redundancy across scripts. This feature supports abstraction principles fundamental to programming, enabling beginners to build complex behaviors from simpler, parameterized components.[36] While official extensions are sandboxed for security and compatibility, community efforts like Scratch Addons—a browser extension—offer unofficial customizations such as enhanced themes, debugging tools, and additional blocks via JavaScript modifications, though these operate outside the core Scratch runtime and require third-party environments like TurboWarp for full extension support. TurboWarp is an open-source online modification of Scratch, started around 2020 by members of the Scratch community, that enhances performance by compiling projects to JavaScript for faster execution. It includes features such as dark mode, addons for improved editor functionality, and support for community-created extensions beyond official limitations. Hosted on GitHub under the TurboWarp organization, it addresses some of Scratch's performance issues while expanding creative options, though users should be aware of potential compatibility risks as it operates outside official support.[37][38][39]Versions and Evolution
Scratch 1.0 and 2.0
Scratch 1.0, the first stable public version of the Scratch programming language, was released on May 15, 2007, by researchers at the MIT Media Lab's Lifelong Kindergarten Group.[40] Designed as a desktop application for Windows, macOS, and Linux, it required no internet connection for core functionality and emphasized visual block-based programming to lower barriers for young users aged 8 and older.[11] The interface featured a central stage for project playback, a sprites pane for character management, and categorized blocks for motion (e.g., "move 10 steps"), appearance changes, sound playback, control flow (e.g., loops and conditionals), sensing inputs like mouse position, mathematical operators, and user-defined variables.[41] Projects were saved as .sb files, supporting basic sprite importation from image formats and limited scripting without advanced features like dynamic object creation or modular procedures. Minor iterations followed, including Scratch 1.4 released in late 2011, which introduced compatibility with more image and sound file types (e.g., SVG vectors partially, MP3 audio), webcam integration for sprite capture, and bug fixes for stability, while retaining the offline-only model and core block set.[42] These updates addressed usability issues reported by educators but did not alter the fundamental desktop-bound architecture, limiting seamless online collaboration.[43] Scratch 2.0 launched on May 9, 2013, marking a shift to browser-based editing via Adobe Flash, alongside a compatible offline desktop editor, to enable direct online project sharing and remixing without file downloads.[8] This version expanded programming capabilities with new blocks for sprite cloning (e.g., "create clone of myself" and "when I start as a clone"), custom blocks for reusable procedures with parameters, and enhanced list handling for data storage.[44] The user interface was streamlined with resizable panes, vector graphics editing tools for scalable sprites, improved costume and backdrop libraries, and better multimedia support including MIDI instruments.[45] Backward compatibility with 1.x projects was maintained through conversion tools, though some advanced 2.0 features required adaptation, facilitating broader community engagement while preserving core accessibility.[41]Scratch 3.0 Release and Updates
Scratch 3.0 was released on January 2, 2019, marking a complete redesign and reimplementation of the platform by the MIT Media Lab.[46] This version transitioned from Adobe Flash to HTML5, enabling compatibility with tablets, smartphones, and modern browsers without plugin dependencies.[47] The update introduced a responsive interface optimized for touchscreens, facilitating project creation on mobile devices.[48] Key enhancements in Scratch 3.0 included dozens of new sprites and backdrops, a redesigned vector-based paint editor with an eraser tool, and an upgraded sound editor supporting waveform visualization and effects.[46] New programming blocks expanded capabilities for video sensing, cloning, and custom procedures, while the "My Blocks" category allowed users to define and manage custom blocks more effectively.[49] Extensions were added for integrating hardware like LEGO robotics, music instruments, and text-to-speech, with cloud-hosted options such as Google Translate for multilingual support.[50] Post-release updates to Scratch 3.0 have focused on stability, accessibility, and feature refinements. The offline editor reached version 3.29.1 by February 2022, incorporating bug fixes and performance improvements.[51] The Scratch team publishes a public changelog detailing ongoing changes, including UI tweaks, security enhancements, and compatibility updates as recent as August 2025.[52] These iterative releases ensure the platform remains current without a full major version shift, with no Scratch 4.0 launched by October 2025.[41]ScratchJr and Variants
ScratchJr is a visual, block-based programming application targeted at children aged 5 to 7, enabling them to construct interactive stories and games through simplified coding that emphasizes sequencing, repetition, and basic event handling to foster early computational thinking and problem-solving skills.[53] Unlike the full Scratch platform, it employs larger, touch-optimized blocks categorized into motion (e.g., move forward, turn), appearance (e.g., grow, change color), sounds, and basic control structures like "repeat" for loops and trigger events such as "when started" or "when tapped," deliberately omitting advanced elements like variables, custom functions, or complex conditionals to match young users' cognitive development.[54] The interface features a canvas for placing sprites and backgrounds, with intuitive drag-and-drop mechanics designed for tablet use, promoting creativity without requiring text-based input or keyboard navigation.[53] Developed primarily by the DevTech Research Group at Tufts University under Marina Umaschi Bers, in partnership with MIT Media Lab researchers including Mitchel Resnick, ScratchJr drew inspiration from Scratch's core principles but adapted them for preschool and early elementary learners through iterative prototyping focused on empirical testing with children.[54] The project prioritized accessibility, with free availability and no login requirements, aiming to democratize introductory programming amid evidence from child development studies showing benefits in spatial reasoning and narrative skills.[55] The iOS version launched as a free iPad app in July 2014, requiring iOS 9.3 or later, while the Android tablet edition followed in 2016; by May 2025, the app had amassed over 60 million downloads worldwide, reflecting widespread adoption in informal and classroom settings.[56] [55] ScratchJr supports multilingual interfaces in over 40 languages, facilitating global adaptations for diverse educational contexts, though core functionality remains consistent across versions without platform-specific overhauls.[57] No official desktop or web-native variants exist from the developers, preserving the tablet-centric model to leverage touch interaction for fine motor skill development; however, third-party web emulations have emerged to extend access on browsers, albeit lacking official endorsement and potentially diverging in fidelity to the original design.[56] Educational extensions include multi-device curricula for collaborative projects, where multiple tablets synchronize to create shared games or narratives, but these represent usage modes rather than distinct software variants.[58] Updates have focused on bug fixes and minor UI refinements rather than major feature additions, maintaining stability for its young audience.[56]Planned Scratch 4.0 Developments
The Scratch Foundation designated the development of Scratch 4.0 as one of three strategic priorities for 2025, emphasizing enhancements to support the platform's expanding user base of over 100 million active accounts.[59] This iteration aims to incorporate a re-imagined online community alongside creative AI functionalities, as outlined in foundation job postings and planning documents from late 2024 onward.[60] These updates seek to address scalability challenges and evolve the platform's collaborative features while maintaining its core block-based paradigm for novice programmers.[61] A prominent planned feature is the Creative Learning Assistant (CLA), an opt-in AI tool announced on July 22, 2025, intended to serve as a customizable co-pilot for young users. The CLA will provide personalized guidance, inspiration prompts, and project suggestions tailored to individual learning styles, enabling children to design assistants that reflect their preferences and creative processes.[62] [63] Demonstrated at the Scratch Conference 2025, it focuses on fostering independent problem-solving rather than automating code generation, with safeguards to ensure age-appropriate interactions and data privacy.[64] Funding for Scratch 4.0 forms part of a $30 million initiative launched in 2024 to drive platform evolution, youth engagement programs, and long-term sustainability.[65] No official release timeline has been confirmed, though informal statements from foundation representatives indicate a target for the second half of 2026, following iterative testing similar to prior versions.[66] Development draws from user feedback and research into AI's role in computational thinking, prioritizing ethical integration to avoid over-reliance on automation.[64]Technical Implementation
Underlying Code Base
Scratch 1.x implementations relied on Squeak, an open-source Smalltalk system, which provided the runtime environment for executing block-based scripts through a custom virtual machine tailored for educational programming.[67] This foundation emphasized object-oriented principles, with sprites and stage elements modeled as Smalltalk objects to simulate parallelism via green threads.[68] Scratch 2.0 transitioned to Adobe Flash (ActionScript) for the editor and player, enabling richer multimedia support and offline standalone applications while maintaining compatibility with web browsers via plugins.[67] The codebase included a Flash-based renderer for graphics, sound, and user interactions, with project files serialized in a proprietary format that compiled blocks into ActionScript bytecode for execution. Scratch 3.0, introduced in January 2019, adopted modern web standards with HTML5, CSS, and JavaScript as its core technologies, facilitating browser-native operation without plugins and supporting mobile devices.[67] [50] The editor's frontend utilizes React for component-based UI management, while the block system integrates Blockly—a JavaScript library co-developed with Google—to parse visual blocks into executable JavaScript code.[69] Runtime execution occurs via a JavaScript virtual machine that handles concurrency through cloned sprite instances and event-driven dispatching, rendering graphics with HTML5 Canvas and Web Audio API for sound.[67] The open-source codebase resides in the Scratch Foundation's GitHub repositories, includingscratch-www for the web editor and scratch-vm for the core engine, enabling extensions and third-party modifications.[70] [68]
File Formats and Compatibility
Scratch projects are stored in version-specific formats: Scratch 1.x uses .sb files, which employ a proprietary binary structure not easily extractable without specialized tools.[71] Scratch 2.0 introduced .sb2 files, ZIP archives containing aproject.json file with serialized blocks and metadata, alongside embedded assets like sprites and sounds in directories such as sprites/ and sounds/.[72] Scratch 3.0 adopted .sb3 files, also ZIP-based but with an updated project.json schema supporting new features like vector graphics enhancements and extensions, while maintaining backward-compatible elements for core scripts.[73][74]
These formats ensure self-contained projects with serialized code in JSON for blocks, allowing offline editing and sharing, though .sb files predate the ZIP standard used in later versions.[75] Assets within projects support specific imports: images in SVG, PNG, JPG, GIF, and BMP; sounds primarily in WAV and MP3, with potential compatibility limits for uncompressed or proprietary audio.[76][77]
Compatibility prioritizes playback over full editing across versions. Projects from Scratch 1.x or 2.0 can be uploaded to the Scratch 3.0 online platform and executed, as the system renders older blocks via emulation layers.[78][79] However, loading them into the Scratch 3.0 editor for modification may fail or degrade features, such as unsupported clones, custom blocks, or asset types, due to schema changes and removed legacy elements like certain pen extensions.[80][81]
Upgrading is straightforward: opening an .sb or .sb2 file in Scratch 3.0 prompts automatic conversion to .sb3 upon saving, preserving core logic while adapting incompatible blocks—though users must manually recreate or approximate lost functionalities.[82][83] Downgrading .sb3 to .sb2 lacks native support and often requires unzipping, editing JSON manually, and repackaging, risking data loss from 3.0-exclusive features like costume vectors or cloud variables.[84] Very early prototypes in .scratch format remain incompatible without custom extraction.[85] The Scratch Team emphasizes maximal backward compatibility to sustain long-term project viability, but version transitions necessitate testing for edge cases.[79][86]
