Computer Programming for Beginners | Primitive Data, Nouns, Adjectives & Verbs | Ep22
To understand programming languages we must first understand primitive data. Primitive just means basic like a cave man is a primitive human being. So when we talk about primitive data we're really talking about basic forms of data. It's data in the most simplest form. Primitive data could either be a string, integer, float or boolean. A string like this one can consist of regular or special characters and numbers; they're either wrapped in ‘single’ or “double” quotes. Integers are whole numbers, they cannot have a decimal place such as 100, 200 or 300, these are all whole numbers. However there is another number primitive type called float; floating point numbers can have a decimal place and fractional numbers. For example if we work with currency such as one pound fifty we are using the decimal number 1.5 so floats are good for currency, weights and such like. If we didn’t have primitive data then it’d be impossible for us to create any form of program, you need the basics and then you can evolve from there. Next, to really understand programming languages we need to understand languages themselves. We have a system of communication whether it’s French, English or Japanese it has nouns, adjectives and verbs. Likewise we use a similar system by analogy for programming languages; don’t forget programming languages where created for us programmers to communicate with the computer; just like we created languages to communicate with each other. Nouns allow us to describe objects coupled with adjectives to describe the nouns. For example 'the color of the car is red'. ‘Color’ is the noun but on its own it isn’t enough, we need the adjective ‘red’ which describes the noun 'color'. Finally we have verbs. In programming verbs are functions or actions. Functions allow us to describe and map out a verb and perform that action within our program. Programming 101 course: https://www.youtube.com/playlist?list=PLGC-hHIh7l5s6Spz86OT1u0A7kvQH-2B0 This tutorial is brought to you by http://www.avelx.co.uk/ - Coding tutorials to help you grow.
Download
0 formatsNo download links available.