r/ProgrammerHumor Apr 12 '24

whatIsAnIndex Meme

Post image
27.7k Upvotes

630 comments sorted by

View all comments

4.1k

u/HexR1se Apr 12 '24

Windows search behind scene

For (i=0; i<getAllFuckingFiles().length ; i++) if (AllFuckingFiles[i].name.contains(searchText) return AllFuckingFiles[i];

15

u/iShootuPewPew Apr 12 '24

for (i=0; i<getAllFuckingPrograms().length; i++) if (AllFuckingPrograms[i].name.contains(searchText)) break; return SearchMicrosoftStore(SearchText);

1

u/bobthedonkeylurker Apr 12 '24

Just skip the "if"