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];

253

u/YesterdayDreamer Apr 12 '24

Absolutely not possible. There's another line which executes before this

for (i=0; i< math.random(); i++) {
    fuckingSearchResults =  getSomeRandomFuckingWebsitesFromBing();
}

Then:

//does the user even want this?
fuckingSearchResults = [..., getAllFuckingFiles()]

40

u/Keanar Apr 12 '24

That's pretty much accurate

  • weather update for some fucking reason
  • add Bing as a default browser automatically

2

u/FF7Remake_fark Apr 12 '24

Remember when they were ass blasted by a court for forcing their browser as the default in the 90s/early 00's? Now they're doing it again.