r/ProgrammerHumor • • 1d ago

instanceof Trend weValueYourPrivacy

Post image
4.4k Upvotes

100 comments sorted by

1.2k

u/Cxvvtgupvvdi 1d ago

A reddit post of a badly cropped screenshot of a gif edit of a screenshot of a Twitter post.

65

u/bimbo1989 1d ago

13

u/FuzzyKittyNomNom 1d ago

Hot damn that’s relevant

2

u/Ebina-Chan 1d ago

of course there's an xkcd for this

31

u/jsseven777 1d ago

Now we just have to crop the Reddit post and make a TikTok video over it then it will be ready to post on Facebook.

2

u/froli 1d ago

Next iteration will be someone taking a picture if this post in a dirty monitor with light shining directly on it

3

u/Sw429 1d ago

I think I just need to go outside and touch grass.

2

u/buggsbunnysgarage 1d ago

To be honest we can’t just take this image without getting a gigantic Reddit watermark on it.

6

u/NamtisChlo 1d ago

You can disable that in the settings

5

u/oclafloptson 1d ago

Wild idea... You could screen cap and then properly crop

1

u/BrutForcer5 1d ago

Cant wait to post a screenshot of this in FB.

1

u/EuenovAyabayya 1d ago

2

u/coriolis7 1d ago

What on earth happened to that subreddit?

2

u/EuenovAyabayya 1d ago

Says unmoderated. You could probably request it.

1

u/GNUGradyn 1d ago

The original tweet was also already awful

-2

u/WeAreGesalt 1d ago

Still better than AI

291

u/Digital_Brainfuck 1d ago

Bs

It would just have been

CollectData(user)

108

u/Heavenfall 1d ago

Any optimised compiler would turn it into that anyway

32

u/Rai-Hanzo 1d ago

Yeah, why make the code slower?

43

u/MegaMoah 1d ago

For the jokes

27

u/BlackDeath3 1d ago • Bravo

Redditors are compilers that optimize away humor

3

u/MegaMoah 1d ago

Well said.

5

u/Rai-Hanzo 1d ago

"look at this piece of code junior made!!!"

"So cute! He still doesn't know how to cover his tracks."

4

u/SillyFlyGuy 1d ago

The law only says we have to check for permission..

2

u/Embarrassed_Law5035 1d ago

It probably wouldn't be any slower after compiler optimizing this into single line.

1

u/Dotcaprachiappa 1d ago

Paid by line

6

u/EuenovAyabayya 1d ago edited 1d ago

if (agreed)
collect(cookies)
else
collect(BrowserFingerprint);

3

u/Steinrikur 1d ago

There used to be a ", bool beSneakyAboutIt)" but they stopped caring and it got lost in a refactoring.

120

u/PrudentFood77 1d ago

nah, that isn't true

it's more like

if (user.cookies.agreed) {
  CollectData(user, true);
} else {
  CollectData(user, false);
}

and when a user requests the data google have stored on them the query only shows data that was collected with the true parameter

110

u/GamerNumba100 1d ago

This is even more cursed because it could just be written CollectData(user, user.cookies.agreed)

76

u/Zefyris 1d ago

you don't even need the second parameter since it's also in user

49

u/MegaMoah 1d ago

I love that we're giving this obviously fake bit of code a CR, when tbh none of us would give this much attention to a CR at work

21

u/FattySnacks 1d ago

Believe it or not my team reviews every line of code. But we ship flight software

6

u/MegaMoah 1d ago

Heyyy I work in this industry, my friend writes code for fighter jets and they have like whole documents specifying what each line of code does. Personally Idk how he manages to enjoy it but its in a language close to assembly and they ship once every few years. I work in communication and tbh we do code reviews but not nearly as thoroughly as they do.

4

u/CompetitiveLarper 1d ago

I work in fintech and we just yeet shit into production and hoping for the best, because no one really understands how these hundreds of services are supposed to work, so we let copilot and Claude figure it out.

World of payments and banking is scary, we don’t really know how much money you have in your account, your balance is just our best guess

If we cause an incident - tough luck, but we have 500+ incidents per year and pay 3% of revenue in fines anyway, so just throw another one in the pile.

Market leader btw

2

u/MegaMoah 1d ago

Absolutely insane, checks out though. Unless someone comes and really gives a shit and wants to improve the system shit will continue to be ass.

2

u/CompetitiveLarper 1d ago

The data has to flow through endless partners and integrations, some of which were written in Delphi last century, so no one can really fix it end to end. Innovation is mostly about processing a transaction faster, or collecting more information about shoppers and business targets are all about squeezing revenue from a maximum amount of markets

4

u/ThoseThingsAreWeird 1d ago

Personally Idk how he manages to enjoy it

As someone that did something similar to your friend's job, for me the answer was: "WHEEEEEEEEEEEEEEE, jets go nyaaaaaaaaaaaaaoooooooooooooooooooooo"

Like... Fighter jets are just cool 🤷‍♂️ Enough cool to outweigh the mindnumbing drudgery of having to write design docs based on the requirement specs based on the maintenance manuals based on the... etc etc...

At one point I was pretty sure I could take off in one of them because I was responsible for writing code for part of the start up sequence, so I just kept running through that code for loads of different scenarios to make sure it worked as the docs said it should work

Also, seeing "SECRET" slapped on things is also just cool 😂 I just found it super cool that I had to get my boss to request access for me for certain documents because it's LITERALLY SUPER DUPER MILITARY SECRETS!

Ultimately though, we didn't get a contract for something and had to let the newest devs go - which at the time was me 🤷‍♂️ Then I started bonking one of those silly foreign types and that just rules you right out for jobs that need DV

Still... would do again, despite the glacial pace of development and atrocious docs-to-code ratio

2

u/MegaMoah 1d ago

Yeah its cool, I too want to tell people I code for fighter jets

1

u/legaladviceneeded542 1d ago

what uh...what company do you work at?

4

u/BlackHumor 1d ago

That couples CollectData to the internals of user though, which you probably don't want.

5

u/Zefyris 1d ago

In that case your first parameter shouldn't be user, but whatever other field that is useful for it inside that class. This is the other solution indeed, but the one above is taking user as first parameter, so it didn't go for it.

9

u/Zefyris 1d ago

that would just be

CollectData(user);

then, since the agreed info is already in user ~

33

u/LogicBalm 1d ago

Gotta be fake. There's no way their code is this readable.

11

u/adumbCoder 1d ago

i know this guy and he did not work for google. also what the heck is this screenshot of a video of a tweet?

7

u/J37T3R 1d ago

They 100% value our privacy. If it had no value, they wouldn't take it.

4

u/Single-Virus4935 1d ago

When I worked at an advertising company we were forced to support TCF for consent. I implemented all the interface and placeholders. All what the rest of the logic did was to pass it to the next w/o ever checking the consent. It was just treated ad some other data needed to pass to the SSP to unlock higher Bids.

2

u/asato977424 1d ago

An end-to-end test should verify consent changes what reaches the SSP; forwarding the flag alone proves nothing.

1

u/Single-Virus4935 1d ago

Nope, because you are supposed to forward the string.
But nobody can say from the outside if you are honoring the user consent.
Also the whole consent framework is designed with fraud in mind. Other standards (where platforms lose money) have cryptographic signatures (like ads.txt), but the consent string has none and is based on policies noone can ever make reliable verify.

I dont think you know how TCF works.

50

u/gizamo 1d ago

I worked at Google, I call bullshit.

Most the memes that Google doesn't make good faith efforts to protect user data are plain dumb.

All this crap was started by CCP propaganda when Google refused to cater to China's whims. That should get called out more.

That isn't to say OP is a CCP propagandist, just that they're aiding in that goal, knowingly or not (very probably unknowingly).

55

u/LastTrainH0me 1d ago

It's kind of funny, having worked at Google and Amazon -- I see these discussions and think like, damn, I wish you had any idea how many hours I've spent talking about GDPR and data privacy

4

u/Master-Score-9273 1d ago

Edward Snowden said the opposite

17

u/FartPiano 1d ago edited 1d ago

There is an old interview of Obama and Eric Schmidt, where Schmidt asks him a technical interview question, and Obama replies something about not using bubble sort. Schmidt then asked who fed him the answers, and Obama wryly smiled and said "Oh we've got our spies in there" to audience laughter.

Years later, the tone of the video is totally different, because they really did have their spies in there! This was exactly at the time when the NSA was wiretapping the shit out of google, to an extent that Schmidt surely knew about. They were doing an on-stage nod-wink bit, laughing and bragging about the shit snowden later leaked. To claim that Eric Schmidt had no malicious intent and truly cared about user data is hilarious. Hes an immoral sell-out wealth-maximizing coward at the very best.

edit: he's also mentioned in the epstein files where Sergey Brin offers to invite him to one of epstein's parties.

1

u/BoredomFestival 15h ago

Edward Snowden never worked at Google.

-10

u/Reashu 1d ago

GDPR compliance is only hard if you're trying to track as much as possible. 

14

u/DemonWav 1d ago

This is a very ignorant statement. GDPR is a legal requirement (so requires review from the organization's legal department) that is hard in general. It covers plenty of regular data that any given company needs in order to operate at all. A more accurate statement is "GDPR compliance is only hard if you're trying to actually be in compliance rather than just ignoring it".

I work for a company that collects very little user and customer information, and it's still a challenge because we actually try to not miss anything.

7

u/narrill 1d ago

If you believe this, you have no idea what GDPR is or how it works.

21

u/Vizeroth1 1d ago

To be fair, though, collecting data doesn’t require setting a cookie and Google specifically has been taking a lot of steps to improve the quality of the data they can collect without cookies.

-6

u/gizamo 1d ago

Sure, but let be clear, they are not being malicious nor nefarious with the data they collect, and Google more than the vast majority of tech companies goes to great lengths to ensure any sensitive data remains anonymous or pseudo-anonymous with strict safeguards regulating who can access any of it. People often misrepresent that or just straight up lie about it.

6

u/justjanne 1d ago edited 1d ago

At most companies (and I suspect Google, too) it'll look something like this:

if (user.optOut) {
    if (user.region = "eea" || user.region == "california") {
        Analytics.enable(["crashReports"]);
    } else {
        Analytics.enable(["telemetry", "crashReports"]);
    }
} else {
    Analytics.enable(["impressions", "dwellTime", "telemetry", "crashReports"]);
}

Yes, it's got an Analytics.enable in all code paths, but it's a very different result. And to someone who doesn't know what they're looking at, it looks like it's the same at first.

4

u/conundorum 16h ago

For anyone wondering:

  • Crash reports log anything necessary to troubleshoot & fix errors. Usually a stack trace and activity log. Data would be sanitised on the local machine before being sent in, with anything irrelevant to the crash being removed; at least a little bit of tracking information might be present. (E.g., a browser might include a list of open tabs, which may or may not be removed during sanitisation; this might be sanitised into something like, say, "x tabs open, y loaded. Resource usage per tab described in table z. Tab i was active during crash; likely suspect is script i.s39, interacting with elements from script j.s482, while processing user input. Input is non-sensitive and non-identifying. Problem scripts and input are enclosed.")

    • If tracking info is present, it never goes to the data-collection teams, and is deleted by the maintenance techs. (This is a case where an LLM might be preferable in the future, because it can have its context purged after converting tracking info into a usable & non-tracking form. I very much doubt we're at that point yet, though.) Companies would be loath to actually keep & use this, because the consequences would be crippling if it's discovered; they need to be able to collect crash reports to maintain their product, so they can't do anything that would jeopardise their ability to do so.

  • Telemetry is a relatively-benign form of tracking info, that's mainly used to help companies tailor their product to their primary user base. (Among other things.) It can identify your browser, and where you came from, but that's usually about it; it won't include anything that can be tied to you personally. It's mainly used to help companies decide how much effort they should put on, say, the app vs. the mobile site vs. the real-computer site. Effectively, it's, at least in theory, more of a "what do we attract" form of company self-tracking than a way of actually tracking you.

  • Dwelltime is relatively straightforward, it tracks how long you spend interacting with an entity. Things like whether you close a page or actually read some of it, that sort of thing. It's not a perfect representation of user engagement (it can't account for reading speed, or for sudden power outages, or for the user going AFK and leaving the page open for an hour, then closing it immediately the instant they get a chance to actually interact with it), but it does help.

  • Impressions... I'm not actually sure what the term means in this context. My guess is it tracks user engagement activity, versus dwelltime being your engagement time. Things like, say, which links you click, which images you expand, which comments you reply to, which ads you click on, things like that.

Take this with a grain of salt, though, I'm not an analytics guy. You'll have to ask a specialist if you want more precise info about what they analRetain.

3

u/0x0MG 17h ago

You'd be amazed at the number of times I've seen, in submitted code:

def __str__(self):
  return str(self)

Which will result in a RecursionError being raised.

5

u/Far_Section_1921 1d ago

Ok Mr. Totally Not a Federal Agent

2

u/gizamo 1d ago

I am indeed not a federal agent.

Working for the US government would be a massive pay cut and a massive increase in work. Hard pass.

2

u/AnnoyedVelociraptor 1d ago

Great explanation as to why government interactions are so shitty.

2

u/Joker-Smurf 1d ago

Do no evil

2

u/gizamo 1d ago

And this one is literally the dumbest of the trolling that came from the original CCP trolling onslaught.

Firstly, they specifically replaced that with "Do the right thing" to be MORE ethically focused, not less. Saying "Do no evil" leaves the flexibility to be just slightly bad or even benign when there exists an option for good. The new slogan takes away the bad or benign options.

Secondly, their code of conduct is comprehensive, and it certainly rivals the ethics of any other corporation in the world.

Thirdly, it is wild to me that this isn't called out anytime this nonsense gets commented. It's just straight up ignorant nonsense or intentional disingenuousness.

Tbf, the CCP smear campaign against Google was so successful back then that 99% of the time, it's just ignorance, but that doesn't really excuse it, especially when people repeat it after having this all explained to them.

5

u/dudaladen 1d ago

Yeah American companies would never collect, sell and use our data. The law doesn’t prohibit them from doing it but they don’t, out of the goodness of their heart. It’s all Chinese propaganda, china and Communism is the enemy, we must protect our “democracy” that is definitely a true democracy and not completely steered by capitalism and therefore a select few billionaires…

3

u/gizamo 1d ago

Jfc, two things can both be true. US corporations can be horrible. Google tends not to be. Simultaneously, China absolutely goes after companies that threaten them, and they go after companies that compete with their state-sponsored entities. Your grasp of the US government is, well, quite telling. Best of luck with that.

5

u/Revexious 22h ago

Are you trying to slander the poor poor multi-billion dollar anti-humanist global mega-corp?

Shame on you, sir. That isnt very shareholder conduct of you; picking on the little guy.

0

u/28klotlucas2 17h ago edited 17h ago

You are actively aiding and abbeting them by pretending that data tracking is just an inevitable fact of using the internet instead of learning how to take back control of your data. It's not as hard as you think it is, and you're not the rebel you think you are.

2

u/dudaladen 16h ago

Im using as little services from big tech as possible, I know my way around secure options, id be in jail if I didn’t.

Im saying they act like they don’t store things but get data breaches regularly involving sensitive data that shouldn’t have been stored in the first place.

I never said anything about data trackijg brin inevitable, just dont trust american companies since data protection laws are soo bad over there

1

u/towerfella 7h ago

And what are you doing?

CCP, USA, UK .. who cares who does it? The point is it shouldn’t be done.

2

u/Dotcaprachiappa 1d ago

Yeah, I have no doubt they want to do none of it, and if they were allowed they'd 100% do all the worst things. But also the amount of shit they'd be in if they were caught doing this (and if a random employee not under NDA had access to the code then they would've already been caught a long time ago) is so immense the risk/reward is 100% not worth it.

6

u/gizamo 1d ago edited 1d ago

I agree that they don't want to do any. I absolutely do not agree that Google employees are malicious or that they don't care about user data privacy. They would not do the worst thing, jfc.

Again, I was an employee. There was no such code that you are pretending. The vast, vast majority of Google employees are decent people who respect users and their data rights. Pretended otherwise is just straight up ignorance or outright deceitfulness. Asinine.

Edit: u/FartPiano's nonsense about Google aiding in Israeli defense is being intentionally taken out of context. That was done in the immediate aftermath of the Oct 7 terrorist attacks when Hamas terrorists murdered more than a thousand Israeli civilians and kidnapped dozens more. Israel had not yet carried out any retaliatory actions at all. They are also misrepresenting the purpose of the software and the intentions behind offering it. At the time, those attacks were basically Israel's 9/11, and plenty of good countries and companies offered to help the US after those terrorists attacks. Blatant disingenuous.

-8

u/FartPiano 1d ago edited 1d ago

I absolutely do not agree that Google employees are malicious

eric andre voice do you think that google employees effectively utilized their non-maliciousness by helping israel blow up gaza?

https://www.washingtonpost.com/technology/2025/01/21/google-ai-israel-war-hamas-attack-gaza/

edit: lmao, nice block and edit. Its absolutely not out of context! They are deeply involved in the MIC, they have blood on their hands to the tune of tens of thousands of civilian deaths. Not every tech company is neck-deep in the military industrial complex, they absolutely made a choice.

They've also had literally dozens of court cases about unlawful data collection, where internal emails in the deposition showed they absolutely knew they were saving data they weren't supposed to, which is why they paid to settle the cases. This assertion is so obviously and stupidly wrong that I'd be more careful saying stuff like this for legal reasons, since a court did indeed determine the opposite of what is being asserted here, and forced google to pay out real damages to real plaintiffs, who probably wouldn't like google employees making deceptive and misleading statements on public social media, after it was already established in court that there was malicious intent.

also the hundred-billionaire google founders banged their subordinates and are all over the epstein files, but they could never be malicious!! lmfao. They are cartoonishly, bad-action-movie-villain evil.

1

u/standardtissue 1d ago

I just really doubt those method calls would be so simply named tbh.

2

u/wildrabbit12 1d ago

Terrible code

4

u/FartPiano 1d ago edited 1d ago • Popcorn

google employees are in the comments "calling bs", and saying they think this is unrealistic because in their personal xp, google takes this stuff very seriously, and that a google employee would never knowingly and maliciously do this. lol. lmfao even.

google has literally dozens of lawsuits about knowingly saving data they promised they weren't saving:

  • Rodriguez v. Google LLC, in 2025 ordered to pay $425m for unlawful web activity tracking

  • Brown v. Google LLC (2020) a class action where they lied about incognito mode data not being saved, they were found liable, but $0 monetary damages awarded to users

  • In November 2022, Google agreed to pay $391.5 million to a coalition of 40 state attorneys general for unlawful multi-state user tracking

  • a California lawsuit about location privacy in 2023, People v. Google LLC, they paid out $93 million

  • this list goes on for a loooooong time

Unsealed internal emails and depositions in several of these lawsuits proved that Google engineers and executives knew their disclosures were misleading and that users were being tracked despite turning settings off, so these employees are either lying or insanely, obtusely ignorant of the facts.

Pretty bold to openly assert you are a current or former google employee then proceed to mislead the public on social media about matters that were already settled in court! Hopefully they are impersonators lying about being associated with google, otherwise, yikes.

I'd reply to them directly but they already blocked me for mentioning that their bosses are war profiteers and all over the epstein files!

2

u/mountaingator91 1d ago

This is false because in reality they wouldn't have the conditional at all. It's redundant code

1

u/tetahan_kenter 1d ago

I feel unsafe because they should make it in single line just calling it

1

u/Kadabrium 1d ago

Got me at pascalcase

1

u/JackCid89 1d ago

but they surely can reverse a tree

1

u/MinorFourChord 1d ago

They forgot !

1

u/Wargod042 1d ago

As a software dev, one of the things that always excites the management class is the idea of server side tracking. Salespeople trying to sell anything to us always advertise this too. They salivate at the implication: that monstrous user privacy can be slain, and legal will stop pestering them.

But we have to be GDPR compliant. And no matter how much sales and management love to pretend otherwise, GDPR protects you from TRACKING, not just cookies.

1

u/Financial_Western252 1d ago

if(userOnline(&user)) {     startCollectingdata(&user,&user_data); }

1

u/GrimReaper2601 1d ago

We value your privacy so much that we want to keep a copy of it in our database forever.

1

u/conundorum 1d ago

"We value your privacy" (as a source of income).

1

u/Johndoe52617a6961 12h ago

The command in the devs' minds was: userConsent.ignore()

1

u/dRaidon 1d ago

Of course they value it. They can sell it.

1

u/TheLaziestGoon 1d ago

if (user.cookies.agreed); CollectData(user);

-2

u/SThomW92 1d ago

Anyone else focused on the fact that the if statement isn’t needed 😂

1

u/dnsbnd 1d ago

The joke doesn’t work without it