this post was submitted on 14 Mar 2024
599 points (96.6% liked)

Programmer Humor

20763 readers
1569 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
 
all 17 comments
sorted by: hot top controversial new old
[–] wise_pancake@lemmy.ca 70 points 11 months ago (2 children)

we've updated our terms of service, you're now opted in to everything, good luck!

And

Yes, you unsubscribed from that mailing list, but before you did we went and put your name down for 575 new email lists which you have not unsubscribed from.

[–] HaveYouPaidYourDues@lemmy.world 47 points 11 months ago (1 children)

Unsubscribing from this mailing list automatically signs you up for this other identical mailing list

[–] Anticorp@lemmy.world 40 points 11 months ago

Unsubscribing confirms this is a monitored account, so we have sold your email address to 9 million other companies.

[–] Anticorp@lemmy.world 12 points 11 months ago* (last edited 11 months ago)

That first one should be punishable by flogging. Also the second one, but the first one is a very common strategy for opting you in to things you explicitly opted out of, and I'm pretty sure it's illegal. But, since no one ever enforces the law against mega corps, they're free to operate with impunity.

[–] xmunk@sh.itjust.works 46 points 11 months ago (4 children)

Excuse me, that else should be elseif( user.region != 'eu' )

[–] KazuyaDarklight@lemmy.world 61 points 11 months ago* (last edited 11 months ago) (1 children)

elseif( user.region = 'eu' ){ SecretlyCollectData(user)}

[–] JohnEdwa@sopuli.xyz 5 points 11 months ago* (last edited 11 months ago)

Would be neat if Google got caught with a GDPR violation, the max fine is 4% of your global revenue, which for Google would be 12.2 billion.

So far the biggest has been Meta who was hit for 1.2 billion.

[–] bjoern_tantau@swg-empire.de 19 points 11 months ago

Google: "Haha, hahaha, no."

[–] Anticorp@lemmy.world 17 points 11 months ago* (last edited 11 months ago)

Else if (EU) {be annoying while collecting data;}

[–] raldone01@lemmy.world 4 points 11 months ago

No then they just don't show you that they have your data...

[–] 7heo@lemmy.ml 26 points 11 months ago

That isn't real. It wouldn't pass peer review. Here is the actual code:

function GetCookieValue(x) {
  return JSON.stringify(x);
}

user.cookies.agreed = Boolean(GetCookieValue(true));

if(!DarkPatternPopup()) {
  // Make sure we respect the user choice
  user.cookies.agreed = Boolean(GetCookieValue(false));
}

if(user.cookies.agreed) CollectData(user);
[–] ramius345@sh.itjust.works 19 points 11 months ago (1 children)

Don't need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag.

[–] Sibbo@sopuli.xyz 3 points 11 months ago

Yeah but the last requires you to explicitly distinguish between the two cases.

[–] MxM111@kbin.social 3 points 11 months ago

The only problem with the code I see is that the first 3 lines are not needed.

/Google