If you ever wanted a visual to explain how binary in works.
@nixCraft why wasn't i shown this in computing gcse
@nixCraft I used to demonstrate by counting fingers and thumbs
@nixCraft It stopped 101011โ‚‚ before the end! ๐Ÿ˜ญ
@nixCraft I was hoping this would continue to show an integer overflow error.
@nixCraft in my case it helped learning about octal, going from 0 to 7 and then going straight to 10 made my brain click on how binary counting works.
@nixCraft I always knew computers were actually just made up of flipping numbers. Can't wait to tell that annoying computer kid in my family that I was right all along.
@love @nixCraft of course. What do you think a transistor is? Itโ€™s just a rotating paddle wheel which gets smaller every year. When we talk about quantum computers, this is just paddle wheels with more than two paddles each.
@credo @love @nixCraft
Too bad they didnโ€™t have the voltage regulators needed for base 10 in the beginning.
@nixCraft hey it's my username in GIF form ๐Ÿ˜
@nixCraft Thank you for this! I always struggled with how this worked.
@nixCraft Gives a whole new meaning to "bit flipping".

@nixCraft

I was literally today years old when I learned even this much about binary.

I was also today years old when it hit me that it goes by a "base 2" system (if my terminology is right, at least).

Meaning...
2 = 10
2^2 = 100
2^3 = 1000
2^4 = 10000
(And presumably 2^5 would have been 100000, if the gif had gone on any longer.)

@JMad17 @nixCraft Exactly! Binary is numbers in base 2, instead of our typical base 10 system. Computers use it because you can physically represent a digit with an "on" or "off" state of a transistor, switch, or wire. "on" or high voltage is usually 1, and "off" or low voltage is usually 0.
Other common base systems computer programmers use are hexadecimal (base 16), octal (base 8), and even base 64. That's because the power of 2 makes it easier to convert to/from binary.
@JMad17 @nixCraft Example:
In hexadecimal, each digit is 0-15 (represented 0-9 and A-F), and the "tens place" is multiplied by 16, 2^4, which in binary is just adding 4 zeroes to the end, just enough room for the next digit.
0x41C3
3=binary 0011
C=12=binary 1100
1=binary 0001
4=binary 0100
0x41C3=binary 0100 0001 1100 0011
From binary to decimal:
2^14+2^8+2^7+2^6+2^1+2^0
=16384+256+128+64+2+1
=16835
From hex to decimal:
4ร—16^3+1ร—16^2+12ร—16^1+3ร—16^0
=4ร—4096+1ร—256+12ร—16+3ร—1
=16384+256+192+3
=16835
@JMad17 @nixCraft Apologies, I had to edit this reply a couple of times. On some clients, * messes with formatting (hides the asterisk and italicizes the text between stars), so I changed my formulas to use ร— instead.
@nixCraft A nice example of a ripple counter as well...and why they cant be used for large numbers. #Embedded
Binary Counter

YouTube
@voltagex @nixCraft And it doesnโ€™t end too soon! My hero
@voltagex @nixCraft there are 10 types of people in the world
those that understand binary, and the other nine
@voltagex @nixCraft 3/10, alt tagging could do with some work

@nixCraft

This is beautiful. I'm going to stare at this for 5 hrs now. ๐Ÿฅฐ

@nixCraft Disappointing. I wanted to see it wrap from 63 to 0. Or from 31 to -32.
@nixCraft I used to keep track of the volleyball score using binary with the fingers of each hand.
@nixCraft it's like watching a wooden lava lamp
@nixCraft that is so much easier to understand. Thank you

@nixCraft

It seems there are horrifying moments where binaries almost fail to work.

That might explain my coding skills...

@nixCraft And if you need a 4ยผ minute countdown/timer in binary: https://youtu.be/JJNItNkux6s
Silent Binary Timer/Countdown from 11111111 to 00000000 (255 to 0) = 4ยผ Minutes - 4K UHDTV 2160p

YouTube
@nixCraft Oh, it's cut before it reaches 101010 ๐Ÿ™
Good news for non binary people
@nixCraft Instructions as used by my father for teaching students to become teachers. Before 1975, hence imperial measures, foolscap copy by dyeline printing.
@nixCraft waited thirty years for this videoโ€ฆ ๐Ÿ˜Ž
@nixCraft
I try to get that effect by giving a student two cards, 1 and 0, then let them count. All cards used? Get a new student, let them have two cards and keep counting.
But I like the video and will use it as well.
@nixCraft This just makes SO MUCH SENSE! I love it ๐Ÿ˜
@nixCraft Awesome. I should build one. ๐Ÿ™‚