News for hackers. Stuff that matters.
Re:Introducing Bing Code Search for C# by AlaShiban on Monday February 17, 2014 @02:31PM (#7253926)
If you want more info about the extension let us know. There's alot of cool contextual and semantic pieces in there that makes it a smarter search
Re:Introducing Bing Code Search for C# by jervisfm on Monday February 17, 2014 @03:02PM (#7254137)
This is a pretty cool research project. I do not use Visual Studio but being able to search for and use code-snippets inline can be quite the productivity booster. Lord knows how many times I use google.

Have you considered perhaps including more data sources ? I'd imagine for example a public code repository like Github or Codeplex will extend the range of possible "How Do I" questions that can be answered.

On an unrelated note, I have almost always been disappointed by the search-quality of Github. I know they have a lot of public code but they don't do a good job of surfacing relevant code results. Imagine for example, how cool it will be being able to type into Github, "How to compute MD5, C++" and seeing the relevant code.

Actually, thinking about it, there is nothing preventing Microsoft Research from taking this tech, and turning it into a natural language web code search service. Now that would be awesome !

Re:Introducing Bing Code Search for C# by AlaShiban on Monday February 17, 2014 @04:44PM (#7254681)
There's alot more that can be done with the technology. We wanted to start with a few core partners and drive the quality and relevancy up as we go - so, can we? Sure. It's a matter continuously improving the service

And, agreed, MSR does some cool stuff :)

Re:Introducing Bing Code Search for C# by AlbertoGP on Monday February 17, 2014 @03:48PM (#7254400)
I just tried putting "site:github.com How to compute MD5, C++" into Google, and it seems to work.

As you mention, GitHub doesn't fare that well: "We couldn't find any repositories matching 'How to compute MD5, C++'"

Re:Introducing Bing Code Search for C# by smortaz on Monday February 17, 2014 @03:00PM (#7254121)
awesome extension. i'd love to see it open sourced so we can use it in PTVS & NTVS.

PTVS: http://pytools.codeplex.com NTVS: http://nodejstools.codeplex.com

disclaimer: msft employee.

Re:Introducing Bing Code Search for C# by kristiandupont on Monday February 17, 2014 @02:54PM (#7254082)
I'm wondering if there is a risk of being shown code snippets that represent "Do NOT do the following: ..."? Otherwise, really cool project!
Re:Introducing Bing Code Search for C# by AlaShiban on Monday February 17, 2014 @04:57PM (#7254769)
We try and avoid those cases, but it's possible yes. The semantic and contextual approach help you find relevant samples and discussions that are highly relevant to your code, you still have to vet whether the sample makes sense. (Visiting the original sample page is likely to shed more light on those cases where we mis-label)
Re:Introducing Bing Code Search for C# by cadab on Tuesday February 18, 2014 @05:50AM (#7257444)
I just tried the web demo and loved it, so added it to visual studio, but now it works different. I really liked the /// search term [tab] idea.

Now i have to [ctrl] + [space], click on how do i, then search. Is there an easier keyboard only way like your web example?

Re:Introducing Bing Code Search for C# by mikeevans on Monday February 17, 2014 @02:55PM (#7254087)
I assume there's no intention to open source this? Now I'm thinking about making something like this for IntelliJ :)
Re:Introducing Bing Code Search for C# by shriphani on Monday February 17, 2014 @02:45PM (#7254030)
Hi, how do you check if the snippet it pulls from stackoverflow works? Static analysis?
Re:Introducing Bing Code Search for C# by AlaShiban on Monday February 17, 2014 @05:05PM (#7254826)
Static analysis is part of how we grade the samples (using Roslyn). Obviously this tool isn't a magic wand, the goal is to get you as close as possible to relevant results that you can dig deeper into
Re:Introducing Bing Code Search for C# by magic_haze on Monday February 17, 2014 @02:58PM (#7254109)
I'd guess so. It's pretty easy with roslyn these days.
Re:Introducing Bing Code Search for C# by chrisseaton on Monday February 17, 2014 @04:56PM (#7254765)
Roslyn can solve the halting problem and tell me if my program will do what it is supposed to do?
Re:Introducing Bing Code Search for C# by Nate630 on Monday February 17, 2014 @02:35PM (#7253946)
I'd love to know more.