this post was submitted on 19 Jun 2025
254 points (92.9% liked)

Programmer Humor

24317 readers
911 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 2 years ago
MODERATORS
254
submitted 18 hours ago* (last edited 18 hours ago) by [email protected] to c/[email protected]
 

Made with KolourPaint and screenshots from Kate (with the GitHub theme).

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 17 hours ago (12 children)

I've always wondered where all this 'let' business started

[–] [email protected] 26 points 17 hours ago* (last edited 17 hours ago) (9 children)

It's commonly used in math to declare variables so I assume programming languages borrowed it from there.

[–] [email protected] 5 points 17 hours ago (6 children)

BASIC uses (used?) it to declare variables. (I don't know if earlier languages did.)

Not that that's a reason for other languages to copy it.

[–] [email protected] 8 points 17 hours ago* (last edited 17 hours ago) (1 children)

Doesn't Basic use Dim a As String?

[–] [email protected] 10 points 17 hours ago* (last edited 17 hours ago) (3 children)

Older variants used DIM for arrays and LET for other variables. DIM was originally called that because it was setting the dimensions of the array.

In modern BASIC variants, DIM has become a backronym: "declare in memory".

[–] [email protected] 5 points 16 hours ago

In modern BASIC variants, DIM has become a backronym: “declare in memory”.

TIL. I always thought it was a backronym for declare in (yo) momma.

[–] [email protected] 4 points 16 hours ago

TIL Backronyms and cuil BASIC technicalities Much obliged all

[–] [email protected] 2 points 16 hours ago (1 children)

Even older variants required both a let to declare the variable and a dim to set its size.

I remember a REDIM command, but I really can't remember what basic it's from.

[–] [email protected] 2 points 15 hours ago

The first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.

load more comments (4 replies)
load more comments (6 replies)
load more comments (8 replies)