Programmer Humor

33128 readers
39 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
1
 
 

In 1870 Émile Baudot created a code for telegraphy that used bits in place of dot and dashes. That allowed more words per minute to be transmitted than was possible with morse code.

With Baudot code machines could be built that would automatically decode the signal and type it out as plain english. This technology would be called the teletype machine.

Teletype machines still used this code or variation until they were replaced over a century later.

This is also where the term Baud rate comes from.

2
 
 

3
 
 
4
 
 

I learned about this from Matt Parker's Stand-Up Maths channel. It was originally conceived as a counterexample, a sorting algorithm that was obviously broken, but it does actually sort correctly. The algorithm:

for i = 1 to n do  
	for j = 1 to n do  
		if A[i] < A[j] then  
			swap A[i] and A[j]  

It has a few quirks (like j accessing elements outside of i's range, and the A[i] < A[j] comparator being backward) that should break it, but they all work together to make the algorithm correctly (if inefficiently) sort the input.

paper describing the algorithm in more detail.

5
6
 
 
7
 
 
8
 
 
9
 
 
10
11
 
 
12
 
 

By @Enalys@mastodon.zergy.net

13
 
 
14
 
 
15
 
 
16
 
 
17
 
 
18
 
 

cross-posted from: https://piefed.zip/c/politicalmemes@lemmy.world/p/1758477/using-fascist-technology-to-fight-fascism-still-promotes-fascist-technology

Using fascist technology to fight fascism still promotes fascist technology.

19
 
 
20
 
 
21
 
 

(source: random internets photo)

22
23
 
 
24
25
 
 
view more: next ›