分享

Basic语言家族又添新丁:Google推Simple语言

 quasiceo 2013-11-23

Basic语言家族又添新丁:Google推Simple语言

(2009-07-30 10:24:47)
标签:

it

分类: 学习

今天听胡SIR说Google推出了Simple语言。CSDN上的消息也刚出。抢个鲜,呵呵!

 

Simple语言是Basic的一种变种,语法类似微软的Visual Basic,可用于Android的开发,语法示例:

-----------------------------------

Static Sub TestProcedure(var1 As Integer)
Dim var2 As String
Do
Dim var2 As Object
Dim var3 As String
var1 = com.google.devtools.simple.smoketest.scopes.ScopesTest.var2 ' integer to integer assignment
var2 = ScopesTest.var3 ' object to object assignment
While False
End Sub

----------------------------------

Simple现在的主页
http://code.google.com/p/simple/wiki/HowToWriteASimpleApplication

 

Simple语言规范
http://simple./files/Simple_Language_Definition.pdf


API参考
http://code.google.com/p/simple/wiki/RuntimeLibraryReference

组件参考
http://code.google.com/p/simple/wiki/ComponentReference

 

 

有Phone对象,可以说明支持Android了吧!

-------------------------------------------

ReferenceComponentPhone  
Reference: Phone - Component providing phone-related functionality
namespace com.google.devtools.simple.runtime.components
Phone
Component providing phone-related functionality. There should be only one phone component per form.
Events
Initialize
Initialization event.
Properties
Available
Available property (read-only property).


Functions
Call
Places a call to the given phone number. Vibrate Vibrates the phone.

--------------------------------------------------------------------------------

Initialize
Event Initialize()Event raised upon component initialization.
--------------------------------------------------------------------------------

Available
Property Available As BooleanThis property indicates whether the sensor is available on the device running the application. This property is read-only.
--------------------------------------------------------------------------------

Call
Sub Call(phoneNumber As String)Places a call to the given phone number. Parameters: phoneNumber - phone number in the form of numbers only (no spaces, no dashes etc.)
--------------------------------------------------------------------------------

Vibrate
Sub Vibrate(duration As Integer)Vibrates the phone. Parameters: duration - duration in milliseconds

 

--------------------------------------------------

收集已知的Basic语言的变种(不断更新中):

 

WSH脚本

WMI脚本

PowerShell脚本
ASP脚本
ASP.NET脚本
AutoIT脚本

VBA脚本

QuickBasic
FBasic
VisualBasic
VB.NET

RealBasic(跨Windows/Linux/Mac平台)

--------------------------------------------------

BASIC被有些记者标榜着是非专业程序员的语言,这显然是比较白痴的说法。

 

要知道,写程序的目的不在于你用什么语言,而在于你用它来实现什么目的,什么语言达到这个目的更容易,你就选用这种语言,换一种场合你就可能得选用另一种语言。

 

编程语言最终只是一种工具罢了,就好象你修理电器要用各种工具一样,达到不同的目的,要用不同的编程语言,你把榔头拆来说合起来说,说它的组成,它的材质,却不知道它是用来“敲打”用的,是不是可笑?现在很多人是为了语言而学语言,怎天讨论语言的特性,或者报怨说要学的语言太多,这实在是本末倒置的。

 

要说编程专业不专业,只能用编程经验来衡量,写过多少代码,参与过多大的项目...怎么能用采用什么语言来衡量呢?难道说会用C,只会写个HelloWorld的程序员,会比用RealBasic写个神舟飞船跟踪程序的程序员来得更专业?这不明摆的嘛!

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多