[Developers] Acre Code Search

Stefano Mazzocchi stefano at metaweb.com
Thu Dec 4 05:52:10 UTC 2008


Shawn Simister wrote:
> Stefano Mazzocchi wrote:
>> Shawn Simister wrote:
>>   
>>> Acre Code Search is great. I've already used it a couple of times when 
>>> I'm convinced there's a better way to code something.
>>>
>>> I don't know if this is possible but it would be interesting to be able 
>>> to search for cloned scripts or applications. That way, if you find an 
>>> interesting script you could see how other people are using it in their 
>>> apps.
>>>     
>>
>> I'm not sure I understand what you want to do. Can you elaborate more?
>>
>> thx
> Say I search for "oauth" on Acre Code Search and I find that you're 
> writing a library that lets people use OAuth in their apps. Then I want 
> to find out if anyone else is already using this library in their app 
> and if so I want to see how they're using it.

When you say "use" you mean acre.require('oauth') or that you actually 
cloned parts of the library into your app?

I'll suspect the second, as the first would be just another text query.

> Currently the only way to do this would be for me to find some unique 
> code in that library and run a query for that code. But I was thinking 
> that since cloning a file/application is an explicit action in the Acre 
> editor then it might be possible to track the parent/child relationships 
> between these cloned application. Jason's post seems to indicate that 
> this is in fact possible.

Acre does keep track of 'cloning' relationships between files, so yes, 
it's possible to show (or otherwise use) the progeny of any file or app 
in acre (which, in general, is a tree).

It's a good idea, I'll try to hack something in.

-- 
Stefano Mazzocchi                              Application Catalyst
Metaweb Technologies, Inc.                      stefano at metaweb.com
-------------------------------------------------------------------



More information about the Developers mailing list