Learn How to Read Binary in 5 minutes

June 22, 2018

via GIPHY

What is Binary?
  • Binary is nothing more than a System of Counting
  • Everything in a computer’s brain comes down 0’s & 1’s
  • Binary existed before computers
  • Binary is an ON or OFF counting system, all or nothing. ‘1’ represents ON, ‘0’ represents OFF.
  • Because each digit in binary can have 2 values, the base is 2 (see the example below for clarification)
Don’t worry if it doesn’t make sense yet…
Let’s look at an example to clarify this..
  1. Below is an 8 digit binary number
  2. We calculate binary from right to left

3. Because it’s a base 2 system, each digit is 2 to the power of (n). (n) refers to the placement of the number.

4. A binary number is pretty much telling us whether or not we are using that value

5. The 1 value tells us we are using that value (represented by green checkmarks) & the 0 value tell us we are not using that value (represented by red X’s).

6. The first digit in this example is representing that the value 2 to the power of 0 is ON

7. The second digit (2 to the power of 1) is OFF so the value is 0.

Let’s represent those 2 values in our drawing..
Let’s calculate the rest of the values & add the ones that are ON together…
What we just did can be represented in the following equation:
If Binary is just a counting system, what do people mean when they want to write something in Binary?
  • What they mean is how to spell things with ASCII (American Standard Code for Information Interchange)
  • ASCII is a way to convert a computer’s data (which can only be in numbers) & turn it in to letters.
  • ASCII chart assigns a character to each value represented by a byte (8 bits/digits) of binary.
Let’s take a look at our previous example..
  • This example represents an Uppercase Y
  • Since 8 digits of binary can represent up to 255 values, the ASCII chart has 255 letters & symbols to choose from.
credit: AlfredState.edu

Let’s try another example:

Now that we deciphered the two letters above let’s take a look at the following example & read what it says:

01011001 01101111 01101100 01101111

Let’s evaluate….

Since we already looked at the breakdown for some of these binary letters, we only have one 8 digit binary letter left — the third one, which comes out to a lowercase l.

If you read the word it spells out…

”Yolo”

Hope this helped you learn how to read binary :) Happy Coding!




Also in Stories by Linda Vivah on Medium

ES6 JavaScript: Understanding Let & Const

December 27, 2018

via GIPHY

There were many updates brought by ES6. One of the Syntax updates introduced was the concept of declaring variables with let andconst instead of var

To understand whylet & constwere introduced, we must first understand how var works & the concept of hoisting → That being said, here are the 5 questions we will cover in order:

  1. HOW DOES VAR...

Read More

Best Coding Books for Babies/Kids

October 18, 2018

I get a ton of questions regarding the coding books I read to my 15 month old son, specifically on my Instagram.

Since I have purchased quite a few, here are my top 4 coding book suggestions for babies/young kids:

1. ABCs of the Web

A great introduction to basic coding and web concepts for children in the form of the alphabet!

2. Web Design for Kids

Introduces basic coding concepts in an engaging...

Read More

Resources I used to pass the AWS Solutions Architect — Associate Certification Exam

August 29, 2018

I recently passed the AWS Solutions Architect Associate Exam and would like to share some of the resources I used to study for the exam. I used 2 different online courses to study, did the labs included with those courses, & took a few practice tests.

Background: My goal when studying was to really understand and be able to use what I learned on the job. I currently work as a web developer so I do...

Read More

10% Off Your First Order!

Use Coupon Code HIGHFIVE