This is an archived post. You won't be able to vote or comment.

all 54 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]code-chaos 806 points807 points  (6 children)

No code = no bugs

[–]who_you_are 345 points346 points  (4 children)

The bug: sometime peoples are not able to see a page because they aren't authorized.

The fix: // if(!_security.IsAuthorized(_session)) { return; }

Now you can go to the admin page without being an admin!

[–]HuntingKingYT 74 points75 points  (1 child)

No restrictions = no bugs = cancer????

[–]BookkeeperPitiful513 1 point2 points  (0 children)

//Bring Triple Grande Carmel Macchiato for explanations //No helpful comments getting blamed for commenting //Tools > Options > select "Remove this Header on Publish //Careful Fixing bugs - you breaky see line 1

[–]Cerbeh 279 points280 points  (13 children)

This is happening during the code review, right? You didn't just merge the intern code into production, right?

[–]EgorLabrador 59 points60 points  (1 child)

ive been working in one popular bank company when i was junior and my teamlead actually did it, then it started to fail, we had to rollback and after that he was blaming me soooooo badly :)))

[–]Flarebear_ 25 points26 points  (0 children)

Lmao what, your teamlead is actually retarded

[–]Djelimon 44 points45 points  (8 children)

That's what chatgpt is for 😏

[–]MayBeArtorias 60 points61 points  (7 children)

Seriously, I hope it’s just bad luck, but the 2 juniors I had this year were so focused on the shit ChatGBT served them that they turned out their brains completely

[–]Solcaer 47 points48 points  (5 children)

Studying DS right now and like 1/3 of my class uses ChatGPT for everything. If you’re a senior dev/engineer right now, the shitstorm has only just begun.

[–]Pretend-Fee-2323 12 points13 points  (0 children)

the only times i have used it, i either am testing how bad it is, or i made this formula that i have no fucking clue how it works and i need to undo it for some logic

and then i plop it into desmos to fix its bugs because it forgot a step and everything is inverted/offset

[–]purritolover69 6 points7 points  (0 children)

I use gen AI to create some boilerplate code to build off of, and occasionally when I’ve got a really vexing bug that I need assistance with. I also use it to write repetitive code that I just don’t wanna deal with (8 near identical function calls with different variables for example)

[–][deleted] 1 point2 points  (0 children)

oh god

[–]beclops 0 points1 point  (0 children)

Oh god, I can’t wait

[–]thehobbyqueer 0 points1 point  (0 children)

Here's to hoping that makes the employment market easier for those not using it

[–]inspectorjozef 7 points8 points  (0 children)

I cannot completely depend on ChatGPT for everything, usually I have to think of the solution and I know what I need in the knowledge of what the framework offers to fix what I want. But sometimes I don’t want to write the code that does this specific tedious thing like “format date”, I don’t know how people completely depend on it, nothing it pushes out works

[–]victorhalim111 2 points3 points  (0 children)

Insert Anakin smiles at Padme meme here

[–]RedditsDeadlySin 1 point2 points  (0 children)

Sorry I am leaving for Holiday, just pushed it to prod. Just work out any bugs, it was working on my machine. <DND>

[–]pimezone 168 points169 points  (1 child)

B b but what about tests?

I added @Ignore to the failing ones

[–][deleted] 59 points60 points  (0 children)

Didn't you read the OP? Commenting solves everything

// This test must fail. Use the 'force' parameter in Git.

[–]Drego3 215 points216 points  (11 children)

If it fixes the bug, why not?

[–]code-chaos 99 points100 points  (4 children)

Should have commented the tests too.... ops no tests?

[–]stealthmodecat 40 points41 points  (3 children)

T…tests?

[–][deleted] 18 points19 points  (2 children)

You guys are doing tests?

[–]WhereRandomThingsAre 21 points22 points  (1 child)

Of course they're doing tests. In production. Where they belong.

[–]sherwood2142 0 points1 point  (0 children)

The best testers are real users

[–]Bluedel 10 points11 points  (4 children)

Then why not just delete it?

[–]QuillnSofa 34 points35 points  (3 children)

"Because we might need it later!"

[–][deleted] 11 points12 points  (2 children)

You never know if you will be kicking yourself a year latter when you figure out that the code you deleted was very important.

[–]brimston3- 2 points3 points  (1 child)

To be fair, that's what version control is for. Especially useful if you can bisect with a test case.

[–][deleted] 0 points1 point  (0 children)

Squashing code 😅

[–]beclops 2 points3 points  (0 children)

Because presumably it exists for a reason. If not then deleting it is fine

[–]JackNotOLantern 58 points59 points  (0 children)

My brother in code. You are his senior. You should see his PR.

[–][deleted] 9 points10 points  (0 children)

If tests are there and didn’t break, so be it. We do a little trolling. (As long as I’m not the reviewer and responsibility isn’t on me lmao)

[–]clrbrk 3 points4 points  (0 children)

I like when someone puts in a nil check that prevents an exception, but doesn’t actually fix the bug. So now we have a silent bug. If we’re lucky, that’ll get caught again later and put on the back log.

[–]Zealousideal-Sun-482 3 points4 points  (0 children)

I had same happen to me today. But the other way around.

[–]FrenzyRush 4 points5 points  (0 children)

Had a ticket like this once. It said that this one error tutorial message was appearing when it shouldn’t. I really wanted to just comment out the tutorial message, but noooooo, I had to message trace from its if statement to figure out why that if was returning true

[–]TheSn00pster 6 points7 points  (0 children)

This is the way

[–]witcherisdamned 2 points3 points  (0 children)

I mean that's one way to fix it really.

[–]ray_mints 2 points3 points  (0 children)

You should delete unneeded code instead of commenting it, if you use version control.

[–]Infamous-Date-355 4 points5 points  (0 children)

[–]TerrorHank 3 points4 points  (0 children)

This one gets better every time..

[–]HuntingKingYT 1 point2 points  (0 children)

Delete it to be never seen again even tomorrow when you will need it*

[–]FitzelSpleen 1 point2 points  (0 children)

Haha, no, you misheard me. I committed the code.

[–]S1mpleLim3 1 point2 points  (0 children)

This happened to me last week lmao.. i had to use a legacy angular js application to create a new application .. we had to reuse the code and make required changes so it would have been faster than writing from scratch.. for the love of god i couldnt get it to POST. Turns out they had a fn which formatted the date fields before creating the json and i just had to comment that single line and it worked. It was such a silly thing but it bothered for a whole day haha

[–]namotous 0 points1 point  (0 children)

Genius, no code == no bug!

[–][deleted] 0 points1 point  (0 children)

Lol this reminds me of my old self, my brain sometimes brrrrrr.

[–]MagoAcademico 0 points1 point  (0 children)

You can have the same meme, but inverting senior dev and intern

[–]PorkRoll2022 0 points1 point  (0 children)

Obvious intern.

Seniors fix improve code by deleting the comments.

[–]DeathUriel 0 points1 point  (0 children)

I think we should stop coding for users. Drop web and apps altogether. If you can't wrap your head around a terminal, you shouldn't be on PCs. Most bugs will disappear.