this post was submitted on 10 Sep 2024
517 points (96.9% liked)

Programmer Humor

19500 readers
968 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 1 month ago* (last edited 1 month ago) (3 children)

Wait does it teach ai programming in BASIC?

10 dim prompt
20 input(prompt)
30 pring "Nice to meet you"+prompt
40 play g3 c4 e4
50 goto 20
[–] [email protected] 5 points 1 month ago
Syntax error on line 30
Please insert Pringles verification can to use pring function 
[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (1 children)

I'm in middle of a Rust module of a course, so I'll do some Programmer Friendly Error Messages:

Line 10: You do not need to dimension a dimensionless variable such as a standalone string variable. (This ain't Visual Basic.)
Line 20: input doesn't do parentheses, sorry
Line 20: Input accepts a string: Perhaps you meant prompt$?
Line 30: Concatenation is too modern, perhaps instead of + you meant ; just saying?
Line 40: Invalid syntax with play, maybe you meant play "g3c4e4"?

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

Oh my! Haha all these modern languages poisoned my memory

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

What does pring do?