Live data from Hacker News

C# Autocomplete Demo Using Bing Code Search Engine

codesnippet.research.microsoft.com

21–30 of 50 posts

Re: C# Autocomplete Demo Using Bing Code Search Engine

#23
post #14

I installed on VS2013 Ultimate wo/Resharper and here is how it worked for me. The '///' then tab does nothing but when I start typing in the IDE however it kicks in with a much better Intellisense complete with the Bing snippets like depicted on the VS Gallery. So perhaps they limited the slash+tab sequence?

[deleted]

Re: C# Autocomplete Demo Using Bing Code Search Engine

#24
post #16

One of my pet ideas is a new programmer's editor that uses proportionally as much compute resources as Emacs did in the late-80s. An amount of computing that would show up as a major line item on your department's timesharing bill. 1000 cores costs around $50/hr, so if it boosted my productivity measurably it'd be worth it. Searching all public github code for strings matching around my cursor seems like the sort of…

It should be noted that public github repos are _not_ public domain and not even necessarily open source unless the author specifies a license.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#26

Does anybody know of a Sublime Text or Atom package that does this?

https://github.com/azac/sublime-howdoi-direct-paste

Probably also worth mentioning the commandline tool that I assume this (howdoi-direct-paste) is based on:

https://github.com/gleitz/howdoi

Previous discussion: https://news.ycombinator.com/item?id=5027021

Re: C# Autocomplete Demo Using Bing Code Search Engine

#27
post #16

One of my pet ideas is a new programmer's editor that uses proportionally as much compute resources as Emacs did in the late-80s. An amount of computing that would show up as a major line item on your department's timesharing bill. 1000 cores costs around $50/hr, so if it boosted my productivity measurably it'd be worth it. Searching all public github code for strings matching around my cursor seems like the sort of…

It should be noted that public github repos are _not_ public domain and not even necessarily open source unless the author specifies a license.

It's part of the GitHub terms of service:

"By setting your repositories to be viewed publicly, you agree to allow others to view and fork your repositories."

Re: C# Autocomplete Demo Using Bing Code Search Engine

#29
post #21

It also aptly demonstrates the issues with doing internet searches for code, the snippet in the demo has a bug! Still, it's a crazy neat idea.

The demo comes directly from the msdn, which is also funny. A cool feature would be the ability to rate the code snippet, and then searches could be filtered by rating. For snippets from websites with voting features, like Stack Overflow, it could display the number of votes, and maybe the comments for the snippet, or the rest of the post text. Often I don't want to just know "what code does X" but "how to do X".

Seems like the search could be better anyways. The StackOverflow result for that example is from a post with 4 other (more useful) examples, but it picks the last one. It was also not the selected Answer for that post.

This is still really cool, even in it's current state, I think I will find it useful.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#30
post #17
post #16

One of my pet ideas is a new programmer's editor that uses proportionally as much compute resources as Emacs did in the late-80s. An amount of computing that would show up as a major line item on your department's timesharing bill. 1000 cores costs around $50/hr, so if it boosted my productivity measurably it'd be worth it. Searching all public github code for strings matching around my cursor seems like the sort of…

Interesting idea, would definitely make you increase the efficiency of your time at the editor if it costs you $50/hour! But you don't need 1000 cores to fire off a bunch of search requests. Network calls are generally IO bound so even one or two cores can handle lots of requests.

> all public github code

In RAM.

Post reply on HN