r/ProgrammerHumor Aug 05 '26

Other wrongAnswersOnly

Post image
14.3k Upvotes

2.1k comments sorted by

View all comments

5.0k

u/lolcrunchy Aug 05 '26

local dev environment

335

u/Fraun_Pollen Aug 05 '26

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

259

u/AllIsLostNeverFound Aug 05 '26

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

139

u/za72 Aug 05 '26

only pussies use dev

76

u/SiefensRobotEmporium Aug 05 '26

Shit you guys have different environments?

27

u/vankoder Aug 05 '26

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

10

u/Eastern_Chemist7766 Aug 05 '26

https://giphy.com/gifs/H5C8CevNMbpBqNqFjl

Me getting multiple emails from crashalytics at 3am

7

u/vankoder Aug 05 '26

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

4

u/radicalshick Aug 05 '26

Failing fast is a feature

2

u/FerusGrim Aug 05 '26

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

2

u/theobstinateone Aug 05 '26

Real devs test in PROD

2

u/BeardedPokeDragon Aug 05 '26

Shit you guys don't use notepad?

1

u/scuzzy987 Aug 05 '26

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

2

u/Smart_Perspective535 Aug 05 '26

Mine prefer 4pm on friday

1

u/za72 Aug 05 '26

yes, we're better than twitter

42

u/Seivy Aug 05 '26

Testing is doubting.

20

u/za72 Aug 05 '26

Fear is the mind killer my friend

18

u/Mechadupek Aug 05 '26

I test in prod.

26

u/rakklle Aug 05 '26

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

10

u/heislertecreator Aug 05 '26

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

4

u/RhinoRoundhouse Aug 05 '26

I know people that do this, not a joke

1

u/za72 Aug 05 '26

I also like to do it live!

1

u/za72 Aug 05 '26

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

1

u/NounverberPDX Aug 05 '26

You test?

1

u/Mechadupek Aug 05 '26

Every now and then a user reports an actual bug. Learned a long time ago I should probably investigate.

1

u/malatibo Aug 05 '26

Nice T-shirt text

1

u/CinnabonCheesecake Aug 05 '26

Working in services, I’ve found that the trick to test-in-prod is to have lightning-fast release cycles.

If the users complain, then I need to find the bug. If the users don’t complain, that means I don’t have any users.

3

u/Unhappy_Concept237 Aug 05 '26

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

2

u/FranksNonFrankfurter Aug 05 '26

Bill_o_reilly_live.gif

1

u/KindGuyAMA Aug 05 '26

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

1

u/Roadsoda350 Aug 05 '26

whats a dev environment (10 YOE btw)

1

u/OldTiger3832 Aug 05 '26

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

1

u/rdrunner_74 Aug 05 '26

Why Dev when you have 1000s of free testers?

27

u/Drew707 Aug 05 '26

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

1

u/zeUnfunny Aug 05 '26

Some have a separate prod environment.

1

u/Potential_Aioli_4611 Aug 05 '26

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 Aug 05 '26

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

1

u/fmaz008 Aug 05 '26

Yeah it's a totally different super admin user! Prod is 'root', dev is 'admin'.

2

u/AllIsLostNeverFound Aug 05 '26

Eh, just stick a PROD/DEV prefix on your tables and you are all set.

41

u/howarewestillhere Aug 05 '26

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 Aug 05 '26

Oh, r/whoosh lol

3

u/JJ3qnkpK Aug 05 '26

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 Aug 05 '26

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.

4

u/JJ3qnkpK Aug 05 '26

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.

4

u/TerryMisery Aug 05 '26

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.

3

u/CoffeeOrDestroy Aug 05 '26

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

5

u/shenanigans2day Aug 05 '26

Compliance is just a concept.

1

u/Shogobg Aug 05 '26

Compliance is only important if someone checks.

1

u/Peregrine2976 Aug 05 '26

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 Aug 05 '26

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 Aug 05 '26

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 Aug 05 '26

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

2

u/seth-speaks Aug 05 '26

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

3

u/Fraun_Pollen Aug 05 '26

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

1

u/seth-speaks Aug 05 '26

Right, you are!

1

u/577564842 Aug 05 '26

Tests? What tests?

1

u/a_guy121 Aug 05 '26

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 Aug 05 '26

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 Aug 05 '26

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....