all 100 comments

sorted by: hot top controversial new old
[–] 113 points 4 months ago (20 children)

I was doing a code review this week. There was nothing wrong with the code in terms of structure or performance, but it was doing this really weird operation with an ID after DB insert. I asked about it and the author was like "yeah, that's weird; I don't know why the AI did that. I'll remove it." My dude, I know you can write good code. Don't be lazy!

  • source
  • hideshow 20 child comments
  • [–] 47 points 4 months ago (2 children)

    i dont understand that. i use ai for help reading through old stuff or to help me remember how tondo a thing i havent done in two years but blindly copy pasting blows my mind.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 16 points 4 months ago (1 child)

    I suspect it's the same people that blindly copied stackoverflow code without understanding it. Which is likely where the LLMs are getting most of its answers from in the first place.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 4 months ago

    and these people were always the majority.

    so people saying that genai amplifies, they are correct, it amplifies the bullshit and the bad things.

    there were always more mediocre and useless people that top performers.

    it has been a miracle that anything has worked good enough so far.

  • source
  • parent
  • [–] 29 points 4 months ago

    I worked with a guy that 100% used AI to dev everything. didn't even check to see if it would work before submitting a MR.

    It got to the point that I stopped reviewing them and just rejected them outright with a simple comment, "doesn't work".

    eventually he was fired. the evidence? the four months of shitty MRs he opened. the best part was, when I said "doesn't work", I was never wrong. none of his changes worked.

  • source
  • parent
  • [–] 9 points 4 months ago (11 children)

    The lazy part is not questioning the bullshit they noticed and did nothing about - not using the tool

  • source
  • parent
  • hideshow 11 child comments
  • [–] 22 points 4 months ago (9 children)

    I disagree on that; we lose the muscles we don't use and I've already seen that happening. It's also making people want to jump straight to implementation without proper design and I think that's a recipe for trouble.

  • source
  • parent
  • hideshow 9 child comments
  • [–] -3 points 4 months ago* (8 children)

    Again, cowboys have been skipping steps and doing things lazily and poorly well before AI. Everyone knows people who jump straight into an IDE instead of following proper workflows. Yes, skills you don't practice take a hit. In a professional setting there is such a substantial productivity hit to avoid all AI use, compared to correct and proper use. It will soon be infeasible to take such at anti AI stance and remain in the industry

  • source
  • parent
  • hideshow 8 child comments
  • [–] 8 points 4 months ago (7 children)

    cowboys have been skipping steps and doing things lazily and poorly well before AI

    Of course, but I think not understanding what they're committing is more dangerous than before (even allowing for the classic "I copied and pasted this from xxxx site"). This is also true when people are fully trusting AI to review code as well.

    We use AI for code reviews which I do find useful. It's still wrong part of the time (sometimes ridiculously so). So far, it's also failed to provide accurate documentation for various repos which seems like something rather basic. I'm not against all AI (though I do have ethical and environmental concerns with several of the commercial options). I will not have them write code for me, though.

    As for the future, we'll just have to wait and see. I've seen a lot of AI budgets exceeded and/or cut. I do think it's not there yet for a number of tasks but is suitable (again minus certain concerns) for others.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 7 points 4 months ago (3 children)

    Machines cannot take responsibility for problems, which is why I feel containment barriers cannot be entirely AI. AI reviews are fine (and catch a lot of wild issues humans miss) if a human genuinely reviews it too

    I've lost count of how many snippets I've reviewed that were verbatim pasted from stack overflow pre-AI lol

    My view is that humans produce a lot of garbage, and AI tooling currently amplifies your productivity. If you're careless, don't take pride and normally commit tech debt then with AI tooling that's going to be amplified 10-100x. The more careless you are the faster you can commit more garbage - especially if you're skipping on unit/integration/functional testing

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 4 months ago (1 child)

    Machines cannot take responsibility for problems, which is why I feel containment barriers cannot be entirely AI.

    Where I work AI is being pushed hard, but the company has made it their policy that there must be a human in the loop. Ownership of the code written by AI is down to the person using the AI. "Oops, don't know why the AI wrote that!" Is not a valid answer to bugs being introduced into production.

    I'm seeing senior engineers of 15+ years no longer writing code and churning out a ton more work. They are disappointed they don't write code anymore but working with the AI is the job they have to do to be able to afford to live. They say the cognitive load has shot up for them, they are constantly spinning plates.

    To make the plate spinning job easier they have implemented guard rails to ensure the agents don't do anything stupid. I'm seeing a number of stories posted to Lemmy where the AI does dumb shit but the stories don't apply any accountability to the developers using it.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 4 months ago

    especially if you’re skipping on unit/integration/functional testing

    That's a career-limiting move where I work. I draw a hard line on that. You don't get many chances to blow up prod because you left out mandatory process steps. You might not get sacked the first time (though you should), but it if happens again, you'd better be contemplating your future life as a barista, or pounding farts out of shirt-tails in a steam laundry.

  • source
  • parent
  • [–] 2 points 4 months ago

    This is also true when people are fully trusting AI to review code as well.

    Holy shit.

    We use AI for code reviews which I do find useful.

    What's it going to tell you that a static analysis tool wouldn't? (And we all know what a hell of false positives you get into with those).

  • source
  • parent
  • [–] 1 point 4 months ago (1 child)

    I think not understanding what they're committing is more dangerous than before

    This kind of reasoning applies to every new tool. 20 years ago I was saying the same thing about work from co-workers who started programming on Java and didn’t understand what their beloved HashMap actually does under the hood.

    Eventually we adapt to either the new tools or to the new dangers, the ones who don’t just become fossils.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago

    Eventually we adapt to either the new tools or to the new dangers

    Another option is to stop using new tools and frameworks that don't benefit us. Adoption should be based on a good cost/benefit ratio, not treated as an inevitability.

    It's also good to re-examine old choices and shitcan them when they're no longer earning their keep. We were using NiFi for something non-core that we do, and replacing it with a simple hand-coded solution gave us a massive performance bump that's more maintainable as well. Our use case was well outside NiFi's sweet spot, so we shouldn't have used it in the first place. But the person who made that decision is long gone, and it's always someone else who ends up having to clean up those messes. Here's hoping that someday I find that guy in a dark alley with no camera coverage.

  • source
  • parent
  • [–] 3 points 4 months ago

    That's one of my major beefs with AI: it worsens the signal/noise ratio throughout the dev process. The two greatest enemies of good software are complexity and its deformed cousin, extraneous crap. AI increases both, making it harder to address the real underlying problems.

  • source
  • parent
  • [–] 3 points 4 months ago* (last edited 4 months ago)

    Yeah these interaction are becoming quite fraught because there is extreme danger of AI use just shifting the burden from one person to another. That guy wrote the code super fast with AI, but you had to do an additional round trip during code review with him to eliminate that weirdness. He gets a bonus for doing twice the work in half the time, you get nothing.

  • source
  • parent
  • [–] 1 point 4 months ago

    There was nothing wrong with the code in terms of structure or performance, but it was doing this really weird operation with an ID after DB insert

    So there was plenty wrong with the code.

    And it hasn't been fixed.

    "Bro, its totally just you prompted it wrong"

  • source
  • parent
  • [–] 25 points 4 months ago (2 children)

    You only have to snorkel through the mile of shit if you let the shit-pipe in in the first place.

  • source
  • hideshow 2 child comments
  • [–] 72 points 4 months ago* (last edited 4 months ago) (30 children)

    In my experience, AI is an amplifier.

    Good engineers will produce more good code, because they ask the right questions, know what good looks like and check the output.

    Bad engineers will produce reams more bad code. The mistakes they make will be amplified. They will give wrong and incomplete instructions, won't see what the problems are with the result and will ship it anyway.

    This amplification also means people will spend a larger proportion of time reviewing than coding, which I think is less interesting.

    All of this is stuff that can, to some extent, be addressed with policy. You help and instruct juniors, encourage people to better understand and own their code, or at worst reprimand them if they don't.

    You can adjust expectations of product managers and explain to them that more is not better, as it always has been. Faster development can often come with bugs and tech debt and this is more of the same.

    All I've said above is puts aside the ethical arguments of using or not using AI of course. That's a separate can of worms entirely.

  • source
  • hideshow 30 child comments
  • [–] 16 points 4 months ago (2 children)

    Good engineers will produce more good code, because they ask the right questions, know what good looks like and check the output.

    Best code is the code that is never written in the first place. But that concept is difficult to explain and measure for management purposes. Just because "AI" can automate well-structured, tested boilerplate for "good" developers does not mean all that boilerplate should be there.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 10 points 4 months ago* (last edited 4 months ago)

    Bad & meh engineers get praised because they "waste" less time directing ai and reviewing output - barely working is good enough in the race to market.

    I've seen things as serious as a privileged user for one customer having admin access to all customers being discovered during the last minute pentest literally days before the planned product launch. That product is supposed(and likely will) to move 250M USD for customers in the second half of this year. Under the current policy at my day job, coming all the way from the top, reviewing ai generated code at all should be an exception reserved for 0.1% most critical code. Yes, in finance.

  • source
  • parent
  • [–] 7 points 4 months ago* (last edited 4 months ago)

    Insane stuff.

    Hopefully, those are the sorts of companies that should fail or get sued, so they learn their lesson. Not holding my breath though.

    Companies have been doing insane shit for the sake of saving a buck or getting to market fast for decades, it's nothing new. AI may or may not just make it worse.

  • source
  • parent
  • [+] 1 point 4 months ago (1 child)
  • [–] 1 point 4 months ago

    The neck of the finance woods my employer is in is highly regulated.

    Just failing to notify a regulator on time you blocked a transaction attempt involving a sanctioned individual means hundreds of thousands in fines per transaction (not up to, flat 6-digit fine) + potential prison time (can't remember if it was up to 15 or 20 years)

  • source
  • parent
  • load more comments (-2 replies)
  • load more comments (-2 replies)
  • load more comments (-2 replies)
  • [–] 14 points 4 months ago* (12 children)

    Nah, good engineers are retiring, bad engineers are running rampant. You give yourself away calling us engineers, we were never, except for some yearly title increase instead of money. Just programmers, and that is fine. Engineer is a whole other thing from the steam age, my BSc was in Math, worked fine to get me in.

  • source
  • parent
  • hideshow 12 child comments
  • [–] 41 points 4 months ago (12 children)

    Engineer is a whole other thing from the steam age, my BSc was in Math, worked fine to get me in.

    As a mechanical engineer, I would beg to differ. When you strip away all the fancy math, engineering is ultimately about critical thought and solving problems/achieving functionality with limited resources. As one of my professors liked to say, "Anyone can build a bridge to support a load, but only an engineer can design a bridge that just barely holds that load."

    Engineering is an ancient domain that goes back to the very beginnings of civilization and continues to grow with our needs as we progress. Where once it was just mechanical, we now have domains like electrical, materials, and biomedical engineering. If we've hit a point where we need engineers who specialize in software, why shouldn't we welcome in a new domain?

    While it does feel weird calling software developers 'engineers', that is arguably what they do. It's no less reductionist to suggest they are just programmers than it is to suggest that mechanical engineers are simply CAD and Excel jockeys. There's a layer of comprehension about the systems in play and how they can be manipulated that gets lost in the reduction.

    My only real sticking point about software engineers where I tend to push back is that Professional Engineer is a legally protected title and indicates licensure, at least in the US. It requires the right degree(s) and several years of work supervised by a PE to qualify for that licensure. The importance of the PE license is that you are recognized as an authority in your field- for good or ill. You can make big decisions, but you will also be held accountable if something goes wrong.

    In my experience, many software engineers brush aside the importance of those types of qualifications because their field wasn't quite as rigorous to enter. As we continue to develop a society where software mistakes can absolutely kill people (e.g. self-driving vehicles, robots, automated decision tools in medicine and insurance, etc) or cause massive economic damage, it's critical that we decide how software engineers play a role in preventing those things and how we hold them accountable when they don't.

  • source
  • parent
  • hideshow 12 child comments
  • [–] 13 points 4 months ago

    Wow, that was a screed, (a worthy one) and yeah, an engineering degree should be special IMO, as perhaps a (pure) Math one. should also be. We have a tendency to regard you lesser, in self defense,, but that professional responsibility is significant, a more elegant weapon from a more civilized age. I do apologize,, the steam age thing was out of line (but meant with heart, trains rock, and IMO is where 'engineering' started) has it's roots.

  • source
  • parent
  • [–] 8 points 4 months ago* (3 children)

    As a software developer who also has a background in civil engineering and an EIT, I rue the fact that NCEES got rid of the software engineering PE exam before I had a chance to take it.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 4 months ago (2 children)

    I didn't know NCEES even entertained doing a software engineering license, interesting. When was that?

  • source
  • parent
  • hideshow 2 child comments
  • [+] 6 points 4 months ago (1 child)
  • [–] 2 points 4 months ago* (last edited 4 months ago)

    You clearly have a lot more experience than me- I'm fairly fresh out the gate. Like you, though, I work in a field where licensure isn't super relevant (manufacturing).

    It was drilled into my head in school and by my dad (cheme but does civil work and is on the committee that writes the cheme PE) that that for some domains, like civil and chem, it's nigh impossible to find work without a PE (even entry level often requires at least the EIT accreditation).

    Our system is, frankly, still very wild-west in terms of accountability for engineers in emerging fields.

    It's deeply unfortunate that your experience with the accountability side of things went the way it did. That's another thing that they drilled into my head at school- if you sign a drawing and that part killed or hurt someone, the victims could call on you in a court of law to explain or even include you as a defendant in the suit. Does that always happen? Obviously not, but at least the possibly is there I guess.

    Agreed, but software has already had life-safety-critical and massively financially impactful roles in society for 50+ years now, and I see precious little progress toward formal accountability.

    Fully agreed here, I was just struggling to think of older life-critical examples after travelling for 22 hours lol (long day yesterday).

  • source
  • parent
  • [–] 1 point 4 months ago (6 children)

    Does the same argument apply to calling janitors custodians "sanitation engineers"? I've seen that some places.

    Like, if the word "custodian" is too offensive, then maybe it's just because the job sucks and comes with stigma, and anything you call it is going to sound derogatory after a few years...

    I get that it's a critical job, and the people in those roles should be treated with dignity and respect like everyone else. The social stigma is wrong, for sure. But simply changing the title doesn't solve anything...

  • source
  • parent
  • hideshow 6 child comments
  • [–] 5 points 4 months ago (5 children)

    What? That's a very different situation than what I was talking about with software development. I thought I pretty clearly outlined the core of what it means to be an engineer- Custodians aren't doing engineering work. As you said, that doesn't make the role less important or less deserving of dignity.

    Just calling someone an engineer because it sounds better is silly and demeans both the actual role and the work that engineers do.

  • source
  • parent
  • hideshow 5 child comments
  • [–] -1 points 4 months ago (4 children)

    Okay, so the argument does not apply to that situation. A simple "no" would have sufficed...

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 4 months ago (3 children)

    It is more useful to explain why something is wrong

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 4 months ago (2 children)

    Yeah the explanation was fine but the "What? That's a very different situation" seemed unnecessarily hostile. But maybe it just have my panties in a bunch today, it could be me

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 4 months ago* (1 child)

    I wasn't intentionally trying to be rude, it genuinely took me aback. I'm sorry to have come across that way.

    From my perspective, tt felt like you hadn't actually read my argument and were responding in bad faith, since this comparison is the sort of thing that people say to dismiss software engineering as a sort of thought-terminating cliche.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 4 months ago

    Oh, my bad. I didn't really need to take offense to it, I was probably just grumpy and didn't know what else to say. It wasn't that big a deal.

    But no, I wasn't trying to be dismissive of your argument qua software engineering, but I see how it came off that way. I think it was a good argument, I was just bringing up something tangentially related out of nothing more than free-association style banter. In hindsight it wasn't really that relevant to the conversation anyway...

  • source
  • parent
  • load more comments (-2 replies)
  • [–] 12 points 4 months ago* (last edited 4 months ago) (-1 children)

    Any shaved ape can code. One thing that distinguishes worthwhile coding from crap is adherence to engineering principles. Nitpicking about the semantics of the word "engineer" avoids the incontrovertible fact that empirically derived principles and best practices exist and that software engineering is a thing.

    Coincidentally, my MSc is in mathematics and statistics, after a dual BSc in math and physics, so we're from similar starting points. My education as a software engineer and later as a systems architect only came once I began coding. There's a considerable body of empirical knowledge in the literature (along with too much irreproducible fluffy bullshit), but in my experience, the general awareness of that knowledge is worse among the newer generation of coders than older ones. I suspect that's because they generally assume that the toolchain and processes do it for them.

    The widespread adoption of Scrum has been another source of knowledge loss: it's used in a number of situations where it does more harm than good, and even where it could succeed, it's often misapplied (partially because some agile principles are impossible to implement in most real-life organizations, so misapplication is the only posssible kind of application). There are times when architecture and design matter greatly, and some agile practicioners seem to actually believe that they can be done on the fly or major shortcuts can be taken. "We're not doing waterfall!" You know what? I've been in the business since before some of those fools were born, and I've never done a waterfall project. It was already an anti-pattern in Fred Brooks's 1970 magnum opus. Agile vs waterfall was always a false dichotomy. It's just that some of the OG agile people were too ignorant to know that, or too self-interested to admit it.

  • source
  • parent
  • hideshow -1 child comments
  • load more comments (-1 replies)
  • load more comments (-1 replies)
  • [+] 11 points 4 months ago* (last edited 4 months ago) (5 children)
  • [–] 13 points 4 months ago

    In my experience the time spent getting AI to do what I want can just be used to write good code in the first place.

  • source
  • parent
  • [–] 1 point 4 months ago* (last edited 4 months ago)

    I was just planning to do some sort of write up on this topic, although it will be internal only.

    Of the three projects I’m currently on

    • existing code base where AI sometimes has good ideas but almost never able to implement them successfully. This is legacy code, all human generated, and is probably too tightly coupled. Test framework is tightly coupled to the environment so ai cannot run it
    • new tool implementation to give cheaper and faster context across all repos (Spotify Backstage)
    • new code base almost entirely ai generated. Much more loosely coupled. There is no test /mock framework available, so it’s all scripts, which the ai is able to run at will to refine its guesses

    There’s definitely distinct conditions where ai can be the right tool and can succeed vs when it can’t. In managements blind rush to vibe code everything, they need to better understand where it works and where it doesn’t

    In particular, functionality I’m working on this week

    • existing code base ”modify function x to cover scenario y” at best gives a useful strategy
    • new code base “implement function x similar to existing code base, but that also covers scenario y” seems to work
  • source
  • parent
  • load more comments (-1 replies)
  • [–] 3 points 4 months ago (3 children)

    This is the first comment section i've seen on lemmy with a reasonable discussion about AI use that wasnt instantly downvoted into oblivion for being pro-AI

    Usually this place is full of the "EVERYTHING IS SLOP" crowd without any nuance as to how it is being actually used to do small tasks well under the supervision of a qualified person.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 13 points 4 months ago (2 children)

    This comment thread reads 100% like AI astroturfing. AI is not an amplifier, there’s literally no evidence from any study that’s been done that backs that. That’s just AI company marketing.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 4 months ago* (last edited 4 months ago) (1 child)

    "AI IS AMAZING AND INEVITABLE!!!" = astroturfing

    "AI sucks at X, but sometimes useful at Y... use with caution." = astroturfing

    "AI SUCKS AT LITERALLY EVERY TASK!!! ITS ALL SLOP!!! SLOP SLOP SLOPPITTY SLOP!!!" = only organic discussion and reasonable take....

    Look, there are 100s of valid reasons why AI sucks and is unethical... in fact, it's pretty much 100% built on unethical methods, no doubt...

    But "AI sucks at everything and literally has zero good use cases" is not a real argument, but it seems to be the most popular opinion around here.

    I disagree with 90% of the pro-AI stuff out there, i'm just pointing out that its rare to hear a reasonable discussin on the topic here that isnt just 100% hate

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago

    If AI actually adds value, it should be trivial to demonstrate that value-add in a way that passes scientific rigor.

    The underlying problem is that we don't have a good way to measure code value. Software quality is most closely coporable to a weird combination of scientific paper, mechanical diagnostic, and toy instructuon. And we don't have good ways to measure those, either.

    There was apparently one study from Stanford:

    https://medium.com/@manusf08/does-ai-really-boost-developer-productivity-a-stanford-study-of-100-000-devs-has-answers-4f64c64ebe97

    Note that the headline is misleading -- stanford apparently trainded an AI model to "rate code" in a way that agreed with some of their staff and then ran that on a bunch of projects. The "good at simple and new, bad at complex and old" matches my intuition, but isn't really a stronger test than counting minutes spent in a project or dollars spent on programming with or without AI.


    And all AI output is slop. It's just that for some things slop is good enough.

    Which really should be an argument more for discarding those things than boiling oceans to generate more of them, but capitalism loves doing wasteful things

  • source
  • parent
  • load more comments (-1 replies)
  • [–] 2 points 4 months ago (2 children)

    Provlem being is that it is not an equal amplifier.

    Good engineer spends a morning going back and forth and maybe gets something done that wild have taken them all day.

    Bad engineer puts first draft slop in production in a couple of minutes.

    Bad engineer gets to put out something every few minutes, good engineer works too make it actually right instead of merely looking specifically right.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 4 months ago (1 child)

    That's true, but spaghetti code was always faster to write than good code before as well. I will agree that the speed gap probably has grown though. That's why tools like AI need discipline.

    If managers and engineers don't understand that their code will turn into garbage and the business will get reputational harm and lose customers / get sued / have more tech debt to fix and they'll eventually learn their lesson. In the meantime it's going to be a painful process where upper management see extra speed, expand their scope or downsize their staff, then learn that they have crumbling foundations and need to adjust. This has publically happened a few times already. Things will stabilize in time.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago

    Complication is, broadly speaking, much of the decision making only thinks to when their current bonus stock vests. So long term thinking is not well rewarded. If you think long term, then your short term thinking competitor screws you up long enough anyway.

    I strongly suspect the next step is for a dramatic reduction in the compensation for software development. If it's not really significantly any more profitable than another trade, then you won't see as many people who seem to actively hate it trying to do it anyway.

    Reminds me of a conversation I overhead, a guy trying to impress a girl with how much money he was going to get back in college. He was going into software development to make big money. Girl asks "but I thought you were majoring in communications, why do that if you want to do software?". "Oh, well, I tried but I couldn't understand the course work, so dropped it, figured I'd just get some degree, and then just get some certification and do software development for the money without the dumb coursework". Basically since the late 90s we've had a flood of those types, and this phenomenon just exacerbates the problem.

  • source
  • parent
  • [–] 2 points 4 months ago* (1 child)

    Good engineers will produce more good code, because they ask the right questions, know what good looks like and check the output.

    So what's the point then ?

    There have been coding frameworks like game engines for decades, if system coding is beyond your ability.

    If AI can't write usable code from the start its worthless.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago

    Maybe you've misunderstood something.

    No matter what framework or language you are using, AI can make the development process faster. It can help you debug a problem, write tests and refactor code. In some situations, it will be faster than writing code yourself, in others not.

  • source
  • parent
  • [–] 1 point 4 months ago

    No it's not because it causes brain damage. If you look at slop all day you no longer produces good code even you're good engineer, you're producing slop code because your standards keep getting lower and lower until you become bad engineer but you even haven't figured it out. If good engineers would produce good code with AI we would have working software. Look how quality of software lowered after AI. We used to say that developers from coding bootcamps were bad now we're lowering standards even more to praise investors.

  • source
  • parent
  • load more comments (-2 replies)
    [–] 17 points 4 months ago

    Yep... I'm leaving the industry after 20+ years because of this industry hellscape

  • source
  • [–] 17 points 4 months ago (4 children)

    If I got an AI-written codebase hard to navigate, I'd bill the AI usage it took to clean it up and, on top of it, the hours I have to put to actually do the job. We can definitely use AI to write good code, but it takes the kind of professional criteria that vibe coding lacks in order to do that.

  • source
  • hideshow 4 child comments
  • [–] -1 points 4 months ago (3 children)

    We can definitely use AI to write good code

    Get a different job. Now!

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 4 months ago (2 children)

    have you seen some human written code before? Someone who knows what they're doing with AI can definitely generate better code

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 4 months ago (1 child)
    1. it's not AI, it's statistical word prediction with ZERO understanding of context
    2. yes. statistical word prediction can be better than some idiot programmers. But I don't compare my kitchen machine skills with those of a toddler either.
  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago* (last edited 4 months ago)

    well, you're free to die on that hill I guess

    Taking what you give it into context it's kind of the whole selling point of LLMs. If you get garbage output maybe you're using it wrong. In the end it's just a tool, if you can't use it, that's on you.

  • source
  • parent
  • [–] 8 points 4 months ago
    [–] 4 points 4 months ago (2 children)

    Computers are too powerful. Any kind of horrendous slop is now capable of running acceptably.

  • source
  • hideshow 2 child comments
  • [–] 10 points 4 months ago (1 child)

    Until it doesn't and you don't understand the code.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago*

    No one understands the code. It's far too complex and abstracted. In any case, just get another computer and/or toss in more code. There's 4TB of storage and 64GB of RAM, so what? You want a purple circle, that's going to take at least 55 library calls through dozens of languages.

  • source
  • parent
  • [–] 7 points 4 months ago (1 child)

    im pretty sure this isn the reason, its the dread of being laid off, and unable to find another job, because these companies think AI replaced them. i had one person i know that was laid off since 2023, and another had been put on hold indefinitely.

  • source
  • hideshow 1 child comment
  • [–] 5 points 4 months ago

    There can be different reasons for different people. I personally have zero fear of being laid off (strong worker protection laws in Germany) and finding a new job this year was surprisingly easy (50-ish applications with no cover letters -> 3 interviews -> 3 offers) and I still feel the exact dread that is described in the article. The industry sucks in multiple different ways rn.

  • source
  • parent
  • [–] 20 points 4 months ago* (7 children)

    It seems I'm the only software engineer on Lemmy who loves having AI. It's not perfect, but it's so much better than doing everything from scratch and it's far more reliable for solving obscure runtime errors than chasing down all the typically dead-end results on a search engine for the stack trace. Or maybe I'm just the only one willing to endure the down votes. Either way, AI has been an exceptional boon in my daily workload.

  • source
  • hideshow 7 child comments
  • [+] 15 points 4 months ago* (last edited 4 months ago)
  • [–] 7 points 4 months ago (1 child)

    When 60-80% or so of your PR can be refactored away then it’s a crap PR and honestly never should have been one.

    So their time savings in getting AI help to write their code means that you spend more of your presumably more expensive time doing reviews and educating them about slop removal instead of some higher-value activity. Sounds like you're veering into negative ROI for the AI use if that's true.

    Luckily, I don't review PRs very often, I have people to do that. But the general principle is that the content of a PR is the responsibility of the submitter, regardless of its source. Wrong algorithm? Their fault. No-good UTs? Their fault. Inappropriate or unsafe dependencies? Their fault. Slop? Their fault.

    Luckily, with the work we do, there's often nothing someone could train an LLM on, so we don't see all that many PRs with AI-generated content, unless we're using some well-known commodity library or framework in a common way. And that was always the easy stuff anyway.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 4 months ago

    A slop PR should be the submitter’s responsibility, but if they’re trying to push out unreviewed slop, you know they’re just going to ask an LLM to refactor it instead of looking at it themselves. The best response is just to reject it outright and have someone else work on a new solution.

  • source
  • parent
  • load more comments (-2 replies)
  • [–] 22 points 4 months ago (4 children)

    I see an LLM as my good-but-not-perfect assistant, there to code up boring bits "loop thru this data and extract...", "improve this bit of code please", and to help with errors "why does this code give that error".

    I never let it do big slabs of code, and always run and check its code incrementally.

    It is my code and the LLM just makes it easier to do. Thanks LLM.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 8 points 4 months ago (3 children)

    This is probably a fine and responsible way of using LLM, but sadly the loudest voices are those crowing about coding being a "solved" problem and bragging about being 10x more productive by doing very little and certainly not reviewing refactoring and understanding the generated code.

    Only gotcha for this is LLM is being offered well below cost, will you still want yo use it at 5x or 10x the cost?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 4 months ago (2 children)

    No. I stopped using Copilot after the price increase. Now I do everything locally using Qwen. There's a significant decrease in quality, not because Qwen is inherently worse, but because I only have 12GB of VRAM, but at least it's affordable, and still better than no AI.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 4 months ago (1 child)

    I tried using LocalAI to get some kind of agent not being used to entrench fascism and destroy the environment and consume irreplaceable clean water and haven't had much luck. Even on a beefy machine with a chonky graphics card, it's slow. That was after trying it on my laptop and damn near burning my legs off with the graphics card going nuts and the fans spinning up like jet turbines.

    I did an experiment where I tried to get it to write some code that I had already written myself, just as a test case. Even when I found a model that worked more quickly, the code it produced didn't do the thing I had told it to do. I had to tell the LLM that, contrary to its "thinking," inline HTML does, in fact, make for valid Markdown, and that it could actually do the thing I had already explicitly told it to do.

    The second iteration worked, but the code was far from ideal. If I had been in a professional situation where i would have been putting that up for review, it would have taken me even longer to make the code presentable and up to my standard. In the end, the code I wrote was better by a mile and I wrote it maybe twice as fast as the LLM.

    I'm sure this is faster if I use Claude or something and engage the Torment Nexus, but that's kind of my point. It takes so much juice to make these things viable, and the hardware you need at home to replicate that usefulness is expensive and becoming less available. And removing the energy cost from the user's machine (where you can literally hear and feel the energy consumption) to some bank of servers you'll never see in person does a lot to distance a user from the effects of their usage of the tool. Running a local agent only made my view on AI lower than it already was.

    I did not try the Qwen model, though I suppose I ought to since I've now seen you claim success with it a few times on here. Will I finally be impressed? Man, I doubt it, but I'll give it a go.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago* (last edited 4 months ago)

    When working with a local micro, be sure to use a prompt to seed itl. Inform it that it is an expert in whatever language you're using, and that it is methodical, professional, intelligent, knowledgeable, and accurate; and that it produces only highly efficient, well-documented code that compiles and utilizes best practices. Throw whatever adjectives or descriptors you think are appropriate in there. This goes double if you're using an MoE, as it primes the model to know which layers/sub-models to activate, so you don't have code being written by the wrong aspect, such as junior programmers and examples of poorly written code.

  • source
  • parent
  • [–] 5 points 4 months ago

    I recently helped evaluate it for company use. My test considered of vibecoding an App that takes a Pipewire screencast and does some basic image processing on each frame. In C#, which doesn't have great options for talking to Pipewire. I did several runs with various iterations of Claude.

    On the upside, it had few problems navigating DBus to negotiate a screencast handle. So that's one annoying API out of the way.

    On the downside, all attempts at taking to libpipewire through P/Invoke failed, usually because Claude hallucinated parts of the API or set constants to incorrect values. I only got a working program when I allowed the use of a prerelease Pipewire NuGet package.

    The generated code was of acceptable quality but I wouldn't allow it into a codebase without a refactor. The code has zero consistency and one time the whole solution didn't have any namespaces. The fact that the LLM writes and rewrites the code during a single prompt means that you can get mild spaghetti as an initial state.

    Honestly, I can see it for something like rapid prototyping or implementing basic scaffolding for an annoying API. But damn is Claude bad at detail work.

  • source
  • parent
  • [+] 4 points 4 months ago (1 child)
  • [–] 2 points 4 months ago

    I agree, but that's a result of fascism, not technology. How it's being utilized should be the target of ire, not the technology itself. The benefits of AI should be shared by all of society, but instead it's being used to create even more wealth disparity. That actress should have access to Universal Basic Income and be able to do the work she feels passionate about, no matter what it is. Instead we have oligarchs extracting ever more from a suffering populace.

  • source
  • parent
  • [+] 2 points 4 months ago (1 child)
  • [–] 0 points 4 months ago

    try talking with an out of work actress about how it's being utilized, their only answer is to ban it all.

    I know, it's irrational anger and misplaced.

    As should we all have had for the past 25 years... keep wishing.

    Agreed. And since the alternative is giving up hope,I will indeed keep wishing 🤞

  • source
  • parent
  • load more comments (-2 replies)
  • Yeah, I use it to spar with when deciding on solving something. I ask it what are the domain-or-language-typical, idiomatic or best-practice ways of solving something. I trace errors by using AI. I even take whole-sale code it produces if it isn't "serious" like just wanting the HTML or CSS lines that will do the trick.

    It will definitely suggest things that I don't think are correct and then I ignore it. It definitely wastes my time sometimes. I definitely don't learn things well enough when using it. But I only have so much time and too many problems I need to solve.

  • source
  • parent
  • load more comments (-3 replies)