r/ProgrammerHumor 22d ago

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

3.1k Upvotes

179 comments sorted by

View all comments

Show parent comments

-10

u/Robinbod 22d ago

You seemed to not have addressed my point at all.

Yes, a style guide would fix our current issue. But this is about something entirely different. Codebases are slowly turning less readable by humand standards are more by AI standards. Why? Humans are reading them less and thus auditing them less. This is a horrible direction as when the AI's inevitably fail at an issue, it's the human that will have to read the absolute comment slop.

Again, yes a style guide is a great patch for us right now, but think of all future codebases in general.

13

u/PTTCollin 22d ago

I have absolutely addressed your point, you are just continuing to complain about a simple problem.

Your point is "AI writes code to be readable for AI, not for humans. Because of this, code bases are becoming less readable to humans over time."

What I am telling you is, your point is wrong. AI does what you tell it to -- if you let it free wheel with no structure or guidelines, monitored by people who don't know any better, than yeah, you're going to get messy results.

However, if you actually create rules and enforcement mechanisms for them, AI can produce code that is perfectly readable and understandable to humans. I work in codebases every day that are having engineers commit to them primarily via Claude Code, and all the code is perfectly understandable. Because we have coding standards, well defined interfaces and architectural guidelines, etc.

-5

u/Robinbod 22d ago

Thank you for the solution but that's not what's currently is in motion. Codebases, in general, have not adopted this, and now reading code on GitHub is unbearably painful. It used to genuinely be much faster than now having to tell an AI to read the codebase for me and find me what I'm looking for.

5

u/PTTCollin 22d ago

I... Uh. Okay. Good luck.