Search This Blog

Showing posts with label small basic. Show all posts
Showing posts with label small basic. Show all posts

Wednesday, 16 September 2015

Small Basic




Image result for small basic


Small Basic es un proyecto que está destinado a hacer la programación divertida de nuevo. Al proporcionar un lenguaje de programación sencillo y fácil de aprender en un entorno de desarrollo acogedor, Small Basic hace que la programación sea muy sencilla. Ideal para niños y adultos por igual, Small Basic ayuda a los principiantes a dar el primer paso en el maravilloso mundo de la programación. 

http://social.technet.microsoft.com/wiki/contents/articles/17328.bienvenido-a-small-basic-es-es.aspx

Thursday, 23 July 2015

Small Basic Features Thread


Image result for small basic

















Unassigned Variables: X = 0? (Small Basic Featured Thread)

RATE THIS
Small Basic handles unassigned variables as equal to zero. The idea is that variables are always available. Let's look at this thread from the Small Basic Forum:
 
SeyfiD started the thread:
I was about to give an introductory programming course using Small Basic. I encountered following issue while playing with it (v1.1 on Windows 8.1 x64):
the single liner below does not compile and display the error "the variable x is used but its value is not assigned", which is expected.
y = x+1
the following single liner however compiles w/o error, and automagically assigns 0 as the initial value for x:
x = x+1
is this expected? if yes, how do you explain it?
 
Liam McSherry answered:
Hi SeyfiD,
This does look like a bug, and probably stems from how Small Basic's variables work.
All variables are always available, even if they were declared in a subroutine/If-Then/loop and haven't been assigned to yet. For example, this will print '-5' to the text window:
TextWindow.WriteLine(x -5)Sub Test x =10 EndSub
As all variables are always available, they contain the "uninitialised" value up until something assigns to them. Small Basic doesn't have concrete data types (like strings and integers and decimals), but has a single data type ("Primitive") that handles cases for all three situations. This means that the uninitialised value varies depending on how you use the variable: use it as a string, uninitialised is empty string (""); use it as an integer, the value is 0; and use it as a decimal, the value is 0.0.
In the case of your code, the compiler is probably recognising that 'x' is assigned to, so it creates 'x' without checking what value it is assigned. The compiler has to find all variables first because you can use a variable "before" (lexicographically) you assign to it. If it didn't, it wouldn't be able to recognise uses of variables before they're assigned to. Doing it this way was likely done to simplify the compiler.
After the compiler's found all the variables, it probably then goes through the program again, checking to make sure that all variable references are correct. Because it constructed the list of variables separately, it doesn't recognise that the assignment in your example should be invalid, and instead allows it. When the code is executed, 'x' is treated as an integer (because it's being added to '1', another integer) and the uninitialised value '0' is used in the addition.
Summary:
    • Bug? Yes.
    • Serious? Not particularly.
    • Fixable? Yes, but it would require a compiler update and would be a breaking change (older programs may become broken).
I imagine, if reported, the Small Basic development team would consider fixing it, but it's not a show-stopper or otherwise high-priority bug, so the fix would likely be slow in coming.

Nonki Takahashi helped clarify:
There is the following description in the FAQ of Small Basic:

What are the unique features of the Small Basic language?

Variables

All variables are global and are always initialized. They can be used before they're assigned.
 
And the discussion still continues! You can join it here:

Small and Basically yours,
   - Ninja Ed

Tuesday, 21 July 2015

Small Basic













Acerca de Small Basic 
Small Basic es un proyecto que está destinado a traer de vuelta a la “diversión” a la programación.
Al proporcionar un lenguaje de programación de pequeño y fácil de aprender en un entorno de desarrollo y acogedor, Small Basic hace que la programación de una brisa. Ideal para niños y adultos por igual,
Small Basic ayuda a los principiantes a dar el primer paso en el maravilloso mundo de la programación.

• El  lenguaje Small Basic se inspira en el lenguaje de programación BASIC original, y se basa en la plataforma Microsoft Net.. Es muy pequeño, con sólo 15 palabras clave y utiliza conceptos mínimos para mantener la barrera de entrada lo más bajo posible.
• El entorno de Small Basic desarrollo es simple, pero ofrece potentes funciones ambientales modernas como Intellisense ™ y ayuda sensible al contexto inmediato.
• Small Basic permite a las bibliotecas de terceros para ser conectado con facilidad, por lo que es posible que la comunidad de extender la experiencia de maneras divertidas e interesantes.
Más Recursos
He aquí algunos ejemplos que ilustran las capacidades de Small Basic. Siéntase libre de añadir más a esta lista por favor.Turtle Plus Flickr • Blackboard • Flickr collage • Game of Life • JetLag • Snake

ver màs:  http://smallbasic.com/


Friday, 22 November 2013

Why Small Basic is a great programming language for kids and beginners ?



By Joe Dwyer:


"Small Basic is a very simple, fully functional, programming language, created as an offshoot of the BASIC programming language which has been around for decades. The simplicity of it makes it a great choice for kids and beginners to learn how to program a computer.

"Small Basic has all the tools needed to create useful programs, but not much more. As a beginner learning to code, you can focus on the core concepts and not worry about all the extras that professional level programming languages contain. Small Basic has capabilities to handle user input, drawing, mathematics, file I/O, etc. It also forces the user to program using statements and terminology that are similar to enterprise level languages. As a beginning programmer this is important because it allows the student to understand the terminology, but focus on learning to program and the core concepts involved."

 

You can read the rest on his blog here:

Why Small Basic is a great programming language for kids and beginners

 Credit:  http://blogs.msdn.com/b/smallbasic/archive/2013/11/22/why-small-basic-is-a-great-programming-language-for-kids-and-beginners-by-joe-dwyer.aspx

 

 

 

 

Tuesday, 22 October 2013

Beginning Small Basic


 
 

The Official Blog of Small Basic

Download Small Basic
http://blogs.msdn.com/b/smallbasic/archive/2013/10/21/beginning-small-basic-review-by-anne-from-upstate-ramblings.aspx



Beginning Small Basic - Review by Anne from Upstate Ramblings


Beginning Small Basic - Review by Anne from Upstate Ramblings

Rate This
http://blogs.msdn.com/Utility/images/star-left-on.pnghttp://blogs.msdn.com/Utility/images/star-right-on.pnghttp://blogs.msdn.com/Utility/images/star-left-on.pnghttp://blogs.msdn.com/Utility/images/star-right-on.pnghttp://blogs.msdn.com/Utility/images/star-left-on.pnghttp://blogs.msdn.com/Utility/images/star-right-on.pnghttp://blogs.msdn.com/Utility/images/star-left-on.pnghttp://blogs.msdn.com/Utility/images/star-right-on.pnghttp://blogs.msdn.com/Utility/images/star-left-on.pnghttp://blogs.msdn.com/Utility/images/star-right-on.png


 

Ed Price - MSFT

Microsoft

MSFT

225,437 Points 26 20 21

Recent Achievements

Blogs All-Star Gallery Contributor III Vanity Award


21 Oct 2013 3:24 PM

·    Comments 0

It's time for a guest blogger!

 

Today's guest blogger is Anne from Upstate Ramblings! Her 13-year-old son taught himself with the curriculum. In Anne's words...

 

Saturday, 31 August 2013

Small Basic: Starfield Simulator










 

You can increase/decrease the speed with the UP/DOWN key up to 60. And if you get to 31, then you enter hyperspace! And don't go to 51if you have epilepsy!=^)


…so that the stars move slowly from the center and speed up as they pass you:

 

 

Code:

 


 

 

Sunday, 11 August 2013

Small Basic – Control Statements (featured article)



 

diagrama

If statement
If statement or If clause is for making conditional branch. If you’d like to show “AM” or “PM” by checking clock, following code and chart are for that. There is another keyword “ElseIf” for this clause. For detail about “ElseIf”, see the next section.
‘ Start
hour = Clock.Hour ‘ Get hour
If hour <12 Then ' hour < 12?
TextWindow.WriteLine("AM") ' Yes: Write "AM"
Else
TextWindow.WriteLine("PM") ' No: Write "PM"
EndIf
' End
And check out the full article here: http://blogs.msdn.com/b/smallbasic/archive/2013/08/10/small-basic-control-statements-featured-article.aspx
Small Basic: Control Statements
Enjoy!
- Ninja Ed

Deja un comentario