Skip to content

Instantly share code, notes, and snippets.

@Arique1104
Last active March 18, 2020 16:36
Show Gist options
  • Save Arique1104/12d5e53d9e79e7e03ac2caabee3e9f87 to your computer and use it in GitHub Desktop.
Save Arique1104/12d5e53d9e79e7e03ac2caabee3e9f87 to your computer and use it in GitHub Desktop.

Beginners Guide to Data Types

For repeaters and everyone else

  1. First, welcome yourself into the space of learning about data. Someone told you implicitly or explicitly that you didn't belong to this world of computer design, and we are here to tell you that they lied!
  2. Secondly, get comfortable. What you're going to learn doesn't come easy the first time, but it does eventually come.

Types of Data

  • integer is a whole number, positive or negative.
  • float is any integer that has a decimal point
  • a boolean is a statement that returns true or false
  • an array is a collection of elements within a bracket []
  • a hash is a collection of elements that are related by values and keys.

A hash has elements that are related to each other, key and values

Hashes are special and require some more explanation, but for now it suffices to know that it acts a lot like an ecel document where there is a column of data in Column A, and then a column of data in Column B. Then when you want to title the tops of these columns, you form a relationship between the data.

at least one code block

"This is a string"

booleans look like this 
3 + 6 == 18 => true
and they can get more complicated!

How do we become better programmers? We learn how we learn and make better choices to provide us the better results.

Pusheen on the computer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment