this post was submitted on 07 Jun 2026
300 points (98.1% liked)

Programmer Humor

31722 readers
1226 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
you are viewing a single comment's thread
view the rest of the comments
[–] insomniac_lemon@lemmy.cafe 8 points 22 hours ago (1 children)

In a different language that uses whitespace:

proc blank_map*:void =
 mines_placed = 0
 row8 = newseq[uint8](width); game_map = newseq[row8](height)
 row16 = newseq[int16](width); sum_map = newseq[row16](height)
 rowChar = newseq[char](width); state_map = newseq[rowChar](height)
 for h in 0.uint8..<height:
  game_map[h] = row8; sum_map[h] = row16
  state_map[h] = rowChar

I'm allowed to do it, it's allowed

(I don't use it a lot and I'm sure many dislike this because longer lines especially if they have less display width for whatever reason)

[–] RamRabbit@lemmy.world 9 points 22 hours ago* (last edited 21 hours ago) (1 children)

O, O, OHH burn it.

In this house we code one line per line.

[–] caseyweederman@lemmy.ca 3 points 8 hours ago

You can fit so many lines in this line