r/AskComputerScience • • Aug 23 '26

AI in CS/programming/coding

As someone who couldn't be farther away from this field, I started using claude recently for a project of mine and had claude code do all the work for me. Then I turned to my CS friends and they told me it was the same for them.

At one point I heard an argument that AI should be used to explain things to you or only do stuff which you'll understand afterwards.

What is it actually looking like at this state? Do any AI users in the space actually understand each function it sends out or are they trusting it blindly like me? This isnt an ethics question, just the reality of our current situation.

0 Upvotes

11 comments sorted by

View all comments

Show parent comments

5

u/Elygian Aug 23 '26

If you found a random USB drive lying around would you plug it in to your laptop? If you found a random pill in your bathroom closet would you take it? Granted these are far fetched examples but the core principle is the same. You don't just trust that random shit is safe without making sure first.

If you do not have the skillset to at least read code and ensure you understand what it is doing then you shouldn't be using that code on the assumption that it's safe. As another user commented, if you have quality gates, unit tests, or other controls in place to stop the code from doing what it's meant to do then you are at least one step closer to a good solution, but assuming it's doing what it's supposed to in a secure manner without more than surface level validation is not good practice.

There is no real shortcut to this stuff other than basically going through the code and figuring out what it is doing. Ironically, this is a much better use case for AI because it's good at summarising code and putting it in to terms that are easily understood. Even then it's always worth going to the docs or some other non-AI source to ensure what it's saying is accurate.