1327

Workers should learn AI skills and companies should use it because it's a "cognitive amplifier," claims Satya Nadella.

in other words please help us, use our AI

you are viewing a single comment's thread
view the rest of the comments
[-] ViatorOmnium@piefed.social 33 points 1 month ago

menial tasks that are important such as unit test coverage

This is one of the cases where AI is worse. LLMs will generate the tests based on how the code works and not how it is supposed to work. Granted lots of mediocre engineers also use the "freeze the results" method for meaningless test coverage, but at least human beings have ability to reflect on what the hell they are doing at some point.

[-] kameecoding@lemmy.world 2 points 1 month ago

Granted lots of mediocre engineers also use the "freeze the results" method for meaningless test coverage,

I'd be interested what you mean by this? Isn't all unit tests just freezing the result? A method is an algorithm for certain inputs you expect certain outputs, you unit tests these inputs and matching outputs, and add coverage for edge cases because it's cheap to do with unit tests and these "freeze the results" or rather lock them in so you know that piece of code always works as expected or it's "frozen/locked in"

[-] RamRabbit@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

It is pretty common to write unit tests for functionality that doesn't exist (test driven development). It gets you to think about, and test, everything that needs to exist in the program before writing the program. This approach doesn't always work, particularly in large code bases where you need to learn the structure of a module before you can even think about design.

'Freezing the results' is ok too, as long as you know the results are currently correct. The AI has no way of knowing this and poor programmers often don't verify either.

It is very easy to write a shit test.

[-] kameecoding@lemmy.world 2 points 1 month ago

Oh yeah for sure, I have seen tests that are pretty useless, for me the way I do it is I write the first one or two tests then instruct copilot to follow the patterns and then it does well, ofc I have to double check it, but reading is easier than having to write it.

[-] Buddahriffic@lemmy.world 1 points 1 month ago

You could have it write unit tests as black box tests, where you only give it access to the function signature. Though even then, it still needs to understand what the test results should be, which will vary from case to case.

[-] kameecoding@lemmy.world 1 points 1 month ago

LLMs will generate the tests based on how the code works and not how it is supposed to work.

You can tell it to generate based on how it's supposed to work you know

this post was submitted on 21 Jan 2026
1327 points (100.0% liked)

Technology

81869 readers
3959 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 news or articles.
  3. Be excellent to each other!
  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, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS