For faster navigation, this Iframe is preloading the Wikiwand page for Snap!.

Snap!

维基百科,自由的百科全书

Snap!语言
Snap!.png
编程范型面向对象编程, 事件驱动编程
设计者布莱恩·哈维Jens Mönig
实作者Jens Mönig
发行时间2011年
稳定版本
7.0.2
(2021年12月21日,​8个月前​(2021-12-21 [1]
型态系统动态类型
实作语言JavaScript
许可证AGPL
文件扩展名.xml
网站snap.berkeley.edu/ byob.berkeley.edu/
启发语言
Scratch语言

Snap! 是一款用JavaScript编写的,在浏览器里运行的图形化编程语言,旨在赋予学生创作交互式故事,动画,游戏等作品,学习数学和计算概念。Snap!由Scratch语言衍生,包含和扩展了Scratch的功能。

Snap! 不用在本地设备上安装任何部件,只需网络浏览器即可。

历史

Snap! 4.0和前身BYOB页面存档备份,存于互联网档案馆)由来自加州伯克利大学的Jens Mönig开发,可以运行在WindowsMac OS XLinux系统[2][3]布莱恩·哈维提供创意和文档[4][5][6] 。加州伯克利大学在面向非计算机专业学生的名为“计算的美和乐趣”的课程上使用Snap!。[7]

运行平台

Snap! 4.0 可运行在Apple iOSMac OS XWindowsLinux 上,用Javascript编写,使用HTML5 Canvas API令其具有良好的跨平台性。

对比之下,Scratch 2.0用ActionScript编写,不能在苹果公司的iOS系统上运行。

用户界面

Snap 4.0 开发环境
Snap 4.0 开发环境

屏幕布局和Scratch2.0之前的版本一致。部件区域在左面,代码区域在中间,右上部是运行区域,右下部罗列动画人物缩微。

特性

区别于Scratch的最重要的特性为:

  • 高阶函数,数学上称为"Λ演算"
  • 嵌套列表,例如列表的列表
  • 角色嵌套
  • Snap!代码可转换为其他主流程序语言,如Python, JavaScript和C等.

参考

  1. ^ jmoenig/Snap. GitHub. [3 January 2022]. (原始内容存档于2022-04-21). 
  2. ^ Scratch - Imagine, Program, Share. scratch.mit.edu. [21 May 2017]. (原始内容存档于2014-02-18). 
  3. ^ Mönig's blog post announcing BYOB as bringing protypal inheritance to Scratch. [2015-03-27]. (原始内容存档于2013-12-06). 
  4. ^ HomePage for Brian Harvey (bh@cs.Berkeley.EDU). people.eecs.berkeley.edu/~bh/. [19 January 2019]. (原始内容存档于2019-04-03). 
  5. ^ Brian Harvey user contributions page. [2015-03-27]. (原始内容存档于2014-02-16). 
  6. ^ Brian Harvey's homepage. [2015-03-27]. (原始内容存档于2014-01-23). 
  7. ^ The Beauty and Joy of Computing course homepage. [2015-03-27]. (原始内容存档于2014-01-23). 

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
Snap!
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.