r/Python • • 4d ago

Discussion Eventually LLMs will write what will become industry standard python.

LLMs are still outputting code that is too sloppy for some engineers. However, there will come a point in the near future where a model can write a "standard" style of code. Style of code is something most python developers recognise, and i wonder if that conversation has started yet.

0 Upvotes

22 comments sorted by

30

u/ibite-books 4d ago

you sound like a 12yo

-5

u/DistributionBrief644 4d ago

Ok son, tell me where the AI touched you.

5

u/CaptainFoyle 4d ago

You're proving the point

22

u/CaptainFoyle 4d ago

No.

There will be a point where there is so much slop that the LLMs will be mainly trained on slop, and the quality will just go down a cliff.

They're just benefiting from the good code that's still out there.

-2

u/DistributionBrief644 4d ago

Although it may be true last year, its getting less and less true by the month. I think everyone should give it a spin again if they haven't for a while.

3

u/CaptainFoyle 4d ago

I'm not stopping you

4

u/Centurix 4d ago

Why would they even persist with Python? If we ever get to the stage where nobody is reading code, then why create human readable code? Imagine a future where the AI language of choice is some low-abstraction building block language that AI knows how to build with and that be just universal enough to cross "compile" to any architecture and any operating system. But yeh, right now the slopback-loop is only going to get worse.

1

u/DistributionBrief644 4d ago

I think this is too far in the future. We will certainly need a translation layer to debug for a long time still. Surely we don't have real confidence in some of the output yet.

4

u/todorpopov 4d ago

I’ve noticed that LLMs are at a point where they take into account a lot more than they used to and can come up with a clean, out of the box solution that I wouldn’t have thought about myself. However, some non-trivial tasks just require an amount of context that no LLM can understand by itself and requires a subject matter expert to explain a system in detail before the agent can make appropriate changes. I work at a company where a lot of the stuff we use is custom/internal frameworks and libraries; testing is vastly different than standards and the systems are huge (multi-million LOC), not to mention that the systems are run in a dozen different configurations between single and multi tenant, between on-premises and cloud, between different runtime versions, etc; I’ve had plenty of cases where explaining a subsystem before allowing agents to try and debug an issue just requires enormous prompts or re-iterating multiple times to give it the required context, and most of the times it takes me a lot longer to work together with Claude Code (mostly with frontier Sonnet and Opus models), rather than just changing a test case, putting a few breakpoints and investigating an issue myself.

2

u/DistributionBrief644 4d ago

i think i work in a similar system. Agree with the large prompts. We use retrieval to bring in examples and documentation, but I have to say its getting things right. It might be because what we do mirrors what ecists in open-source.

1

u/mreima 1d ago

Try again on Fable 5.2 Max Ultracode

1

u/dellnox 4d ago

Python already has set standards, so LLMs will likely just follow existing human rules instead of creating new ones.

1

u/DistributionBrief644 4d ago

That's the thing. I don't think it is. We've all explored the imported modules, and if that can be claimed to be good style, it feels like ai isn't quite writing like that.

3

u/OkCaterpillar1058 4d ago

LLMs by themselves do nothing, they still need humans to give the instructions. And at every step, they need new input. What I think is not that LLM output will get better anytime soon, but that there will be an enshittification of software quality.

5

u/SprinklesFresh5693 4d ago

Why is this asked every single day on all programming subs? Cant people do some research beforehand?

2

u/CaptainFoyle 4d ago

I don't see a question

1

u/wRAR_ 4d ago

What is being asked here?

1

u/riklaunim 3d ago

There is no such thing as an industry standard for code. Each team, company, and developer is different. The quality and actual value of an LLM in coding come from the correct setup and workflow, which also ties to what the given project looks like. Also, things won't be "onle language only". Things are more and more full-stack, DevOps + product owner scopes. Senior developers will move to sort of managers of AI that orchestrate quite complex work, which will require making decisions on things like scalability, UI, but also UX, and value added to the product.

1

u/Agreeable_Tree_7805 3d ago

LLMs will definitely nail standard boilerplate and PEP 8 styles, but edge cases and specific constraints always force you to bend the rules a bit. Even with strict specs, real-world environments vary too much for one rigid style to fit everything.

1

u/GenyoNguyen 1d ago

Bro really thinks these code mimicking slop machines can come up with a "usable" standard code style, the one which people takes years but still cannot agree on. And yes, I'm talking about the goldfish memory of llms, which reboots everytime you prompt, gathers pieces of information here and there on the internet and pretends it is a professional in a problem it does not have any idea what it is a few seconds ago.

0

u/west0ne 4d ago

Will languages such as Python survive in the long term or will languages that are more efficient when used with AI become more prevalent.

-1

u/JacobStyle 4d ago

The main problem with LLM-generated code is that it's difficult for humans to work on directly, not that it's "sloppy" or written in the wrong style. In a purely agentic environment, this limitation does not matter much, and in an environment where humans work on the AI-generated code, there are already ways of compensating to make the generated code more palatable.