Microsoft Small Basic

Microsoft Small Basic
Microsoft Small Basic
Small Basic.png
Small Basic running on Windows 7
Original author(s) Microsoft DevLabs
Developer(s) Microsoft DevLabs
Initial release 2008
Stable release Microsoft Small Basic v1.0 / 12th July 2011
Written in Microsoft .Net 3.5
Operating system Microsoft Windows
Platform Microsoft Windows
Type Integrated development environment
Website http://www.smallbasic.com/

Microsoft Small Basic is a simplified variant of the BASIC programming language introduced by Microsoft in October 2008. With a bare minimum of concepts, Microsoft accredits this as an easy programming language for beginners to grasp. The language itself has only 14 keywords[1], and the environment is beginner-friendly, with a straightforward interface. Small Basic Version 1.0 (12 June 2011)[2] was released with an updated Microsoft MSDN website that included several new Small Basic guides for beginners through a partnership with ComputerScienceForKids.com. The published Small Basic guides include a complete Developer's Reference Guide, a Beginning Small Basic tutorial, and a republished classic programming book by David H. Ahl[3].

Microsoft Small Basic was designed by Microsoft DevLabs and released as a Technology Preview[4] in October 2008. Its intended audience is anyone looking to begin programming, including children and beginner adults as well.

Contents

Language

The actual language is a modified version of Microsoft's QBasic language, but ported over to the .Net Framework. The traditional 'Hello World' can be written as:

TextWindow.Write("Hello World")

or:

TextWindow.Writeline("Hello World")

The first example just writes 'Hello World', but the second example writes 'Hello World' on a new line.

Note that traditional Basic variants, including Microsoft QuickBasic, used an easier syntax:

print "Hello World"

The language itself is Turing complete and supports concepts like conditional branching and loops. Variables are typeless and dynamic, and there are no scoping rules. The language supports subroutines and the runtime uses them for event handling purposes.

Conditional Branching

TextWindow.Write("Enter the temperature today (in F): ")
temp = TextWindow.ReadNumber()
If temp > 100 Then
  TextWindow.WriteLine("It is pretty hot.")
ElseIf temp > 70 Then
  TextWindow.WriteLine("It is pretty nice.")
ElseIf temp > 50 Then
  TextWindow.WriteLine("Don't forget your coat.")
Else
  TextWindow.WriteLine("Stay home.")
EndIf

Looping

TextWindow.WriteLine("Multiplication Tables")
table = 4
For i = 1 to 10
  TextWindow.WriteLine(i + " x " + table + " = " + table * i)
EndFor

Libraries

The software ships with a built in set of libraries which are quite modern and intended to pique the learners' interest.

For example to change the desktop wallpaper to a variety of 10 mountain photos, the students would make use of a prebuilt "GetRandomPicture" method for Flickr so the code becomes simply:[5]

For i = 1 To 10
  pic = Flickr.GetRandomPicture("mountains")
  Desktop.SetWallPaper(pic)
  Program.Delay(10000)
EndFor

Turtle

Microsoft Small Basic ships with a Turtle graphics library that borrows the idea from Logo. For example, you can make the turtle draw a square by simply saying:

For i = 1 to 4
  Turtle.Move(100)
  Turtle.TurnRight()
EndFor

Older Basic dialects, like Microsoft QuickBasic, did not use

EndFor

but

Next i

Testing

The first trials were successfully done with several middle school children, most of them children of workers at Microsoft. Small Basic was also successfully tested using a hands-on lab approach to a group of 25 high school girls.[6]

See also

  • RoboMind
  • SmallBASIC
  • Scratch (programming language)

References

  1. ^ Microsoft Small Basic Home Page
  2. ^ Small Basic 1.0 Released
  3. ^ Small Basic Programming Books
  4. ^ About DevLabs
  5. ^ Microsoft corporation 2009 Getting Started Guide for Small Basic, p 58
  6. ^ The Basics of Small Basic

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Microsoft Small Basic — Microsoft Small Basic …   Википедия

  • Microsoft Small Basic — Apparu en 2008 Auteur Microsoft DevLabs Dialectes Microsoft Small Basic 0.4 (Avril 2009) Influencé par …   Wikipédia en Français

  • Small Basic — Microsoft Small Basic Eine kostenlose und einfache BASIC Entwicklungsumgebung Basisdaten Paradigmen: prozedural Erscheinungsjahr …   Deutsch Wikipedia

  • Microsoft Small Business Financials — (formerly Microsoft Small Business Manager) is a business accounting software package. The software is targeting growing small businesses that require more than basic accounting software [1] [2]: with less than 25 employees[3] and less than $10… …   Wikipedia

  • Microsoft BASIC — Appeared in 1975 (cf. Altair BASIC) Designed by Microsoft Developer Microsoft Stable release cf. Visual Basic .NET (2010) Microsoft BASIC was the foundation product of the Microsoft …   Wikipedia

  • BASIC — Класс языка: алгоритмическое, процедурное, объектное программирование Появился в: 1963 г. Расширение файлов: .bas Типизация данных: нестрогая Бейсик (от BASIC, сокращение от англ.  …   Википедия

  • BASIC-256 — с …   Википедия

  • BASIC — This article is about the programming language. For the think tank, see British American Security Information Council. For the group of countries, see BASIC countries. For other uses, see Basic (disambiguation). BASIC Screenshot of Atari BASIC,… …   Wikipedia

  • Microsoft .NET — Pour les articles homonymes, voir .Net. Microsoft .NET Développeur …   Wikipédia en Français

  • Microsoft Visual Studio — Visual Studio 2010 SP1 editing a WPF application Developer(s) …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”