You should definitely cite your source if the source specified you do so. However, if you are taking samples and adapting them to your environment you usually don't have to cite it (as long as it has changed in a significant way).
Usually, I try to include a comment in my code if I just copy and paste something, even if it is free and open to copy. However, this is more of a preference than a specification.
In the end, it is up to the people you got the code from (if they specified a license for the code) and your advisor at the university.
发布评论
评论(1)
如果来源指定你这样做,你绝对应该引用你的来源。但是,如果您正在采集样本并使它们适应您的环境,您通常不必引用它(只要它发生了重大变化)。
通常,如果我只是复制和粘贴某些内容,我会尝试在代码中包含注释,即使它是免费且开放复制的。然而,这更多的是一种偏好而不是规范。
最后,这取决于您从哪里获得代码的人(如果他们指定了代码的许可证)和您在大学的顾问。
You should definitely cite your source if the source specified you do so. However, if you are taking samples and adapting them to your environment you usually don't have to cite it (as long as it has changed in a significant way).
Usually, I try to include a comment in my code if I just copy and paste something, even if it is free and open to copy. However, this is more of a preference than a specification.
In the end, it is up to the people you got the code from (if they specified a license for the code) and your advisor at the university.