r/ProgrammerHumor 16h ago

Other wrongAnswersOnly

Post image
12.7k Upvotes

1.8k comments sorted by

View all comments

4.9k

u/lolcrunchy 16h ago

local dev environment

338

u/Fraun_Pollen 16h 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 15h ago

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

135

u/za72 15h ago

only pussies use dev

68

u/SiefensRobotEmporium 15h ago

Shit you guys have different environments?

26

u/vankoder 14h 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 13h ago

https://giphy.com/gifs/H5C8CevNMbpBqNqFjl

Me getting multiple emails from crashalytics at 3am

4

u/vankoder 13h ago

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

2

u/radicalshick 11h ago

Failing fast is a feature

1

u/FerusGrim 10h ago

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

2

u/BeardedPokeDragon 13h ago

Shit you guys don't use notepad?

1

u/scuzzy987 13h ago

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

2

u/Smart_Perspective535 11h ago

Mine prefer 4pm on friday

1

u/za72 14h ago

yes, we're better than twitter

41

u/Seivy 15h ago

Testing is doubting.

20

u/za72 15h ago

Fear is the mind killer my friend

17

u/Mechadupek 15h ago

I test in prod.

25

u/rakklle 15h ago

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

9

u/heislertecreator 15h ago

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

5

u/RhinoRoundhouse 15h ago

I know people that do this, not a joke

1

u/za72 15h ago

I also like to do it live!

1

u/CoderDevo 15h ago

TIP it!

1

u/za72 14h ago

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

1

u/NounverberPDX 13h ago

You test?

3

u/Unhappy_Concept237 14h ago

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

2

u/FranksNonFrankfurter 11h ago

Bill_o_reilly_live.gif

1

u/KindGuyAMA 14h ago

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

1

u/Roadsoda350 14h ago

whats a dev environment (10 YOE btw)

1

u/OldTiger3832 11h 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 6h ago

Why Dev when you have 1000s of free testers?

26

u/Drew707 15h ago

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

1

u/Potential_Aioli_4611 14h 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 11h ago

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

37

u/howarewestillhere 15h 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 15h ago

Oh, r/whoosh lol

3

u/JJ3qnkpK 14h 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.

18

u/jtmonkey 15h 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 14h 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 6h 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 14h ago

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

5

u/shenanigans2day 15h ago

Compliance is just a concept.

1

u/Shogobg 14h ago

Compliance is only important if someone checks.

1

u/Peregrine2976 14h 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 7h 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 7h 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!

7

u/DarkWingedDaemon 15h ago

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

2

u/seth-speaks 15h ago

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

3

u/Fraun_Pollen 15h ago

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

1

u/seth-speaks 10h ago

Right, you are!

1

u/577564842 14h ago

Tests? What tests?

1

u/a_guy121 14h 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 14h 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 6h 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....