Learning from Code vs. Plagiarism
Pop is a new code search tool for Mac aimed at students and other coders who are learning a new programming language or API. In the marketing we're trying to walk a narrow line between encouraging people to look at existing code and learn from it, without encouraging plagiarism. (https://ift.tt/2WijKAB) Say I want to calculate the interval in seconds between two timestamps, and I'm getting an error on my line of python code: start_time = datetime.now() If I search for uses of datetime in some open source code and find this: start_time = datetime.datetime.now() I might learn that the now method is in a subpackage of datetime, itself called datetime. This fixes my problem, and I think that's ok because I've learned where the now() function is in the package namespace, rather than copied anything. On the other hand if I see code like this (datetime.datetime.now()-start_time).total_seconds() I've learned that I can subtract results of datetime...