this post was submitted on 27 Jul 2023
85 points (85.1% liked)

Programmer Humor

19594 readers
700 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
 

Not sure if appropriate for this community, or for !programming_horror@programming.dev.

you are viewing a single comment's thread
view the rest of the comments
[–] StarManta@lemmy.world 6 points 1 year ago (1 children)

I see the blank lines being included is odd, is that it? Why are the other lines being underlined?

[–] dohpaz42@lemmy.world -4 points 1 year ago (1 children)

Because two of them are strings, and one is a declaration of an extension. None of which are of type User.

[–] Aatube@kbin.social 8 points 1 year ago* (last edited 1 year ago) (1 children)

All you searched was "User", ignoring case. You didn't search the type of user, so it correctly returned lines with "user" in it like "private var username"

[–] dohpaz42@lemmy.world -3 points 1 year ago (2 children)

If what you're saying is true, that's an even more WTF because I'm searching for User references, and not the text "[Uu]ser".

[–] Aatube@kbin.social 6 points 1 year ago (1 children)

I'm pretty sure you're not doing what you think you're doing because of the "containing" right after the arrow. To search a symbol you usually select it, right click it, and then click on something.

[–] dohpaz42@lemmy.world 1 points 1 year ago (1 children)

To search a symbol you usually select it, right click it, and then click on something.

Funny you say that... because that's what I did.

[–] Aatube@kbin.social 1 points 1 year ago* (last edited 1 year ago) (1 children)

Weird, what was the something you clicked? It may be something wrong with that button instead of the search function, as there's "containing" after the arrow so it's not really a symbol search.

[–] dohpaz42@lemmy.world 1 points 1 year ago

As suggested by others, I changed the Containing to Matching Word and that helped tremendously.

[–] StarManta@lemmy.world 6 points 1 year ago (1 children)

It’s plainly obvious in this screenshot that you’re just searching for the text “user”.

[–] dohpaz42@lemmy.world 1 points 1 year ago (1 children)
[–] MaggiWuerze@feddit.de 1 points 1 year ago

Yeah, that's what "ignoring case" means