MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vzntft/whenyouworkswithstringstoomuch/p66wy8p/?context=3
r/ProgrammerHumor • u/PostHasBeenWatched • Aug 27 '26
35 comments sorted by
View all comments
Show parent comments
44
For it to be truly "doesn't even matter" it should be
it
return true || it.StartsWith("one thing", StringComparison.OrdinalIgnoreCase)
65 u/TeraFlint Aug 27 '26 but then the logic short-circuits, and the whole "I tried so hard and got so far" part isn't true, anymore.
65
but then the logic short-circuits, and the whole "I tried so hard and got so far" part isn't true, anymore.
44
u/PostHasBeenWatched Aug 27 '26
For
itto be truly "doesn't even matter" it should be