182
submitted 22 hours ago* (last edited 22 hours ago) by Dot@feddit.org to c/technology@lemmy.world
(page 2) 20 comments
sorted by: hot top controversial new old
[-] 9point6@lemmy.world 13 points 21 hours ago

Agree on the application side, but when it comes to the test suite, I'm definitely gonna consider letting an AI get that file started and then I'll run through, make sure the assertions are all what I would expect and refactor anything that needs it.

I've written countless tests in my career and I'm still gonna write countless more, but I'm glad I can at least spend less time on laborious repetition now and more time on the part of the job I actually enjoy which is actually solving problems.

[-] MeatsOfRage@lemmy.world -2 points 20 hours ago

Things like unit tests I just have AI do it all now. Since running the test tells you your coverage you can verify if it got everything or not.

[-] wewbull@feddit.uk 5 points 18 hours ago

Here's something that might blow your mind. Coverage is not the point of tests.

If you your passing test gets 100% coverage, you can still have a bug. You might have a bunch of conditions you're not handling and a shit test that doesn't notice.

Write tests first to completely define what you want the code to do, and then write the code to pass the tests.

[-] Im_old@lemmy.world 14 points 22 hours ago

Well I'm already a bad programmer, at least I save time /j

[-] tabular@lemmy.world 2 points 21 hours ago

Just because you are "bad programmer" does not mean you are a bad programmer.

[-] mEEGal@lemmy.world 8 points 21 hours ago

we should use 0, 1 and 2 instead of binary just to represent truer statements like this one

[-] PrivacyDingus@lemmy.world -1 points 21 hours ago

came here to post this

[-] the_toast_is_gone@lemmy.world 2 points 15 hours ago

Preface: If all you want is to get a simple script/program going that will more or less work for your purposes, then I understand using AI to make it. But doing much more than this with it will not help you.

If you want to actually learn to code, then using AI to write code for you is a crutch. It's like trying to learn how to write an essay by having ChatGPT write the essays for you. If you want to use an API in your code, then you're setting yourself up for greater failure the more you depend on AI.

Case in point: if you want to make a module or script for Foundry VTT, then they explicitly tell you not to use AI, partly because the models available online have outdated information. In fact, training AI on their documentation is explicitly against the terms of service.

Even if you do this and avoid losing your license, you run a significant risk of getting unusable code because the AI hallucinated a function or method that doesn't actually exist. You will likely wind up spending more time scouting the documents for what you actually want to do than if you'd just done it yourself to begin with.

And if the code works perfectly now, there's no guarantee that it will work forever, or even in the medium term. The software and API receive updates regularly. If you don't know how to read the docs and write the code you need, you're screwed when something inevitably gets deprecated and removed. The more you depend on AI to write it for you, the less capable you'll be of debugging it down the line.

This begs the question: why would you do any of this if you wanted to make something using an API?

[-] half_built_pyramids@lemmy.world 0 points 15 hours ago

AI and the discussion around it doesn't live in a vacuum.

Occasionally you'll get shit opinions like this. Easy slutty greek frat bro strawmen that'll sleep with anything that moves and then dodge child support payments.

We all have to remember the true Chad argument against AI is that it's built on degenerate theft and corporate soulless shills. AI is the Shikrelli of creativity.

[-] ContrarianTrail@lemm.ee 0 points 15 hours ago

Chad argument against AI

Generative AI*

[-] pHr34kY@lemmy.world -2 points 19 hours ago* (last edited 19 hours ago)

The same logic can explain why Teslas crash so often. You turn on all the assists, and eventually forget how to change gears.

[-] ContrarianTrail@lemm.ee 1 points 14 hours ago

I haven't seen any statistics suggesting Teslas crash more often than other vehicles.

load more comments (1 replies)
[-] iopq@lemmy.world -3 points 21 hours ago

I'd rather be a bad programmer that gets stuff done than a good programmer who's just jerking off about proper design

t. good programmer

[-] peopleproblems@lemmy.world 7 points 19 hours ago

Proper design will save an epic shit ton of money when it inevitably needs to be changed or fixed.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 22 Oct 2024
182 points (86.4% liked)

Technology

58810 readers
4546 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS