Quantcast
Channel: Small Basic
Viewing all 669 articles
Browse latest View live

Small Basic is FREE!!!

$
0
0

Yeah, it's free. Give yourself a gift. Or give a kid a future in computer software that they might not otherwise have. Just click:

What is Small Basic? Well... Small Basic is Fun, Simple, Social, & Gradual.

And these resources will guide you. Ten year olds have used these resources on their own to learn Small Basic:

 

Maybe you want to see what people have been doing with it first...


Small Basic Program Gallery (listed by Category)

Small Basic Extension Gallery

Small Basic Student Testimonies - 47 students, from age 8-13, explain how easily they learned Small Basic and how great it is.

 

Maybe you're ready to engage with the community...

   Small Basic Forum

   Small Basic on TechNet Wiki (all articles)

   Small Basic Site

  

Enjoy! 

   - Ninja Ed


Small Basic November 2013 Guru Winners!

$
0
0

The TechNet Guru Awards celebrate the technical articles on TechNet, contributed from valued wiki authors like YOU!

Each month, the contributions are scored by a panel of judges (5 per category, 2-3 in each are MS experts), and the winners of each category are showered with love and attention from all corners of TechNet.

 

More about the TechNet Guru Awards:

 

 

Now let's see November's winners!

 

Guru Award Small Basic Technical Guru - November 2013  

Gold Award Winner

 

litdevDynamic GraphicsEd Price: "Incredibly detailed. A fantastic resource to keep coming back to! From the comments: "Wanted to say WOW - this is great!" and "Awesome. Thanks""

Silver Award Winner

 

Nonki TakahashiHow to Make a Check BoxEd Price: "Well formatted and in-depth how-to article! Great job!"

Bronze Award Winner

 

Joe DwyerWhy Small Basic is a great programming language for beginnersEd Price: "A well-articulated value statement for Small Basic! Thanks, Joe!"

 

Congratulations to litdev, Nonki and Joe!

Also worth a mention were the other entries this month:

 

Thank you again to all our contributors!

   - Ninja Ed

LitDev's "Small Basic: Dynamic Graphics" - Featured Article!

$
0
0

Check out LitDev's November gold medal winner for the Small Basic Guru contest:

Small Basic: Dynamic Graphics

 

This is also LitDev's first gold medal! So congrats go to LitDev!

 

Here is an excerpt section from the article...

 

 

===============

Advanced Collisions

To get sprites to bounce off each other realistically can be complicated.  Basically we need to do the collision in a center of mass reference frame using geometry like the figure below, then convert from the center of mass frame back to the actual frame.

This is an example implementation of this in Small Basic.

 
Sub CollisionCheck
  For i = 1 To Ball_Number-1
    For j = i+1 To Ball_Number
      dx = Ball_X[i] - Ball_X[j]
      dy = Ball_Y[i] - Ball_Y[j]
      Distance = Math.SquareRoot(dx * dx + dy * dy)
      If Distance < Ball_Diameter Then
        Cx = (Ball_vX[i]+ball_vX[j])/2
        Cy = (Ball_vY[i]+ball_vY[j])/2
        Relative_vX[i] = Ball_vX[i] - Cx
        Relative_vY[i] = Ball_vY[i] - Cy
        Relative_vX[j] = Ball_vX[j] - Cx
        Relative_vY[j] = Ball_vY[j] - Cy
        Nx = dx / Distance
        Ny = dy / Distance
        L[i] = Nx * Relative_vX[i] + Ny * Relative_vY[i]
        L[j] = Nx * Relative_vX[j] + Ny * Relative_vY[j]
        
        Relative_vX[i] = Relative_vX[i] - (2 * L[i] * Nx)
        Relative_vY[i] = Relative_vY[i] - (2 * L[i] * Ny)
        Relative_vX[j] = Relative_vX[j] - (2 * L[j] * Nx)
        Relative_vY[j] = Relative_vY[j] - (2 * L[j] * Ny)
        
        Ball_vX[i] = (Relative_vX[i] + Cx)
        Ball_vY[i] = (Relative_vY[i] + Cy)
        Ball_vX[j] = (Relative_vX[j] + Cx)
        Ball_vY[j] = (Relative_vY[j] + Cy)  
        
        Ball_X[i] = Ball_X[i] + Nx * (Ball_Diameter-Distance)
        Ball_Y[i] = Ball_Y[i] + Ny * (Ball_Diameter-Distance)
        Ball_X[j] = Ball_X[j] - Nx * (Ball_Diameter-Distance)
        Ball_Y[j] = Ball_Y[j] - Ny * (Ball_Diameter-Distance)
      EndIf
    EndFor
  EndFor
EndSub
 


If this is not clear then perhaps avoid this or consider trying using a physics engine to do it for you, such as the LDPhysics (Box2D) method.

 

===============

 

 

Here are all the winning Small Basic articles from November:

 

Guru Award Small Basic Technical Guru - November 2013  

Gold Award Winner

 

litdevDynamic GraphicsEd Price: "Incredibly detailed. A fantastic resource to keep coming back to! From the comments: "Wanted to say WOW - this is great!" and "Awesome. Thanks""

Silver Award Winner

 

Nonki TakahashiHow to Make a Check BoxEd Price: "Well formatted and in-depth how-to article! Great job!"

Bronze Award Winner

 

Joe DwyerWhy Small Basic is a great programming language for beginnersEd Price: "A well-articulated value statement for Small Basic! Thanks, Joe!"

 

Congratulations to litdev, Nonki and Joe!

Also worth a mention were the other entries this month:

 

You can find all the Guru winners (for all the Microsoft technologies) here: TechNet Guru Awards - November 2013

 

Thanks again to LitDev!

   - Ninja Ed

Small Basic Interview - Nonki Takahashi!

$
0
0

Welcome to our interview with Nonki Takahashi!

In the TechNet Guru contest (for Small Basic), Nonki has 4 gold medals and 8 total medals (see TechNet Guru: The Most Frequent Award Winners).
  

 

Who are you, where are you, and what do you do? What are your specialty technologies?
I am a BASIC lover living in Tokyo, Japan.  I have run a small company that manages rental apartments.  Before that, I was a software engineer for 27 years.
 
 
What are your big projects right now?
This is my hobby but I'm trying to write a Go game program and it has AI (artificial intelligence) with JavaScript.  In early stage of this project, I made a Go program with Small Basic.  At the moment, in my program, human Go players are stronger than computer programs.
 
 
What programming languages do you use?
I use Small Basic, JavaScript and Ruby.  Small Basic is the easiest language to use.  JavaScript program can be run in many platforms - PCs, tablets, smartphones, and game machines.  Ruby is for server side programs for me.
 
 
What do you do with TechNet Wiki, and how does that fit into the rest of your job/school?
I wrote many articles about Small Basic on TechNet Wiki.  These information may be useful for Small Basic programmers including myself.
 
 
What is Small Basic for? Who is it for?
It's a compact programming language for everyone who want to write small programs and to learn programming.
 

And here is Nonki's self portrait that he made in his own drawing program (created with Small Basic):

Nonki Takahashi's avatar 

 

 
On what articles have you collaborated with other community members on #TNWiki? What was that experience like?
For the article "Small Basic", I added an image and translated the article into Japanese.  That was a good experience, and I'd like to update this article in the future.  
 
 
What is it about Small Basic that interests you?
Ease of writing programs because it's small.
 
 
On what Wiki article do you spend most of your time?
Small Basic: Difference Between Local and Remote.
 
 
On what Small Basic programs, extensions, or TechNet Wiki articles have you collaborated with other community members? What was that collaboration experience like?
I wrote the Small Basic Code Block Generator (Formatter) specially for creating a TechNet Wiki code block.  Some members uses this tool for their TechNet Wiki articles.  It's a great honor.
 
 
What was your favorite Small Basic program that you've worked on?
Shapes Editor and Code Block Generator. 
 
 
What are your favorite Small Basic programs (from anyone)?
SnakeBite, Soda Pop Showdown, and SokoCUTE.
 
 
What are your top 3 favorite Small Basic extensions?
LitDev Extension, I/O Extension, and Data Extension.
 
 
What are the Small Basic learning materials that you recommend people to use?
Joseph Dwyer's Book "Principles of Programming: Basic Concepts".
With this book, beginners can learn such basic concepts - editor, window, object, method, input, variable, if .. then statement, loop, array, pixel, properties, event - all about for programming. There are a lot of sample programs written in Small Basic. I think this book and Small Basic are the best combination to start learning computer programming with Windows PC.
 
 
Who has impressed you in the Small Basic community, and why?
Litdev does.  He is updating a exellent extension, answers very well in Small Basic Forum, and runs “Challenge of the Month” every month.
   
 
What can people do to help get Small Basic into educational systems?
To continue to provide materials like sample programs, Wiki articles, tutorials, books that are showing attractive points about Small Basic, and learning programming.
  
 
 
 
Thank you to Nonki for all your many contributions to the Small Basic community!
 
Please feel free to ask Nonki more questions in the comments and to thank him for helping Small Basic learners!
 
   - Ninja Ed

4 Color Pattern Game - Small Basic Featured Program

$
0
0

This game came from the December Challenges here: http://social.msdn.microsoft.com/Forums/en-US/39673f2b-1f37-465e-9401-c66455aff42a/challenge-of-the-month-december-2013?forum=smallbasic

 

Game Challenge

  1. Write a clone of the Simon game.

 

From NaochanON:

Wednesday, December 04, 2013 12:58 PM

 

 VJL218-0   

Simon image changed. Clicked color visible. 

  

The next day, Nonki Takahashi posted this:

Thursday, December 05, 2013 12:29 PM

                    

I started to program Simon game: FHV760.

At first, I created a mask pattern below with this program and GIMP.

Mask bitmap for Simon game

 

 

Later that day, Nonki Takahashi posted his new version:

Thursday, December 05, 2013 2:21 PM

 

This is my game challenge: FHV760-5.

Screen shot of a program Simon 0.2

 

 

Thanks to Nonki and NaochanON for these great games!

   - Ninja Ed

 

Become our FIRST Microsoft TechNet Small Basic Guru of 2014!!

$
0
0

Happy New Year!

Time for a fresh start!

We're looking for the first Gurus of 2014!!

This is your chance to make your mark on the Microsoft developer community.

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

 

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

 

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

 

HOW TO WIN

 

1) Please copy over your Microsoft technical solutions and revelations to TechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

 

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

 

Winning this award in your favoured technology will help us learn the active members in each community.

 

Feel free to ask any questions below.

 

More about TechNet Guru Awards

 

We have two contributions so far and 14 days to go!

 

Thanks in advance!

   - Ninja Ed

Small Basic Portal - Featured TechNet Wiki article

$
0
0

Wiki: Small Basic Portal

This article is a portal that categorically lists all the Small Basic articles that are on TechNet Wiki. Please add more Wiki articles about Small Basic here:

Wiki: Small Basic Portal

     

Before we unravel this article, did you know that Small Basic is the perfect tool for kids to learn how to program? It used to be that a dad would put his tweenager down in front of Visual Basic, they'd scratch their head and run off.

But now we have Kodu for the little ones (my Four year old daughter is learning it; I'm starting my Three year old on developing some basic mouse and click skills in Purble Place and Paint). And then I'll start my 7 and 8 year old daughters on Small Basic soon (they're progressing through Kodu quickly).

I made this blog post that gives 47 testimonies of kids, age 8-13, who have used and learned programming on Small Basic (my kids aren't even on this list yet): http://blogs.msdn.com/b/smallbasic/archive/2012/10/25/small-basic-elementary-student-testimonials.aspx

  

Now, we'll take a snapshot in time of the goodness you can currently find on this portal...

Getting Started

Overview

Advanced Tips

Extensions

How To

Samples

Troubleshooting and Known Issues

 

And then also check out all the other portals on this page:

  

And make sure you go here for all the latest Small Basic articles: Wiki: Small Basic Portal

 

Thanks to Nonki, LitDev, and all the contributors who made these articles!

Have a great Wikiweek

  - Ninja Ed

Small Basic Featured Game - Death Valley by GoToLoop

$
0
0

From Jibba Jabba...

 

"I'd like feature GoToLoop's conversion of "Death Valley" for the TextWindow.

It's a classic piece of code that demonstrates advanced use of the TextWindow producing an informative code sample and very playable game.

It uses multi-threading (parallel processing) to "overcome the lack of an InKey() analogous function for the TextWindow" and demonstrates the rarely used Program Arguments operation and property, and, File.GetSettingsFilePath() operation.

Here's the Import ID KTX387-2  and link http://smallbasic.com/smallbasic.com/program/?KTX387-2

Runs locally. Mad."

Thank you to GoToLoop for the great contribution to our community!

   - Ninja Ed

 


Spread the Love! Be our Small Basic TechNet Guru, this Valentine's Day / Month

$
0
0

TechNet loves you!

 

We love your contributions at TechNet Wiki sooo much that we give you more than just love in return...

We give you NOTORIETY, GLORY... and VIRTUAL MEDALS!

That's not all, this love we have, together, it flows both ways my friend.

You give us stuff, we give you stuff, like interviews, recognition points, Ninja Belt rankings, and of course front page love!

If the love is strong enough, who knows where it could end! We may even invite you into secret clubs and other initiatives.

So why not spread the love a little further this Valentines, with more than just a cheap card from the highstreet...

Express your love for your favourite technology in a TechNetWiki article!

Pour your heart out to us, capture our hearts and woo us with your prowess!

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

 

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

 

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

 

HOW TO WIN

 

1) Please copy over your Microsoft technical solutions and revelations to TechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

 

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

 

Winning this award in your favoured technology will help us learn the active members in each community.

 

Feel free to ask any questions below.

 

More about TechNet Guru Awards

 

Thanks in advance!

   - Ninja Ed

Small Basic Challenges of the Month! February 2014

$
0
0

It's time for another set of Small Basic challenges! Thanks to LitDev for hosting this. And...

Have fun!

 

These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic.  Some will be easy, some will be hard - but they will all make you think, and more importantly be GREAT FUN!

Please post your solutions / partial solutions / questions / feedback etc. into this forum thread that will remain 'sticky' for the month.  The only rule is that your solution must use standard SmallBasic methods (no extensions).

It would be good if people could post their problems with these challenges (in this thread) so that a discussion can start so that everyone can learn from each other.

Also post feedback (in this thread) on the kind of challenges that you want to see more of in the future.

Curriculum Challenges 3.2

  1. Write a program to read in a user's name, then create an array of the letters using Shapes.AddText for each letter.  Then animate the Text shapes in the array to reveal the name on the GraphicsWindow.
  2. Write a program using arrays to store 20 balls and move them all in some way on the GraphicsWindow. 
  3. Write a program to shuffle a pack of cards and add the shuffled cards to a stack so they can be 'popped' or dealt.

 Graphics Challenge

  1. Draw a dial (perhaps a speedometer or some other dial).  It should be able to animate as a value is changed.
  2. Write a short turtle program (10 lines or less) to draw interesting patterns.  Here is an example to get you started - try different mathematical combinations.

 

Turtle.Speed=10For i =1To600Turtle.Move(10)Turtle.Turn(i*11)EndFor


Text Challenges

  1. Write a program to write and read Morse Code (dots and dashes) or even use sound in some way.

Maths Challenges

  1. Write a program to solve quadratic equations, like x2 - 8x +15 = 0 has solutions x = 3 and x = 5.
  2. Extend it if possible to solve cubic and quartic equations.


Game Challenge

  1. Write a simple Snake game.

 


Community Suggestions (by Zock77)

  1. Write a program in which the user will draw something with his mouse. Then, when he inputs that he is done, the program will replay in real time what the user drew.

 

Community Suggestions (by Nonki)

  1. Make a tr (UNIX-like translate) command.
  2. Draw a Bezier or spline curve.
  3. Measure pixel width of a text in GraphicsWindow.


Do you have an idea for a future challenge? Please post it in the forum here!

 

Thanks again to LitDev and the community! Enjoy!

   - Ninja Ed

The Developer’s Reference Guide to Small Basic - The First 5 Chapters

$
0
0

So a good Reference Guide is always appreciated!

And that's why Phil Conrod was good enough to write one for us and then to allow us to upload the first five chapters!

 

You can find the first five chapters on TechNet Wiki:

1. Introducing Small Basic 

2. Overview of Small Basic Programming 

3. Program Object 

4. TextWindow Object 

5. GraphicsWindow Object 

 

The Developer’s Reference Guide

These chapters are adapted from the book The Developer’s Reference Guide To Microsoft Small Basic by Philip Conrod and Lou Tylee.

To purchase this book in its entirety, please see the Computer Science For Kids web site.

 

Thank you!

   - Ninja Ed

Small Basic Challenges of the Month - March 2014

$
0
0

These challenges come our way from litdev.

The challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic.  Some will be easy, some will be hard - but they will all make you think, and more importantly be GREAT FUN!

Please post your solutions / partial solutions / questions / feedback etc. into this thread that will remain 'sticky' for the month.  The only rule is that your solution must use standard Small Basic methods (no extensions).

It would be good if people could post their problems with these challenges so that a discussion can start so that everyone can learn from each other. Post your problems here.

Also post feedback on the kind of challenges that you want to see more of in the future.

Curriculum Challenges 3.3

  1. Write a TextWindow program to create some random sums for the user to answer.
  2. Write a program to calculate the area of rectangles, triangles or circles, when the user enters their size. 
  3. Write a program to round any number for 2 decimal digits (e.g. 3.1419 is 3.14, 7.1 is 7.10 and -20 is -20.00).

 

 

Text Challenge

  1. Write a program to capitalize the first letter of each word in a text.
  2. Write a program to delete any non alpha-numeric character from a text.


Graphics Challenge

  1. Write a program to simulate a barrel rolling down a slope (see game challenge).
  2. Draw a picture of an alien.

 

Game Challenge

  • Write a simplified version of the Donkey Kong game - jump over barrels to get to the top.


Community Suggestion (by Zock77)

  • Pick an extension to base a challenge off of.  Lets start with the Fremy Extension; pick an FC object and show what can be done with it.


Community Suggestions (by Nonki)

  1. Make a hexadecimal dump program for UTF-8 encoded text file.
  2. Make a subroutine to draw polygon with given vertices.
  3. Make a subroutine to fill polygon with given vertices

 

Do you have an idea for a future challenge? Please post it here!

 

Thanks again to LitDev and to the entire Small Basic community!

We'll see you... clap clap... in the forum!

   - Ninja Ed

 

 

Small Basic Guru - Spring Forward!!!

$
0
0

You can be our next Spring Small Basic Guru!!!



In the northern hemisphere at least, Spring is here! (apparently)

 

And at TechNet Wiki, we're hoping you're all hatching new ideas for this month's TechNet Guru competition!

We're looking for more shoots and leaves of wisdom to sprout forth from the great tree of MSDN/TechNet life.

We're also hoping some of our old Guru winners will be coming back out of hibernation and flexing their grey matter!

So, pick up your pen and MARCH into TechNet History! This could truly be the start of something BEAUTIFUL!

What delightful new arrival will YOU be bringing into this world?

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

 

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

 

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

 

HOW TO WIN

 

1) Please copy over your Microsoft technical solutions and revelations to TechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

 

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

 

Winning this award in your favoured technology will help us learn the active members in each community.

 

Feel free to ask any questions below.

 

More about TechNet Guru Awards

 

Thank you!

   - Ninja Ed

Small Basic Guru Awards - February 2014

$
0
0

Congratulations to Nonki and Joe for their February contributions!

 

These are the Small Basic results for the TechNet Guru Awards, February 2014 !!!! You can find all the awards here: TechNet Guru Awards - February 2013

 

Here are our Small Basic award winners...

 

Guru Award Small Basic Technical Guru - February 2014  

Gold Award Winner

 

Nonki TakahashiHow to Install Small Basic onto Windows 8.1Ed Price: "Wow, this is incredibly valuable. Thank you for getting us all these steps! The images also help a lot!"

Silver Award Winner

 

Nonki TakahashiSmall Basic: ColorEd Price: "This is a fine addition to the Small Basic library! A great deep dive on colors! "

Bronze Award Winner

 

Joe Dwyer (DwyerTech)Olympics - Small Basic Style!Ed Price: "This is a great sample and fun game! Thanks, Joe!"

Also worth a mention was another entry this month:

 

If you haven't contributed an article for this month, and you an article in mind, here's your chance! :D

   - Ninja Ed

 

Small Basic Featured Article - Grammar Basics

$
0
0

LitDev and Nonki have been helping us build a strong library of Small Basic content on TechNet Wiki.

Please check out this article from :

Small Basic: Grammar Basics

 

This article describes the main language elements or 'grammar' used by the Small Basic language and gives some suggestions for further study.  There are several 'getting started' guides, this is just another with a slightly different emphasis.

The Small Basic language has some main grammar features that this article focuses on:

  1. Keywords- these control the logic of the program such as loop (repeat something For or While) or conditional (branch where the program goes depending on the value of a variable - If), define a subroutine (Sub) etc - they are colored blue in Small Basic.
  2. Variables (black) - these are names given to things we use and store and do things with - think of them like draws that we can put things in and store these things while we do stuff with them.
  3. Literals(orange) - Values that are not stored in variables, like a number 3.14 or set of characters in quotes "Hi There!".
  4. Objects(gray) - these are special functions that have been provided to do certain things, like add a picture to a display.  There are several of them in Small Basic, like TextWindow, Clock etc.
  5. Methods, Parameters and Events (dark red) - these are found for the different objects by typing a dot after the object.  They do the special things - they may also need some data to work with (called parameters) or return some data.
  6. Comments(green) - anything after a ' (single quote) is not read by the compiler it is just comments for you to remember what you did or why - make good use of these.

 

The first program we usually write in any language is the 'Hello World' program that writes this out.

In Small Basic, this is:

TextWindow.WriteLine("Hello World")

TextWindow is an Object
WriteLine is a Method, the brackets show that this method needs some data to work with - in this case, what to write.
"Hello World" is what we want the write and it is put in double quotes - and is called a literal since it is not a variable, but is just a value (not in a draw).
 

For more info, see the Statements sections in the article...

Statements

  

Once again, thanks to for this great article!

   - Ninja Ed

 

 


How do you program "Hello World" in Small Basic?

$
0
0

Like this...

  

TextWindow.WriteLine("Hello World")

  

TextWindow is an Object
WriteLine is a Method, the brackets show that this method needs some data to work with - in this case, what to write.
"Hello World" is what we want the write and it is put in double quotes - and is called a literal since it is not a variable, but is just a value (not in a draw).

  

Read more here (article by ):

Small Basic: Grammar Basics

  

   - Ninja Ed

 

A Brief History of BASIC

$
0
0

The BASIC language was developed in the early 1960's at Dartmouth College as a device for teaching programming to “ordinary” people. There is a reason it’s called BASIC:

B (Beginner's)
A (All-Purpose)
S (Symbolic)
I (Instruction)
C (Code)

When time-sharing systems were introduced in the 1960’s, BASIC was the language of choice. Many of the first computer simulation games (Star Trek, for example) were written in timeshare BASIC. In the mid-1970's, two college students decided that the new Altair microcomputer needed a BASIC language interpreter. They sold their product on cassette tape for a cost of $350. You may have heard of these entrepreneurs: Bill Gates and Paul Allen!

Every BASIC written since then has been based on that early version. Examples include: GW-Basic, QBasic, QuickBasic, Visual Basic. All the toy computers of the early 80’s (anyone remember TI99/4A, Commodore 64, Timex, Atari 400?) used BASIC for programming. Small Basic continues the tradition of BASIC programming. It uses the simple concepts of the early BASIC language with a modern development environment.

This chapter provides an overview of the BASIC language used in the Small Basic environment. If you’ve ever used another programming language (or some version of BASIC), you will see equivalent structures in the language of Small Basic.

Read the full chapter here:

The Developer’s Reference Guide to Small Basic: 2. Overview of Small Basic Programming

 

The Developer’s Reference Guide

This chapter is adapted from the book The Developer’s Reference Guide To Microsoft Small Basic by Philip Conrod and Lou Tylee.

You can purchase the book here:

  

You can find more online content here:

Small Basic >Small Basic E-Books >The Developer’s Reference Guide to Small Basic > 2. Overview of Small Basic 

   

Thanks to Philip Conrod for the great resource!

   - Ninja Ed

The Adventures of BARREL APE in Small Basic World!!! - by Nonki

$
0
0

First, it started with the Small Basic monthly challenges from LitDev:

http://social.msdn.microsoft.com/Forums/en-US/221d14e0-bd05-4ac2-923f-79da577f8bf1/challenge-of-the-month-march-2014?forum=smallbasic

 

Amongst those challenges is the Game Challenge:

Game Challenge

  • Write a simplified version of the Donkey Kong game - jump over barrels to get to the top.

 

So, Nonki must not have read the directions. He seemed to have missed the word "simplified" there! =^)

 

First he made a barrel:

Nonki Takahashi - Saturday, March 08, 2014 7:01 AM

This is my first step for graphics challenge 1: FGM769.

Screen shot of a program Simple Donkey Kong 0.1a

I made a bitmap of a barrel from this output above with GIMP 2.

Bitmap for a barrel

That led to a physics test on animating the barrel!

Nonki Takahashi - Monday, March 10, 2014 10:18 AM

This is my second step for graphics challenge 1: FGM769-0.
This version simulates a barrel without friction.

 

That's so cool! But he was just getting started! The first barrel on this next pass seems to be possessed by a ghost! =^)

Nonki Takahashi - Tuesday, March 11, 2014 4:34 PM

This is my latest graphics challenge 1: FGM769-1.

Screen shot of a program Simple Donkey Kong 0.3b - just shows barrels

 

Next, he added in the graphics of the characters...

Nonki Takahashi - Thursday, March 13, 2014 12:02 PM

This is my first step for game challenge: FGM769-2.

Screen shot of a program Donkey Kong in Smal Basic World 0.4a

 

You see that image above first (like a game start screen), and then it moves to the gameplay!

Nonki Takahashi - Friday, March 14, 2014 7:05 AM

This is my second step for game challenge: FGM769-3.

Use arrow keys to move Mario.

Screen shot of a program Donkey Kong in the Small Basic World 0.5b

 

Ha! You get a Game Over screen if you run out of lives! Refresh the page to start over! Hold down up to "super jump" up! Don't worry, the game wasn't done yet! =^)

Nonki Takahashi - Monday, March 24, 2014 8:00 AM

I uploaded latest version of game challenge: FGM769-5

Screen shot of a program DONKEY KONG in the Small Basic World 0.7

 

So there you go! You still super jump. I'm getting the Game Over screen a little early, but it's still fun to play around with!

 

Thanks to Nonki Takahashi for making the game!

   - Ninja Ed

 

Small Basic - April Challenges! (no fooling)

$
0
0

A brand new set of challenges from litdev...

These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using SmallBasic.  Some will be easy, some will be hard - but they will all make you think, and more importantly be GREAT FUN!

Please post your solutions / partial solutions / questions / feedback etc. into this thread that will remain 'sticky' for the month.  The only rule is that your solution must use standard SmallBasic methods (no extensions).

It would be good if people could post their problems with these challenges so that a discussion can start so that everyone can learn from each other.

Also post feedback on the kind of challenges that you want to see more of in the future.

Curriculum Challenges 3.4

  1. Use the Timer event to provide a countdown with the remaining time displayed in a GraphicsWindow.
  2. Use the Mouse events to draw rectangles on the GraphicsWindow, mouse down to start the top left and mouse up to finish with the bottom right corner.
  3. Use the key events to make a 'code typewriter' that displays a different letter to the one typed using a simple conversion like reversing alphabet a->z, b->y, c-> x etc.
  4. Use the button events to display 11 buttons (0-9 and .) laid out like a number keypad to enter numbers using the mouse.

Text Challenge

  • Write a units converter program, where the user can select the units to convert and enter a value for conversion.  Perhaps lengths, weights or currency.

 

Graphics Challenge

  • Write a graphical 'dashboard' with buttons and textboxes as required to control a school bell timing system.  The resulting system should then sound a bell at the required intervals that can be configured by the interface.  The configuration(s) should be saved and loaded to a file.

 

Physics Challenge

  • Write a program to calculate the distance traveled when the user enters an acceleration profile.  For example:

2m/s/s for 5 sec, then 0m/s/s for 3 sec, then -4m/s/s for 1 sec

Answer 63m

 

Game Challenge

  • Write a vertical scrolling game with obstacles that appear from above and move down.  The player must dodge the obstacles by using arrow keys, probably just left and right.


Community Suggestions (by Nonki)

  1. Create a program to remove automatically added comments from downloaded Small Basic source program such as following manner.

    Before:
    ' The following line could be harmful and has been automatically commented. '   _buf = File.ReadContents(filename)
    After:
       _buf = File.ReadContents(filename)
  2. Make a chess clock.
  3. Create a program to measure and calculate tempo [quarter note (crotchet)/minute] of Sound.PlayMusic().  In other words, count how many quarter notes (such as "C4") can be played in a minute.

 

Do you have an idea for a future challenge? Please post it here! 
 

Thanks again to LitDev for hosting this challenge!

   - Ninja Ed

April fools is out of the way; now let's find a Small Basic April Genius!

$
0
0

Special thanks to XAML guy for hosting this contest!

 

The name "April" is derived from the Latin verb "aperire", meaning "to open" in reference to being the season when trees & flowers start to "open".

And I have to say, judging from the quality of contributions in recent months, I can't wait to OPEN and read this month's community gold!

Things are hotting up in TechNet, and the Wiki has become a shining example of what the community has to offer.

If you can find the time to enrich us with your latest revelations, or some fascinating facts, then not only will you build up a profile and name for yourself within the gaze of Microsoft's very own glitterati, but you will be adding pages to the most respected source for Microsoft knowledge base articles. This could not only boost your career, but would benefit generations to come!

So don't be an April fool. Please realise the potential of this platform, realise where we are going, and join us in growing this community, learning more about you, and opening the minds of others!

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

 

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

 

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

 

HOW TO WIN

 

1) Please copy over your Microsoft technical solutions and revelations to TechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

 

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

 

Winning this award in your favoured technology will help us learn the active members in each community.

 

Feel free to ask any questions below.

 

More about TechNet Guru Awards

 

Thanks in advance!

   - Ninja Ed

Viewing all 669 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>