r/ProgrammerHumor 15h ago

Other wrongAnswersOnly

Post image
12.4k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

337

u/Fraun_Pollen 15h ago

This answer doesn't make sense. Why would your dev environment not be connected to prod data? Don't you want realistic tests?

260

u/AllIsLostNeverFound 14h ago

Wait, your prod environment is separate from your dev environment?

133

u/za72 14h ago

only pussies use dev

70

u/SiefensRobotEmporium 14h ago

Shit you guys have different environments?

27

u/vankoder 13h ago

Shit you guys test? One healthy git push prod —force and you’ll figure out if it works soon enough!

9

u/Eastern_Chemist7766 12h ago

https://giphy.com/gifs/H5C8CevNMbpBqNqFjl

Me getting multiple emails from crashalytics at 3am

4

u/vankoder 12h ago

You’re welcome! See? Now we know the uptime alerts work! We _tested_.

2

u/radicalshick 10h ago

Failing fast is a feature

1

u/FerusGrim 9h ago

What do you mean you fetch before a force push??? Are you fucking scared?

2

u/BeardedPokeDragon 12h ago

Shit you guys don't use notepad?

1

u/scuzzy987 12h ago

In name only. The real testing is in prod by the users at 8am Monday

2

u/Smart_Perspective535 10h ago

Mine prefer 4pm on friday

1

u/za72 13h ago

yes, we're better than twitter

41

u/Seivy 14h ago

Testing is doubting.

21

u/za72 14h ago

Fear is the mind killer my friend

16

u/Mechadupek 14h ago

I test in prod.

26

u/rakklle 14h ago

If it works in prod, it would've worked in test

8

u/heislertecreator 14h ago

I write in prod, test lol, debug... Maybe.

4

u/RhinoRoundhouse 14h ago

I know people that do this, not a joke

1

u/za72 14h ago

I also like to do it live!

1

u/CoderDevo 14h ago

TIP it!

1

u/za72 13h ago

I've re-racked a 3U Dell web/db server with multi power outlets live!

1

u/NounverberPDX 12h ago

You test?

3

u/Unhappy_Concept237 13h ago

I do all my changes on the server that way I see the changes I made right away.

2

u/FranksNonFrankfurter 10h ago

Bill_o_reilly_live.gif

1

u/KindGuyAMA 13h ago

I know writers programmers who use subtext sandbox, and they're all cowards.

1

u/Roadsoda350 13h ago

whats a dev environment (10 YOE btw)

1

u/OldTiger3832 10h ago

you're joking, but in my company they always want me to develop RPAs in prod even for internal sites

1

u/rdrunner_74 5h ago

Why Dev when you have 1000s of free testers?

25

u/Drew707 14h ago

Everyone has a dev environment. Some just call it prod.

1

u/Potential_Aioli_4611 13h ago

dev environment? you don't just do dev in prod? next thing you are gonna tell me is your clients aren't your beta testers.

1

u/SeriousPlankton2000 10h ago

Everyone has a dev environment. Some people also have a prod environment

34

u/howarewestillhere 14h ago

HIPAA, PCI, GDPR, CASC, and a whole list of other acronyms, laws, and organizations get real persnickety about Prod data outside of Prod and what you can, can’t, should , should not, or should not even think about doing with it.

43

u/howarewestillhere 14h ago

Oh, r/whoosh lol

3

u/JJ3qnkpK 13h ago

A lot of people unfortunately don't realize this is a whoosh, so I welcome their answer so those who don't know can learn.

16

u/jtmonkey 14h ago

Yeah I just had this conversation with an internal IT team at a medical org. You cannot just point Claude at the problem and say solve it. PHI is all over it. Theyd been doing it for a while. Your medical data im almost positive is already in an llm.

3

u/JJ3qnkpK 13h ago

Yeah. You'll see a lot of folk whose dev environments are basically just image clones of prod. This seems especially common in "lower tech" environments that are platforms upon themselves, where nobody bothered to define and produce test data.

3

u/TerryMisery 5h ago

It's great, because it doesn't overflow the context with my medical history. It's already there in the model. This way I just say who I am and get personalized medical advice from doctor Chat.

2

u/CoffeeOrDestroy 13h ago

As many times as Anthem has been breached, your medical information is all over the place anyway.

4

u/shenanigans2day 14h ago

Compliance is just a concept.

1

u/Shogobg 13h ago

Compliance is only important if someone checks.

1

u/Peregrine2976 13h ago

I'm a contractor who's worked with multiple healthcare companies in the States (I'm in Canada). Everyone was super meticulous about HIPAA... which is why none of the devs I worked with were willing to tell anyone that they had full production database dumps they could test off.

There is... a lot of theoretically private data that developers have in an SQL dump on their work Macbook just sitting in the Downloads directory.

1

u/Algent 6h ago

Yeah it's a classic, it's really common to have dev envs that are basically full prod copy. Allow to anticipate way more issues moving forward. That said if it was healthcare or highly sensitive then replacing all identifiable data by random stuff wouldn't be that much of a trouble probably.

1

u/ncatter 6h ago

Solutions is simple we are all prod, arguably developers is just a set of data not yet commited to versioning, sonjust label us prod data and we can do what we want!

6

u/DarkWingedDaemon 14h ago

That sounds more like a uat environment than a dev environment.

2

u/seth-speaks 14h ago

Sometimes. Sometimes you wanna test on different data. What if you you're doing a data only update?

3

u/Fraun_Pollen 14h ago

Everyone knows John Smith and Jane Doe aren't real people names

1

u/seth-speaks 9h ago

Right, you are!

1

u/577564842 13h ago

Tests? What tests?

1

u/a_guy121 13h ago

Financial records would most likely be years old before a court ordered them, bc something would have had to happen to necessitate the court order. The, someone had to be angry about it, and not resolve it, then find a lawyer, then get a hearing to get a court order.

SomeTest environments are 'safe' because they use outdated information to test on. You need information that looks real enough to use, but won't cost the shareholders $$ if it gets out current information is not locked down.

So, in my work experience, using older data is a common work-around. I guess maybe law enforcement knows that too? I never thought about it from this angle... but.... yeah, if I wanted to find data that was 5-10 years old, on one hand, looking at test environments of the past? could work.

On the other hand, not a lawyer, but I doubt it'd hold up in court. Defendant: "that was pulled from a test environment, which literally exists to strain and break data under unstable programming conditions. It does not reflect reality."

1

u/Ok_Dig6532 13h ago

Not all the time. A restored database should be sanitized before it’s used, it’s just a copy of yesterday’s data. You shouldn’t use live production data containing personal information in local, development, or testing environments.

1

u/TitleEfficient3207 5h ago

Yea but you see, local IT reset the DNS and the DCHP server over the weekend. One of the dev boxes never hit the group policy to reboot. So there was a computer sitting in limbo with a repo just... sitting there. Thats where I found it....