this post was submitted on 24 Jul 2023
497 points (96.8% liked)

Programmer Humor

32565 readers
413 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 36 comments
sorted by: hot top controversial new old
[–] [email protected] 76 points 1 year ago (4 children)

It was even worse, they manually flipped toggle switches to write the program

[–] [email protected] 36 points 1 year ago (2 children)

For anyone interested. Here’s a video of programming an EEPROM with dip switches and using it to drive a seven segment display.

The guy’s channel also includes how to build a very simple computer using various ICs. If breadboard computers are your kind of thing.

[–] [email protected] 7 points 1 year ago

Love Ben Eater and his projects. Helped me understand lots about how a computer functions under the hood with his 8bit computer project.

[–] [email protected] 4 points 1 year ago

That was great, thanks for sharing:)

[–] [email protected] 11 points 1 year ago (1 children)
[–] [email protected] 4 points 1 year ago

Yeah they looked like old timey telephone operators and the people who did it were called computers

[–] [email protected] 9 points 1 year ago

And there was no space or enter.

[–] [email protected] 8 points 1 year ago

I bet most people reading your comment will think it's a joke. 😩 And thanks for bringing back up those nightmares.

[–] [email protected] 36 points 1 year ago

The binary says 'Meme'

[–] [email protected] 23 points 1 year ago

Nah. They punched cards.

(Too bad shittywatercolors is not on lemmy)

[–] [email protected] 10 points 1 year ago (4 children)

Binary is just morse in Mashine readable Form.

[–] [email protected] 9 points 1 year ago

I was gonna say “like, kind of” because of Morse code.

Ya beat me to it bro

[–] [email protected] 3 points 1 year ago (2 children)

Not really, Morse code is not binary, but tertiary.

[–] [email protected] 5 points 1 year ago (2 children)

I'm guessing you're saying that because of the pauses? Otherwise I don't get it.

[–] [email protected] 1 points 1 year ago (1 children)

Yes, the space is a necessary symbol in Morse code, otherwise it's impossible to decode.

[–] [email protected] 1 points 1 year ago (1 children)

Makes sense. I remember asking myself whether Morse was a form of Huffman encoding back when I was learning that stuff. And it kinda is going for that, but without actually doing it properly since it wasn't a binary code per se and so could use the pauses. "Ternary" makes sense.

[–] [email protected] 2 points 1 year ago

Right, Morse was actually mentioned as an example when I was learning Huffman encoding. :)

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

1.short signal 2.long signal 3.no signal

[–] [email protected] 5 points 1 year ago (1 children)

I'd say it's quinary but can easily be represented binarily

  1. short mark, dot or dit ( ▄ ): 1

  2. longer mark, dash or dah ( ▄▄▄ ): 111

  3. intra-character gap (between the dits and dahs within a character): 0

  4. short gap (between letters): 000

  5. medium gap (between words): 0000000

[–] [email protected] 0 points 1 year ago (1 children)

You can do it with three symbols:

  1. Dot: 10
  2. Dash: 1110
  3. Gap: 00

The long gap between words is just three short gaps.

There's a Vsauce video about this: https://youtu.be/HY_OIwideLg

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

True, but with the other method it can directly be transferred into sound, one digit equals one beat.

[–] [email protected] 0 points 1 year ago (1 children)

Not sure what you mean by optimized.

[–] [email protected] 1 points 1 year ago

Optimized to use less symbols by combining them (long gap between words is just three short gaps). I also think if a sentence ends, there would be the unnessecary 0 from the dots and Dashes at the end.

[–] [email protected] 2 points 1 year ago

I'd say it's quinary but can be easily represented binarily

  1. short mark, dot or dit ( ▄ ): 1

  2. longer mark, dash or dah ( ▄▄▄ ): 111

  3. intra-character gap (between the dits and dahs within a character): 0

  4. short gap (between letters): 000

  5. medium gap (between words): 0000000

[–] [email protected] 0 points 1 year ago

Unless I'm mistaken I would say that it's the other way around, Morse code is more like a human readable machine language expressed in binary because the 26 character alphabet is expressed in different binary values, much like ASCII.

[–] [email protected] 10 points 1 year ago

Yeah, with USB and chips. Sounds about right.

[–] [email protected] 9 points 1 year ago

This picture is basically true. The old punch cards ...

[–] [email protected] 7 points 1 year ago

Finally, a keyboard to program brainfuck

[–] [email protected] 6 points 1 year ago (1 children)
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

What's "space!" and "enter"?

For those that need help in deciphering the title text, there is a super easy trick: Take the last 5 bits of each byte, convert them from binary to decimal, and that letter of the alphabet (starting from one) is the letter represented by the ASCII code.

To convert binary numbers to decimal, just add the place values of a the 1s together. For 5 bits, the place values are 16, 8, 4, 2, 1. So 10110 becomes 16+4+2 which is equal to 22.

01001101: last 5 bits are 01101, in decimal, that is 8+4+1=13, and the 13th letter of the alphabet is "m"

01100101, becomes 00101, then 4+1=5, and the 5th letter of the alphabet is 'e'

The last 2 are just repeats of those, so the post body reads "meme" (if the third bit is zero, the letter is capital, so it should really be "Meme")

[–] [email protected] 3 points 1 year ago

Having a space character makes it ternary. If enter is a character than quaternary

[–] [email protected] 2 points 1 year ago

This is a weird meme to me. Have you ever made something like a simple accumulator machine out of logic gates, OP? You literally just program them in binary, although usually the instructions are expressed in hexadecimal. You make your own instruction set. When we did ours in Compsci foundations I just decided that 0x06 was going to be my jump at negative instruction. I could have wired the logic so that instruction was at a different value, it's literally possible to make your own instruction set, then your own assembly language, and then your own compiler, and your own programming language. People, mostly women at first, did this for every new computer their institution built at first.

[–] sarmale 2 points 1 year ago

This is what I imagined programators did when i was a kid

[–] [email protected] 2 points 1 year ago

Technically morse code is just on/off on/off lol

load more comments
view more: next ›