this post was submitted on 02 Oct 2023
1350 points (96.6% liked)

Programmer Humor

19821 readers
2 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] lemmonade@lemm.ee 9 points 1 year ago (1 children)

You could also say that down should not complete to download since those are completely different strings and you shouldn't expect one to get you the other.

[–] Feyter@programming.dev 3 points 1 year ago (1 children)

Sorry, down is a substring of download I don't get your point either?

[–] Honytawk@lemmy.zip 4 points 1 year ago (1 children)

Substring is not string.

If they were interchangeable, then "D" & "d" should be too.

[–] Feyter@programming.dev 2 points 1 year ago

down matches down* because * also includes empty string. Also download matches down*

D matches D* but d is not matching D* because D is a different character than d.