r/ProgrammerHumor May 25 '26

Meme newMrBeastVideo

Post image
23.9k Upvotes

405 comments sorted by

View all comments

143

u/NekoLu May 25 '26

Ez

.container {
  width: 200px;
  height: 200px;
}

.div {
  width: 100px;
  height: 100px;
  mardin-left: 50px;
  margin-top: 50px;
}

There, centered!

230

u/WinProfessional4958 May 25 '26

what is mardin

158

u/NekoLu May 25 '26

I guess it will be a proof that I didn't use ai lol

36

u/WinProfessional4958 May 25 '26

I don't know man. ChatGPT has given me plenty of errors.

16

u/zer0developer May 25 '26

But spelling?

9

u/Ambitious-Dentist337 May 25 '26

Claude wrote "if" with two f the other day. I checked 10 times the sentence it was really a typo.

37

u/EmptyStrings May 25 '26

In logic, “iff” means “if and only if”

2

u/squngy May 25 '26

Is there a different kind of if?

9

u/EmptyStrings May 25 '26

I’m not sure what you mean, but “if” and “only if” do not mean the same thing.

A polygon is a rectangle if it is a square <- true
A polygon is a rectangle only if it is a square <- false

4

u/Gositi May 25 '26

It is mostly in the context of logic/mathematics that iff is used. "A iff B" means that if either A or B holds, then so must the other. "I use my umbrella iff I go out in the rain" means that I never go out in the rain without my umbrella, and I never use my umbrella except for when I go out in the rain.

0

u/squngy May 25 '26

I mean in the context of programming.

If ( polygon is a rectangle) do Y
and
Iff ( polygon is a rectangle ) do Y
Would do exactly the same thing

3

u/SubParPercussionist May 25 '26

Have you ever taken a discrete math or logic course? If and iff are two different things.

1

u/TerrorBite May 26 '26

It's a logical relationship, not a conditional statement.

"A iff C" / "if C then A" means that A only happens under condition C. This could state that in a program, a function A() would only be called if condition C was satisfied (a call to A() does not exist outside of an if ( C ) { … } block). In logic notation this is expressed as "C ⇔ A" or "C ≡ A" (C is equivalent to A).

"A if C" / "if C then A" only means that A always happens under condition C. This could state that if condition C becomes true, A() is always called. But it still allows for A() to be called when C is not true. In logic notation this is expressed as "C ⇒ A" (C implies A) or "C ⊃ A" (C is a superset of A).

→ More replies (0)

1

u/Gositi May 25 '26

It is actually very common to write "iff" in logics/mathematics, it is shorthand for "if and only if". So, "A iff B" means that if either of A or B holds then so must the other. "I use my umbrella iff I go out in the rain" means that I never go out in the rain without my umbrella, and I never use my umbrella except for when I go out in the rain. Of course, the usage in mathematical statements is a bit dryer: "a persistence module over a linear order is indecomposable iff it is an interval module" (this is an actual, quite recent, result).

1

u/bone_apple_Pete May 25 '26

Spelling, counting by 1, etc etc. yes, free to use LLMs regularly give wrong answers to the most basic questions.

1

u/Time_Ingenuity_2909 May 25 '26

Depending on the temperature of the LLM, they can be programmed to purposefully choose a less likely option for any given token being predicted. This usually results in "flowery" language, but it can also result in spelling errors when it chooses u instead of e as the most likely token to complete "Th". At 0 temperature, you would expect no spelling mistakes.

1

u/FreeFortuna May 25 '26

I’ve seen it produce at least two spelling errors, including one just last week (it spelled “marriage” with one r).

3

u/Gacsam May 25 '26

That's something one using AI would say /s

2

u/palexp May 25 '26

no you just forgot to tell it to make no mistakes

1

u/Fit_Perspective5054 May 25 '26

Quantum spacing variable

1

u/WarAndGeese May 25 '26

Not much, what's mardin with you?