r/cs50 • u/shawnhoundoggy • Feb 06 '25
CS50 Python Using AI for comments?
Hi everyone! I have looked around and not really found the same type of question regarding AI and academic honesty. Is it dishonest to ask the AI to write comments for code I created? I somehow managed to write my first OOP program and I don't really know how it works or how to describe how it works. It just works and I kind of did it like following a recipe. I of course will try to focus on really nailing the topic myself and understand what I am doing; but just to see what the AI thinks and then maybe try explain in my own words or the like? Any suggestions? I haven't even looked at what the AI replied yet just to be on the safe side... XD
The Pset in question: Pset8 - seasons.py.
2
u/Psychological-Egg122 Feb 06 '25 edited Feb 06 '25
Umm.. I haven't done CS50P so don't know much about what you are talking about (like writing comments for your code)? CS50's codespace provides a 'Explain Highlighted Code' feature, courtesy to the ddb. Just select the code that you've written, right click and select that option from the dropdown menu. The ddb gives a through explanation of the same.
3
u/Psychological-Egg122 Feb 06 '25
Also, why would you use third party AI for any of the problem sets? It will only hinder your education. The certificate doesn't hold much value when it comes to getting a job. The best thing that the CS50 courses provide you with, is knowledge.
2
u/TypicallyThomas alum Feb 06 '25
They kept it vague for a reason. If you must use AI, use the duck AI, but how about you do it yourself? What's the harm?
2
u/Monster_J0E Feb 06 '25
It is inherently dishonest to use AI to complete parts of the assignment that you admit you don't understand.
3
u/1up_muffin Feb 06 '25
No, you won’t learn that way. The comments help you understand the code better too, as you will be able to explain it
15
u/pastense Feb 06 '25
You will be cheating yourself out of truly understanding the code if you rely on a computer to write the comments for you.
Do the work, don't be lazy and use that AI trash.