Remix.run Logo
cedws 3 hours ago

I have plenty of experience with LLMs and use them daily but definitely wouldn't call generated code "quality code." Often looks like complete vomit.

K0balt an hour ago | parent | next [-]

That’s kinda what I mean. Maybe it only works well in some languages, but with the harness I built for C and C++ does a fantastic job of adhering to very strict architecture and style guides. Way cleaner, more readable, better factored, and more interpretable than human generated code, except maybe one or two devs I have worked with. YMMV I guess?

TBF I do burn 200k tokens just preloading the context with onboarding, not including any code, just document trees of development policy documents, style and architectural standards, code and documentation review processes, company ethos and culture, etc. it’s a token fire, but it really works for us.

Also, documentation driven development all the way down.

satvikpendem 2 hours ago | parent | prev | next [-]

If you're an enterprise (including startups), you worry about customers, not code quality. There are famously many startups that gained traction despite shit code and then eventually got around to fixing it, to whatever extent was possible, like Facebook HHVM, Stripe's Sorbet, etc.

wonnage 2 hours ago | parent [-]

[dead]

NortySpock 3 hours ago | parent | prev [-]

Ok, and? You can live with that if there are more important things to deal with.

I've stared at ugly LLM code, that I had just had generated, and worked well enough for my purposes. (generally, some quick recursion into a nested python dictionary in order to dig out some property -- especially for linting or quick data analysis).

And I wanted something better, sure, something a bit more readable ...but I just needed it to work well enough to recurse through a yaml file for config file linting, not be battle-hardened against every test case.

So to deal with the mess, I shoved it in a pure function, threw a few basic sanity unit tests around it, put a comment with a disclaimer of "#this is LLM generated code, it is lightly tested, do not use it for anything truly load-bearing without a lot more tests" and I moved on to something else.

Not everything has to be bulletproof.

csallen 2 hours ago | parent [-]

You're on Hacker News. This is a site full of developers who are convinced that "proper software engineering" is 100% of what makes a business successful, and everything and everyone else is useless. You can't just waltz in here and point out that code in business is a means to an end and expect not to get downvoted.

Schiendelman an hour ago | parent | next [-]

As a technical product manager, this 1000%. It's just irrelevant how bad code is unless it impacts the business.

AdieuToLogic an hour ago | parent | next [-]

> As a technical product manager, this 1000%. It's just irrelevant how bad code is unless it impacts the business.

If you are, in fact, "a technical product manager", I would hope you understand that "bad code" is identified as such specifically because it "impacts the business."

Schiendelman 16 minutes ago | parent [-]

That is not how most engineers define bad code.

nomel 42 minutes ago | parent | prev [-]

This is something I wish I understood sooner. There is strong merit to "good enough".

Of all the "concise" and "beautiful" code I worked hard to produce, I was the only one to ever lay eyes on it. It didn't actually matter, and nobody cared but me. The people in charge of my raises could never perceive quality of code, because it wasn't their area of expertise. They only cared (rightly so) that it did what it was supposed to, and all the elegant abstractions didn't practically help that purpose. It was, literally, wasted life that I should have spent just getting off work early, like most of my colleagues.

echelon 2 hours ago | parent | prev [-]

Every bit of code written in the last 50 years is going to be meaningless.

People need to get to grips with that fast.

Distribution, relationships, processes, mindshare, marketing, and politics matter. Code is just ephemeral glue and implementation detail.

ses1984 an hour ago | parent | next [-]

Not every bit of code is going to be meaningless.

Just 99.999%.

slopinthebag 43 minutes ago | parent | prev [-]

Lmao. Have more respect for your elders, who wrote all the code that your ai psychosis is fuelled by.

echelon 20 minutes ago | parent [-]

Every single thing around you was pioneered by people who are dead and forgotten. From the materials science of the clothes you wear, to the very language you speak.

Get over yourself. We're all ephemeral, dead and recycled in the blink of an eye. Our species doesn't even clock on the geologic timespan.

If you think your code (or any of your artifacts or possessions) matter beyond their immediate utility, you're mistaken. Work will either fall into disuse or be replaced. It's scaffolding for what comes next along a well-traversed path.