Page 1 of 1

PureBasic in the Classroom

Posted: Thu May 09, 2024 7:00 pm
by normeus
I am just wondering if anyone who is using PureBasic in a classroom setting has any pointers. I currently have no free time to do it, but in the near future I figure it would be nice to teach people some basic logic, like variables, loops, Arrays, if then else, etc... using Purebasic.

P.S.
I am posting it as a remider to not flake out and do it one day.
Norm.

Re: PureBasic in the Classroom

Posted: Fri May 10, 2024 7:20 am
by Demivec
I would think you would use any example of a series of instructions to accomplish a task. Food preparation (i.e. recipes) is a common experience to most people and can be used as something that can be illustrated with PureBasic program elements. Other examples include simple game playing (the legendary guess the number game), deciding what clothes to wear (i.e. choosing clothes based on activity, then variations of color and other attributes).

The idea is to model a process that people already follow and are familiar with by substituting step by step the elements of PureBasic that accomplish the same are similar things. Once initial elements are understood everything else is just adding more complexity and variation.

The initial stages of learning and instruction are to implement a series of deterministic steps that are always the same with visual output.

The next steps might include:
  • Variable input with output in a fill-in-the-blank type structure (enter your name, display "hello [name]")
  • Adding conditional statements based on input; adding first repetitive manual statements
  • Looping for repetition
  • Adding procedures for repetitive tasks, then with variables parameters
  • Data statements
  • More complex data types Arrays, lists, and/or maps
  • More complex GUI after perhaps only using console initially
  • Using files for input and output
  • Structured data, and so on

That should cover the first month to a year of classes depending on age group. :)

Re: PureBasic in the Classroom

Posted: Fri May 10, 2024 8:35 am
by AZJIO
normeus wrote: Thu May 09, 2024 7:00 pm if then else
if...

Re: PureBasic in the Classroom

Posted: Mon Jun 10, 2024 7:36 am
by normeus
Thank you guys for the replies. I have to check my settings since I do not get emails about replies anymore. The basics of teaching I have, but I was more curious about people using actual PureBasic to teach.

Thank you again.
Norm.

Re: PureBasic in the Classroom

Posted: Mon Jun 10, 2024 3:44 pm
by skywalk
Teachers must quickly provide students with positive feedback.
This can be an audible hooray or some visual effects like rainbows and stars.
As students mature in age, their desire for accomplishment grows.
Else they lose interest and dread further study.

Purebasic provides all the tools necessary to teach young and old.
Just think of quick projects that accomplish something tangible for the target age group.

Printing their name in an endless loop is a start.
Recording their voices and playing back in a distorted voice is more advanced.
The eagerness of your students is dependent on your imagination and skill.