I wrote source code for an assignment. After I was done and the program was functional, i uploaded a piece (a class) on the Code Review SE and people gave me advice, which I then implemented. Should i credit them, and if so, how?
For pieces of code I took from Stackoverflow, for example, I would write it in a comment next to the code, and include a link.
Should this be done in the same way for improvement suggestions? In my concrete example, implemented suggestions were mostly about programming language intricacies and object orientation. Another option would be to inform the professor in advance and/or ask about this being allowed.
EDIT: The assignment ist not about the programming languages or object-oriented design.