Binary is a base-2 numbering system and the final language used by computer hardware. Programmers don't write binary code directly, but it's import to understand how a machine uses transistors to organize billions of bits to represent data. https://fireship.io

#compsci #math #100SecondsOfCode

🔗 Resources

Binary Explanation https://www.kerryr.net/pioneers/binary.htm
Binary history https://www.cs.cas.cz/portal/AlgoMath/NumberTheory/Arithmetics/NumeralSystems/PositionalNumeralSystems/BinarySystem.htm
Hex dump https://hexed.it/

🔥 Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment. 

🎨 My Editor Settings

- Atom One Dark 
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- How do binary numbers work?
- How to computers use binary?
- What is a hex dump?
- How to count in binary?
- When was binary first invented?
- bit vs byte vs nibble
2024-02-04T05:36:35.864Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
28d48e18-103b-4d89-84cc-59efcf4fd986
ee50dde5ac3dbb4fb0e60933e151d5dd29e30d971755d86e9da5f8df0b4cc4c1
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
Binary, a numbering system where all possible values are represented by 2 symbols, like on off, true false, or 1 and 0.
Computers handle alt data as a stream of binary numbers because from a hardware perspective, it's much easier to represent 2 values with a transistor as opposed to ten values with that system they taught you in school.
It first appeared in ancient Egypt with horus I fractions and is used independently in many other cultures, like for the I Ching in China, and is the basis for Morse code where every letter of the alphabet is represented by 2 different sounds.
When the first computers arrived, They were programmed by manually flicking switches or with punch cards used to represent binary values.
Today, modern microchips use Boolean algebra to combine logic gates like and or not to execute binary code billions of times per second, allowing you to share silly videos with your friends on the Internet.
A single binary digit is called a bit, which is either a 1, or a 0.
You can't do much with a single bit, so they often come in a package of 8 called a byte that can represent 256 different values.
Modern programmers don't write binary directly.
Instead, we write code in a high level language like Python or c plus plus which can then be interpreted or compiled in to a binary format.
However, you should still know how to count in binary to impress your friends.
In the base ten system, you have 10 different symbols.
When you get to the number 10, you add an extra digit, then another one for 100 and a 1000 and so on.
This is called positional notation, where each position represents a value 10 times greater than the position on its right.
Binary works the exact same way, but because we only have 2 symbols to work with, the position on the left represents a value that is 2 times greater like 1, 2, 4, 8, 16, 32, 64, and 128 in a byte.
To get its corresponding decimal value, we multiply 1 by its place and then add them all together, which in this case would equal 123.
In a computer, these binary values are mapped to something more interesting for humans like a letter of the alphabet in an ASCII table or the color of a pixel in an image.
Now, because binary is so hard to read, you'll often find it converted to hexadecimal format, which is a base 16 numbering system using the symbols 0 through 9 and and a through f.
Conveniently, each hexadecimal digit can represent 4 bits, which is also called a nibble.
A low level programmer might take a hex dump to analyze the raw data of a file.
It's in hexadecimal format, but each pair of characters represents 8 bits or 1 byte.
This has been binary in 100 seconds.
And if you wanna see more short videos like this hit the like button and subscribe.
Thanks for watching and I will see you in the next one.

Speaker 0: Binary, a numbering system where all possible values are represented by 2 symbols, like on off, true false, or 1 and 0. Computers handle alt data as a stream of binary numbers because from a hardware perspective, it's much easier to represent 2 values with a transistor as opposed to ten values with that system they taught you in school. It first appeared in ancient Egypt with horus I fractions and is used independently in many other cultures, like for the I Ching in China, and is the basis for Morse code where every letter of the alphabet is represented by 2 different sounds. When the first computers arrived, They were programmed by manually flicking switches or with punch cards used to represent binary values. Today, modern microchips use Boolean algebra to combine logic gates like and or not to execute binary code billions of times per second, allowing you to share silly videos with your friends on the Internet.

A single binary digit is called a bit, which is either a 1, or a 0. You can't do much with a single bit, so they often come in a package of 8 called a byte that can represent 256 different values. Modern programmers don't write binary directly. Instead, we write code in a high level language like Python or c plus plus which can then be interpreted or compiled in to a binary format. However, you should still know how to count in binary to impress your friends.

In the base ten system, you have 10 different symbols. When you get to the number 10, you add an extra digit, then another one for 100 and a 1000 and so on. This is called positional notation, where each position represents a value 10 times greater than the position on its right. Binary works the exact same way, but because we only have 2 symbols to work with, the position on the left represents a value that is 2 times greater like 1, 2, 4, 8, 16, 32, 64, and 128 in a byte. To get its corresponding decimal value, we multiply 1 by its place and then add them all together, which in this case would equal 123.

In a computer, these binary values are mapped to something more interesting for humans like a letter of the alphabet in an ASCII table or the color of a pixel in an image. Now, because binary is so hard to read, you'll often find it converted to hexadecimal format, which is a base 16 numbering system using the symbols 0 through 9 and and a through f. Conveniently, each hexadecimal digit can represent 4 bits, which is also called a nibble. A low level programmer might take a hex dump to analyze the raw data of a file. It's in hexadecimal format, but each pair of characters represents 8 bits or 1 byte.

This has been binary in 100 seconds. And if you wanna see more short videos like this hit the like button and subscribe. Thanks for watching and I will see you in the next one.
Binary, a numbering system where all possible values are represented by 2 symbols, like on off, true false, or 1 and 0. Computers handle alt data as a stream of binary numbers because from a hardware perspective, it's much easier to represent 2 values with a transistor as opposed to ten values with that system they taught you in school.
data
programming
computer science
It first appeared in ancient Egypt with horus I fractions and is used independently in many other cultures, like for the I Ching in China, and is the basis for Morse code where every letter of the alphabet is represented by 2 different sounds. When the first computers arrived, They were programmed by manually flicking switches or with punch cards used to represent binary values. Today, modern microchips use Boolean algebra to combine logic gates like and or not to execute binary code billions of times per second, allowing you to share silly videos with your friends on the Internet. A single binary digit is called a bit, which is either a 1, or a 0. You can't do much with a single bit, so they often come in a package of 8 called a byte that can represent 256 different values.
Modern programmers don't write binary directly. Instead, we write code in a high level language like Python or c plus plus which can then be interpreted or compiled in to a binary format. However, you should still know how to count in binary to impress your friends. In the base ten system, you have 10 different symbols.
programming
When you get to the number 10, you add an extra digit, then another one for 100 and a 1000 and so on. This is called positional notation, where each position represents a value 10 times greater than the position on its right. Binary works the exact same way, but because we only have 2 symbols to work with, the position on the left represents a value that is 2 times greater like 1, 2, 4, 8, 16, 32, 64, and 128 in a byte. To get its corresponding decimal value, we multiply 1 by its place and then add them all together, which in this case would equal 123.
In a computer, these binary values are mapped to something more interesting for humans like a letter of the alphabet in an ASCII table or the color of a pixel in an image. Now, because binary is so hard to read, you'll often find it converted to hexadecimal format, which is a base 16 numbering system using the symbols 0 through 9 and and a through f. Conveniently, each hexadecimal digit can represent 4 bits, which is also called a nibble. A low level programmer might take a hex dump to analyze the raw data of a file.
programming
computer science
It's in hexadecimal format, but each pair of characters represents 8 bits or 1 byte. This has been binary in 100 seconds. And if you wanna see more short videos like this hit the like button and subscribe. Thanks for watching and I will see you in the next one.
Binary, a numbering system where all possible values are represented by 2 symbols, like on off, true false, or 1 and 0. Computers handle alt data as a stream of binary numbers because from a hardware perspective, it's much easier to represent 2 values with a transistor as opposed to ten values with that system they taught you in school. It first appeared in ancient Egypt with horus I fractions and is used independently in many other cultures, like for the I Ching in China, and is the basis for Morse code where every letter of the alphabet is represented by 2 different sounds. When the first computers arrived, They were programmed by manually flicking switches or with punch cards used to represent binary values. Today, modern microchips use Boolean algebra to combine logic gates like and or not to execute binary code billions of times per second, allowing you to share silly videos with your friends on the Internet. A single binary digit is called a bit, which is either a 1, or a 0. You can't do much with a single bit, so they often come in a package of 8 called a byte that can represent 256 different values. Modern programmers don't write binary directly. Instead, we write code in a high level language like Python or c plus plus which can then be interpreted or compiled in to a binary format. However, you should still know how to count in binary to impress your friends. In the base ten system, you have 10 different symbols. When you get to the number 10, you add an extra digit, then another one for 100 and a 1000 and so on. This is called positional notation, where each position represents a value 10 times greater than the position on its right. Binary works the exact same way, but because we only have 2 symbols to work with, the position on the left represents a value that is 2 times greater like 1, 2, 4, 8, 16, 32, 64, and 128 in a byte. To get its corresponding decimal value, we multiply 1 by its place and then add them all together, which in this case would equal 123. In a computer, these binary values are mapped to something more interesting for humans like a letter of the alphabet in an ASCII table or the color of a pixel in an image. Now, because binary is so hard to read, you'll often find it converted to hexadecimal format, which is a base 16 numbering system using the symbols 0 through 9 and and a through f. Conveniently, each hexadecimal digit can represent 4 bits, which is also called a nibble. A low level programmer might take a hex dump to analyze the raw data of a file. It's in hexadecimal format, but each pair of characters represents 8 bits or 1 byte. This has been binary in 100 seconds. And if you wanna see more short videos like this hit the like button and subscribe. Thanks for watching and I will see you in the next one.
Binary,
binary
a
a
numbering
numbering
system
system
where
where
all
all
possible
possible
values
values
are
are
represented
represented
by
by
2
2
symbols,
symbols
like
like
on
on
off,
off
true
true
false,
false
or
or
1
1
and
and
0.
0
Computers
computers
handle
handle
alt
alt
data
data
as
as
a
a
stream
stream
of
of
binary
binary
numbers
numbers
because
because
from
from
a
a
hardware
hardware
perspective,
perspective
it's
it's
much
much
easier
easier
to
to
represent
represent
2
2
values
values
with
with
a
a
transistor
transistor
as
as
opposed
opposed
to
to
ten
ten
values
values
with
with
that
that
system
system
they
they
taught
taught
you
you
in
in
school.
school
It
it
first
first
appeared
appeared
in
in
ancient
ancient
Egypt
egypt
with
with
horus
horus
I
i
fractions
fractions
and
and
is
is
used
used
independently
independently
in
in
many
many
other
other
cultures,
cultures
like
like
for
for
the
the
I
i
Ching
ching
in
in
China,
china
and
and
is
is
the
the
basis
basis
for
for
Morse
morse
code
code
where
where
every
every
letter
letter
of
of
the
the
alphabet
alphabet
is
is
represented
represented
by
by
2
2
different
different
sounds.
sounds
When
when
the
the
first
first
computers
computers
arrived,
arrived
They
they
were
were
programmed
programmed
by
by
manually
manually
flicking
flicking
switches
switches
or
or
with
with
punch
punch
cards
cards
used
used
to
to
represent
represent
binary
binary
values.
values
Today,
today
modern
modern
microchips
microchips
use
use
Boolean
boolean
algebra
algebra
to
to
combine
combine
logic
logic
gates
gates
like
like
and
and
or
or
not
not
to
to
execute
execute
binary
binary
code
code
billions
billions
of
of
times
times
per
per
second,
second
allowing
allowing
you
you
to
to
share
share
silly
silly
videos
videos
with
with
your
your
friends
friends
on
on
the
the
Internet.
internet
A
a
single
single
binary
binary
digit
digit
is
is
called
called
a
a
bit,
bit
which
which
is
is
either
either
a
a
1,
1
or
or
a
a
0.
0
You
you
can't
can't
do
do
much
much
with
with
a
a
single
single
bit,
bit
so
so
they
they
often
often
come
come
in
in
a
a
package
package
of
of
8
8
called
called
a
a
byte
byte
that
that
can
can
represent
represent
256
256
different
different
values.
values
Modern
modern
programmers
programmers
don't
don't
write
write
binary
binary
directly.
directly
Instead,
instead
we
we
write
write
code
code
in
in
a
a
high
high
level
level
language
language
like
like
Python
python
or
or
c
c
plus
plus
plus
plus
which
which
can
can
then
then
be
be
interpreted
interpreted
or
or
compiled
compiled
in
in
to
to
a
a
binary
binary
format.
format
However,
however
you
you
should
should
still
still
know
know
how
how
to
to
count
count
in
in
binary
binary
to
to
impress
impress
your
your
friends.
friends
In
in
the
the
base
base
ten
ten
system,
system
you
you
have
have
10
10
different
different
symbols.
symbols
When
when
you
you
get
get
to
to
the
the
number
number
10,
10
you
you
add
add
an
an
extra
extra
digit,
digit
then
then
another
another
one
one
for
for
100
100
and
and
a
a
1000
1000
and
and
so
so
on.
on
This
this
is
is
called
called
positional
positional
notation,
notation
where
where
each
each
position
position
represents
represents
a
a
value
value
10
10
times
times
greater
greater
than
than
the
the
position
position
on
on
its
its
right.
right
Binary
binary
works
works
the
the
exact
exact
same
same
way,
way
but
but
because
because
we
we
only
only
have
have
2
2
symbols
symbols
to
to
work
work
with,
with
the
the
position
position
on
on
the
the
left
left
represents
represents
a
a
value
value
that
that
is
is
2
2
times
times
greater
greater
like
like
1,
1
2,
2
4,
4
8,
8
16,
16
32,
32
64,
64
and
and
128
128
in
in
a
a
byte.
byte
To
to
get
get
its
its
corresponding
corresponding
decimal
decimal
value,
value
we
we
multiply
multiply
1
1
by
by
its
its
place
place
and
and
then
then
add
add
them
them
all
all
together,
together
which
which
in
in
this
this
case
case
would
would
equal
equal
123.
123
In
in
a
a
computer,
computer
these
these
binary
binary
values
values
are
are
mapped
mapped
to
to
something
something
more
more
interesting
interesting
for
for
humans
humans
like
like
a
a
letter
letter
of
of
the
the
alphabet
alphabet
in
in
an
an
ASCII
ascii
table
table
or
or
the
the
color
color
of
of
a
a
pixel
pixel
in
in
an
an
image.
image
Now,
now
because
because
binary
binary
is
is
so
so
hard
hard
to
to
read,
read
you'll
you'll
often
often
find
find
it
it
converted
converted
to
to
hexadecimal
hexadecimal
format,
format
which
which
is
is
a
a
base
base
16
16
numbering
numbering
system
system
using
using
the
the
symbols
symbols
0
0
through
through
9
9
and
and
and
and
a
a
through
through
f.
f
Conveniently,
conveniently
each
each
hexadecimal
hexadecimal
digit
digit
can
can
represent
represent
4
4
bits,
bits
which
which
is
is
also
also
called
called
a
a
nibble.
nibble
A
a
low
low
level
level
programmer
programmer
might
might
take
take
a
a
hex
hex
dump
dump
to
to
analyze
analyze
the
the
raw
raw
data
data
of
of
a
a
file.
file
It's
it's
in
in
hexadecimal
hexadecimal
format,
format
but
but
each
each
pair
pair
of
of
characters
characters
represents
represents
8
8
bits
bits
or
or
1
1
byte.
byte
This
this
has
has
been
been
binary
binary
in
in
100
100
seconds.
seconds
And
and
if
if
you
you
wanna
wanna
see
see
more
more
short
short
videos
videos
like
like
this
this
hit
hit
the
the
like
like
button
button
and
and
subscribe.
subscribe
Thanks
thanks
for
for
watching
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
The speaker explains the concept of a " numing system" where all possible values are represented by 2 symbols, and how it is used in various cultures. They also discuss the use of a "pointing notation" where each position represents a value 10 times greater than the position on its right, and how it can be converted to a "any digit" format. The speaker also mentions a "anyond format" where each numbering symbol represents a value of 8 bits or 1 byte, and explains how it can be converted to a "anyond digit" format.
Binary Explained in 01100100 Seconds
Binary, a numbering system where all possible values are represented by 2 symbols, like on off, true false, or 1 and 0. Computers handle alt data as a stream of binary numbers because from a hardware perspective, it's much easier to represent 2 values with a transistor as opposed to ten values with that system they taught you in school. It first appeared in ancient Egypt with horus I fractions and is used independently in many other cultures, like for the I Ching in China, and is the basis for Morse code where every letter of the alphabet is represented by 2 different sounds. When the first computers arrived, They were programmed by manually flicking switches or with punch cards used to represent binary values. Today, modern microchips use Boolean algebra to combine logic gates like and or not to execute binary code billions of times per second, allowing you to share silly videos with your friends on the Internet. A single binary digit is called a bit, which is either a 1, or a 0. You can't do much with a single bit, so they often come in a package of 8 called a byte that can represent 256 different values. Modern programmers don't write binary directly. Instead, we write code in a high level language like Python or c plus plus which can then be interpreted or compiled in to a binary format. However, you should still know how to count in binary to impress your friends. In the base ten system, you have 10 different symbols. When you get to the number 10, you add an extra digit, then another one for 100 and a 1000 and so on. This is called positional notation, where each position represents a value 10 times greater than the position on its right. Binary works the exact same way, but because we only have 2 symbols to work with, the position on the left represents a value that is 2 times greater like 1, 2, 4, 8, 16, 32, 64, and 128 in a byte. To get its corresponding decimal value, we multiply 1 by its place and then add them all together, which in this case would equal 123. In a computer, these binary values are mapped to something more interesting for humans like a letter of the alphabet in an ASCII table or the color of a pixel in an image. Now, because binary is so hard to read, you'll often find it converted to hexadecimal format, which is a base 16 numbering system using the symbols 0 through 9 and and a through f. Conveniently, each hexadecimal digit can represent 4 bits, which is also called a nibble. A low level programmer might take a hex dump to analyze the raw data of a file. It's in hexadecimal format, but each pair of characters represents 8 bits or 1 byte. This has been binary in 100 seconds. And if you wanna see more short videos like this hit the like button and subscribe. Thanks for watching and I will see you in the next one.
The speaker explains the concept of a " numing system" where all possible values are represented by 2 symbols, and how it is used in various cultures. They also discuss the use of a "pointing notation" where each position represents a value 10 times greater than the position on its right, and how it can be converted to a "any digit" format. The speaker also mentions a "anyond format" where each numbering symbol represents a value of 8 bits or 1 byte, and explains how it can be converted to a "anyond digit" format.

        [INST]
        You are youtuber called Fireship you make engaging high-intensity and entertaining coding tutorials and tech news. 
        you covers a wide range of topics relevant to programmers, aiming to help them learn and improve their skills quickly.
        
        Given the title of the video : Binary Explained in 01100100 Seconds 
        and a small summary : The speaker explains the concept of a " numing system" where all possible values are represented by 2 symbols, and how it is used in various cultures. They also discuss the use of a "pointing notation" where each position represents a value 10 times greater than the position on its right, and how it can be converted to a "any digit" format. The speaker also mentions a "anyond format" where each numbering symbol represents a value of 8 bits or 1 byte, and explains how it can be converted to a "anyond digit" format.
        [/INST]
        
        Generate the video : Binary, a numbering system where all possible values are represented by 2 symbols, like on off, true false, or 1 and 0. Computers handle alt data as a stream of binary numbers because from a hardware perspective, it's much easier to represent 2 values with a transistor as opposed to ten values with that system they taught you in school. It first appeared in ancient Egypt with horus I fractions and is used independently in many other cultures, like for the I Ching in China, and is the basis for Morse code where every letter of the alphabet is represented by 2 different sounds. When the first computers arrived, They were programmed by manually flicking switches or with punch cards used to represent binary values. Today, modern microchips use Boolean algebra to combine logic gates like and or not to execute binary code billions of times per second, allowing you to share silly videos with your friends on the Internet. A single binary digit is called a bit, which is either a 1, or a 0. You can't do much with a single bit, so they often come in a package of 8 called a byte that can represent 256 different values. Modern programmers don't write binary directly. Instead, we write code in a high level language like Python or c plus plus which can then be interpreted or compiled in to a binary format. However, you should still know how to count in binary to impress your friends. In the base ten system, you have 10 different symbols. When you get to the number 10, you add an extra digit, then another one for 100 and a 1000 and so on. This is called positional notation, where each position represents a value 10 times greater than the position on its right. Binary works the exact same way, but because we only have 2 symbols to work with, the position on the left represents a value that is 2 times greater like 1, 2, 4, 8, 16, 32, 64, and 128 in a byte. To get its corresponding decimal value, we multiply 1 by its place and then add them all together, which in this case would equal 123. In a computer, these binary values are mapped to something more interesting for humans like a letter of the alphabet in an ASCII table or the color of a pixel in an image. Now, because binary is so hard to read, you'll often find it converted to hexadecimal format, which is a base 16 numbering system using the symbols 0 through 9 and and a through f. Conveniently, each hexadecimal digit can represent 4 bits, which is also called a nibble. A low level programmer might take a hex dump to analyze the raw data of a file. It's in hexadecimal format, but each pair of characters represents 8 bits or 1 byte. This has been binary in 100 seconds. And if you wanna see more short videos like this hit the like button and subscribe. Thanks for watching and I will see you in the next one.
        