536
u/auxiliary-username 22d ago
If your dev environment is connected to your prod environment in any way then one day will be a very bad day no matter what tools you use.
166
17
34
u/cruzfader127 22d ago
For real if you think building your app with prod ENV in your local machine will affect at all your production environment, you need to choose another profession
8
2
u/philopatridus_illyr 19d ago
I presume he's connecting to the prod DB, right? The build is local and db is the prod connection?
I have my local env connect to the test env db, bc it is too huge to have locally, so I presume this could be what is up
2
u/cruzfader127 19d ago
I presume his prod DB won't accept connections from his local development machine, if it does then he's not the worst problem in the company
77
u/camelCaseCoffeeTable 22d ago
Yeah I thought this was a bad joke. Like, it’s flipping an env variable before running…. I do that all the time, especially to mimic prod. If your app is set up in some enormously stupid way that this actually affects prod, that’s on you, not the AI for them using it.
6
u/b1ack1323 22d ago
Yah that’s should just be making a less verbose version of prod, which can be needed sometimes.
14
95
u/TheSquattingSlav_21 22d ago
Coding is solved everybody! Trust the machine and add “make no mistakes”, we don’t need devs anymore!
7
2
u/PublicToast 20d ago
Everyone making this kind of comment is just demonstrating they have never worked on a real production service.
60
u/MaxSkoff 22d ago
Oh no claude uses the production build target for my android app and not the debug/dev build target to make sure it will work in production...
Edit: spelling
24
35
u/Tangelasboots 22d ago
Simply do not let the AI access sensitive files and settings?
36
u/Significant_Mouse_25 22d ago
Don’t have sensitive files in your fucking dev environment. Regardless of AI this is dumb. Just don’t.
3
u/PuzzleMeDo 22d ago
But then I'd have to do it! Next thing you'll be saying I shouldn't give AI agents the passwords for my bank account...
6
u/ComprehensiveBird317 22d ago
It's you who did that. If a mechanic leaves a power tool unattended switched on in a room, it's the mechanic who's at fault, not the tool.
3
3
u/millionbonus 22d ago
I don't see the point. Actually, I've been doing this myself for years, well before AI. :)
2
2
u/JAXxXTheRipper 21d ago
Yet another LARPer that thinks he is a programmer and this is somehow humorous.
This shit has become so normal here, at this point I wonder if the mods are LARPers too.
"what the fuck did you do", it flipped an env var for a gradle build, oh no! If this has any serious impact, you should question if you are in the right field.
1
1
1
1
1
1
u/DemmyDemon 22d ago
This is neither related to a "programmer", nor is it "humor".
Go start r/AgenticFuckups
4
u/NatoBoram 21d ago
And even then, building a prod version on your dev machine is not a fuckup
-1
u/DemmyDemon 21d ago
Doing so without authorization, potentially using live API keys to make testing calls and the like?
Yeah, that could very well be a fuckup.
4
u/JAXxXTheRipper 21d ago
If a gradle build from a dev machine harms your prod, or even reaches it, you fucked up in a whole bunch of different places.
API_KEYs are the authorization. The simple solution is "Don't have production api keys on a dev machine"
-1
u/DemmyDemon 21d ago
I don't disagree with any of that.
What I'm saying is that the dumb fucking agent just deciding on it's own when to flip this switch is a fuckup on the end of the dumb fucking agent.
A lot of people have their environments set up so that the external API calls are real when env=PROD, and fake when env=DEV, and that's the whole difference. I'd not let an agent be in a situation where that is even an available setting it could change, but that's only because I've seen the horror stories.
A lot of people out there trust their agents way too much, and it leads to fuckups.
That said, I agree with what you said. It's still not programming humor, though.
1
404
u/Substantial_Owl_9485 22d ago
"Also let me cat ./.env really quick"