zlacker

[parent] [thread] 4 comments
1. ivan_g+(OP)[view] [source] 2025-04-16 01:27:17
How do you define code quality in this case and what is your stack?
replies(2): >>kamaal+Mw >>SkyPun+Ip1
2. kamaal+Mw[view] [source] 2025-04-16 07:20:17
>>ivan_g+(OP)
Code that you can understand and fix later, is acceptable quality per my definition.

Either way, LLMs are actually high up the quality spectrum as they generate a very consistent style of code for everyone. Which gives it uniformity, that is good when other developers have to read and troubleshoot code.

replies(1): >>ivan_g+KC
◧◩
3. ivan_g+KC[view] [source] [discussion] 2025-04-16 08:13:06
>>kamaal+Mw
> Code that you can understand and fix later, is acceptable quality per my definition.

This definition limits the number of problems you can solve this way. It basically means buildup of the technical debt - good enough for throwaway code, unacceptable for long term strategy (growth killer for scale-ups).

>Either way, LLMs are actually high up the quality spectrum

This is not what I saw, it’s certainly not great. But that may depend on stack.

replies(1): >>SkyPun+5q1
4. SkyPun+Ip1[view] [source] 2025-04-16 14:15:28
>>ivan_g+(OP)
The definition of code quality is irrelevant to my argument as both human and AI written code are held to the same standard by the same measure (however arbitrary that measure is). 100 units of something vs 99 units of something is a 1 unit difference regardless of what the unit is.

By the time the AI is actually writing code, I've already had it do a robust architecture evaluation and review which it documents in a development plan. I review that development plan just like I'd review another engineers dev plan. It's pretty hard for it to write objectively bad code after that step.

Also, my day to day work is in an existing code base. Nearly every feature I build has existing patterns or reference code. LLMs do extremely well when you tell them "Build X feature. [some class] provides a similar implementation. Review that before starting." If I think something needs to be DRY'd up or refactored, I ask it to do that.

◧◩◪
5. SkyPun+5q1[view] [source] [discussion] 2025-04-16 14:17:10
>>ivan_g+KC
I'm curious were you in an existing code base or a greenfield project?

I've found LLMs tend to struggle getting a codebase from 0 to 1. They tend to swap between major approaches somewhat arbitrarily.

In an existing code base, it's very easy to ground them in examples and pattern matching.

[go to top]