r/leetcode • • 1d ago

Discussion Curious how experienced developers balance code readability, complexity, and maintainability in the AI coding era😇

​ AI-assisted development has significantly accelerated code generation, but has it improved long-term maintainability?

In complex production systems with multiple integrations and dependencies, individual files can grow to thousands or even 10K+ lines, despite having well-structured functions.

A few engineering trade-offs worth discussing:

Module size: At what point does file size become a bottleneck for code reviews, debugging, and maintainability?

Architecture: How do you prevent AI-generated code from introducing unnecessary complexity and technical debt?

Engineering standards: Do you enforce module boundaries, file-size limits, and complexity thresholds, or rely on code reviews, testing, and engineering judgment?

How has AI-assisted development changed your approach to code structure, architectural decisions, and long-term maintainability?

7 Upvotes

22 comments sorted by

5

u/Dymatizeee 1d ago

Asking about ai using ai hahaha

0

u/spyron111 23h ago

Hahahaha

Don't Focus on writing style, focus on architectural logic and conscious design asked in this question

3

u/PerformanceThick2232 23h ago

How much AI-generated code do you personally review and understand before merging?

How this is a question? All, otherwise you are just meat proxy

3

u/SalaciousStrudel 21h ago

Of course it's a question, because it's not easy to actually save time if you review the code, since it's easier to fully understand code you wrote yourself

2

u/d33p7r0ubl3 22h ago

It's not a dumb question considering many don't review code anymore.

1

u/PerformanceThick2232 21h ago

Many don't lot of things, why do you need to look on low level expertise retards?

0

u/spyron111 20h ago

Ya so for u go with flow once prod down then u can take action . Or u r more confident that chance of getting prod impacted will be lesser with ai code, without proper code review.

2

u/jackgoldberg123 23h ago

Honest question for people at work: do you actually read every line the AI writes, or mostly skim until something breaks?

1

u/spyron111 23h ago

Ya what's ur status 😅

1

u/jackgoldberg123 20h ago

ha nothing exciting, just curious since nobody admits to the skimming part. do you trust it more on boilerplate than on actual logic?

1

u/spyron111 20h ago

Currently I m doing like first build workflow logic in pen paper then code with ai and review most of the functions of the code if target date for delivery is not so close

1

u/jackgoldberg123 19h ago

That's a solid approach, planning on paper first probably makes the review a lot easier. Do you find the AI output usually matches your plan, or do you end up rewriting chunks?

2

u/el_bosteador 1d ago

These sound like certification questions lol. As an experienced developer, I don’t necessarily micromanage the code AI writes but I tell it what patterns to use. Modularizing is pretty common now-a-days so AI is good at following that.

1

u/spyron111 23h ago edited 23h ago

So u don''t care about the number of lines in a file ??? And are you fully relying on AI TO Write ,debug and handle logic ? I m juat wann point of view about current reality, since I m still feeling fifty -fifty about it.

2

u/bluebird355 18h ago edited 18h ago

We don't give a shit anymore, it has no value whatsoever
No LLM will ever produce a 10k file, it got good at coding
Who cares honestly

You should be automating your workflows now, get behind the times...

1

u/spyron111 11h ago

🤣🤣🤣🤣🤣

1

u/Cahnis 22h ago

That is the neat part, you don't

1

u/spyron111 22h ago edited 20h ago

So go with flow only... As of u

2

u/jaxonwhthey 20h ago

Not easy. But also so much promotion driven development to do, so that’s off the priority list