The new beginner programming language: Small Basic

Remis

Well-Known Member
Messages
663
Microsoft are developing a new language for scripting beginners. Small basic is a easy way to create programms. It makes a lot of fun with programming in SB.

Quote from msdn.microsoft.com:
Small Basic is a project that's aimed at bringing "fun" back to programming. By providing a small and easy to learn programming language in a friendly and inviting development environment, Small Basic makes programming a breeze. Ideal for kids and adults alike, Small Basic helps beginners take the first step into the wonderful world of programming.

Small Basic derives its inspiration from the original BASIC programming language, and is based on the Microsoft .NET platform. It is really small with just 15 keywords and uses minimal concepts to keep the barrier to entry as low as possible.
The Small Basic development environment is simple, yet provides powerful modern environment features like Intellisense™ and instant context sensitive help.
Small Basic allows third-party libraries to be plugged in with ease, making it possible for the community to extend the experience in fun and interesting ways.


Screens:

sb_gui.jpg
sb_gui2.jpg
sb_publish.jpg
sb_compiled.jpg
sb_test.jpg


Requirements
Operating Systems: Windows XP or Windows Vista
Requirements: .NET Framework 3.5

Download:
v0.3:
http://msdn.microsoft.com/en-us/devlabs/cc950524.aspx

.NET Framework 3.5:
http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6&displaylang=de

Doku (NICE tutorials):
http://download.microsoft.com/download/9/0/6/90616372-C4BF-4628-BC82-BD709635220D/Introducing%20Small%20Basic.pdf


Example code snipets

Code:
Turtle.Move(100)
Turtle.TurnRight()
Turtle.Move(100)
Turtle.TurnRight()
Turtle.Move(100)
Turtle.TurnRight()
Turtle.Move(100)

Show pictures from flickr.com:
Code:
GraphicsWindow.Show()
pic = Flickr.GetPictureOfMoment()
w = GraphicsWindow.Width
h = GraphicsWindow.Height
GraphicsWindow.DrawResizedImage(pic, 0, 0, w, h)



If you want to use the Turtle in Visual Studio VBasic:
Add the SmallBasicLibrary.dll as reference to your project.
 
It is even great for comprehensive applications.
Proof:
A 2D game with only some code lines:

sb_game.jpg


Code:
GraphicsWindow.BackgroundColor = "DarkBlue"
paddle = Shapes.AddRectangle(120, 12)
ball = Shapes.AddEllipse(16, 16)
GraphicsWindow.MouseMove = OnMouseMove
x = 0
y = 0
deltaX = 1
deltaY = 1
RunLoop:
x = x + deltaX
y = y + deltaY
gw = GraphicsWindow.Width
gh = GraphicsWindow.Height
If (x >= gw - 16 or x <= 0) Then
deltaX = -deltaX
EndIf
If (y <= 0) Then
deltaY = -deltaY
EndIf
padX = Shapes.GetLeft (paddle)
If (y = gh - 28 and x >= padX and x <= padX + 120) Then
deltaY = -deltaY
EndIf
Shapes.Move(ball, x, y)
Program.Delay(5)
If (y < gh) Then
Goto RunLoop
EndIf
GraphicsWindow.ShowMessage("You Lose", "Paddle")
Sub OnMouseMove
paddleX = GraphicsWindow.MouseX
Shapes.Move(paddle, paddleX - 60, GraphicsWindow.Height - 12)
EndSub
This code is by the sb dokumentation.
 
Rafay said:
Awsome! it doesn't works for me :dry:
I tested it my VISTA pc and a virutal pc with windows 7. It should work on every Vista/XP/Windows 7 computer.
Do you have the latest Net Framework (3.5) installed?
 
I know how to code in Java and C# (a little) as far as the form of coding but I don't know any functions :(
 
Remis said:
Rafay said:
Awsome! it doesn't works for me :dry:
I tested it my VISTA pc and a virutal pc with windows 7. It should work on every Vista/XP/me/windows 2000/Windows 7 computer.
Do you have the latest Net Framework (3.5) installed?
got it working ^^ it needs 3.5 SP1
 
Back
Top Bottom