digital literacy for everyone


quasi programming concepts

[lit] although quasi was designed to teach 7 programming concepts, these concepts are common or illustrative to some degree in many, if not all programming languages. ultimately, the computer just performs binary arithmetic on data and runs related instructions based on numbers, which are its commands. but that is used to create programming languages, which let you instead focus on easier concepts like: [[variables]] -- supply a word or a codename to refer to a piece of data like a number or collection of alphanumeric characters [[input]] -- get data from outside the program [[output]] -- send data from the program to the screen, or outside the program [[basic-math]] -- process number data, or deal with other data such as colours or letters in numeric terms [[loops]] -- designate a section of code to run more than once [[conditionals]] -- designate a section of code to run, or a loop to stop, if certain values match or exceed others [[functions]] -- designate a section of code to be accessed like the commands which are built into the language you could learn functions in less than a day, and if you are good at math then you already understand them on some level. functions are the hardest feature of quasi for a first-time coder to understand, because they seem to do something that is only useful if you already understand coding and code enough to use them. in fact you can technically do without them-- though you would miss out on a feature that makes coding so much easier to understand and easier to do, that not understanding functions would actually make a lot of coding tasks seem more difficult, not easier. on the other hand, if you understand functions then you understand coding in quasi-- and if you understand the six other (easier) concepts, you understand most of what functions do already. quasi is designed to teach [[variables]] first. other languages, including python and bash, javascript, lua and c++ all use these 7 concepts. you can try quasi [lit]here[lit] #### license: creative commons cc0 1.0 (public domain) #### # a very boring example of basic math in quasi x 1 plus 15 plus 25000 times 4.5 print x 1 : plus 15 : plus 25000 : times 4.5 : print
quasi main page: [url][url] home: [lit][lit]