When writing open-source software, should the author(s) cite the sources they get help from?
This might make sense if an author forgets how to implement a basic data structure and winds up fetching the solution from the internet, but what if an author simply forgets the signature of a common function call?
Suppose IntelliSense isn't working and an author must look up the C# TotalMinutes function on Microsoft Docs or the Java FileReader object in Oracle Docs. Does the author need to cite usage in those cases? On one hand, I suppose if the author copies example code from online documentation pages, a citation would be needed. On the other, if only specifications are referenced from Microsoft, Oracle or Amazon Web Services documentation, a citation would be superfluous even though such specifications were used as a reference.
EDIT NOTE: Please pardon the massive edits. Many members of the community have encouraged me to narrow the scope of this question. Some comments may temporarily seem odd or out place while the fate and scope of this question is determined.