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

Small Basic with Xamarin Workbooks

$
0
0

This post introduces Microsoft Small Basic within a Xamarin Workbooks Environment.

Xamarin Workbooks is a free, open-source learning environment that has assisted thousands of Windows users in learning and perfecting basic C#. Microsoft is now leveraging the app as a tool for teaching an introductory programming language, Small Basic, in a method readily available to the average Windows user.

Small Basic’s simple command set combined with the educational features of Xamarin creates the perfect localized environment for children or beginners learning to code, producing what is essentially “Small C#.”

Xamarin Workbooks

Each Xamarin Workbook combines the written text of a tutorial or webpage with the technical steps of a sample C# program. It also provides interactive preview windows and “run” options for testing small segments of code on the same page directly within the app.

 

Figure 1: An example of the Xamarin Workbook environment. The document is led with a text cell, and the SmallBasic library is imported in another code cell. A description is inserted in another text cell. Notice that the code block contains a “run” option along with “add code,” “add text,” and “delete cell” buttons.

Each space for writing text or code is known as a cell. One can manipulate cells using the “add code,” “add text,” and “delete” buttons in an existing cell.

Workbooks typically begin with a brief text introduction to the learning task, immediately followed by code cells. Any user can follow the instructions to achieve a certain outcome.

Small Basic

Small Basic was created as an educational coding language, a step between block programming and Visual Basic. It can be considered the preliminary step to more advanced programming and development techniques.

 

Getting Started with Small Basic + Xamarin Workbooks

Tools:

  • Xamarin Workbooks: Get the Xamarin Workbooks Desktop App for Windows here.
  • Workbooks Package: A NuGet package integrating the Small Basic library with Workbooks already exists. Follow setup guide below. The package can be found here.

Setup:

NuGet is a Windows package manager that allows users to import packages from the web. This includes the package containing the Small Basic library for Workbooks.

  1. Open Xamarin and start a new, blank project.
  2. Choose "File", "Add Package…", and proceed to open the NuGet Package Manager.
  3. In the NuGet search bar, find Workbook 1.2.0.

Figure 2: Using the NuGet Package Manager to import SmallBasic.
  1. Selecting this package will create a new cell in your Workbook which imports the Small Basic library, as seen in Figure 1.
  2. Proceed to write and practice your new project in Xamarin while enjoying the features of Small Basic?

Issues?

For more guides on the basics of Xamarin Workbooks, check out the Xamarin website here.


Viewing all articles
Browse latest Browse all 669

Trending Articles



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