Live data from Hacker News

LINQPad – The .NET Programmer's Playground

linqpad.net

11–20 of 137 posts

Re: LINQPad – The .NET Programmer's Playground

#12
post #6

Honestly surprised that Microsoft have not bought this up and integrated it into Visual Studio. LINQPad is gold.

There is already a C# REPL built into Visual Studio, called C# Interactive. It takes a bit of getting used to, but it's not bad at all.

I'd say it is pretty bad[1], but the F# REPL is decent at least.

1. https://github.com/dotnet/roslyn/issues/26934

Re: LINQPad – The .NET Programmer's Playground

#15

Also check out free open source alternative RoslynPad. https://roslynpad.net/

The only reason I would use something like LINQPad is for the syntax tree and semantic analysis support, for compiler extensions. With a name like RoslynPad, seems funny that such a feature would be missing from that "alternative"

If you'd like to explore syntax tree and related IOperations, there is a VS Code extension https://marketplace.visualstudio.com/items?itemName=333fred.... which lets you do just that, it has been very handy for writing source generators.

(though I end up disabling it to reduce extra pressure on language server when it's unneeded)

Re: LINQPad – The .NET Programmer's Playground

#17

Earlier quoted context omitted.

The only reason I would use something like LINQPad is for the syntax tree and semantic analysis support, for compiler extensions. With a name like RoslynPad, seems funny that such a feature would be missing from that "alternative"

If you'd like to explore syntax tree and related IOperations, there is a VS Code extension https://marketplace.visualstudio.com/items?itemName=333fred.... which lets you do just that, it has been very handy for writing source generators. (though I end up disabling it to reduce extra pressure on language server when it's unneeded)

Again, only on Windows.

Re: LINQPad – The .NET Programmer's Playground

#18

Earlier quoted context omitted.

If you'd like to explore syntax tree and related IOperations, there is a VS Code extension https://marketplace.visualstudio.com/items?itemName=333fred.... which lets you do just that, it has been very handy for writing source generators. (though I end up disabling it to reduce extra pressure on language server when it's unneeded)

Again, only on Windows.

I suppose my ARM-based Mac comes with weird Windows that looks like macOS!

Re: LINQPad – The .NET Programmer's Playground

#19

Honestly surprised that Microsoft have not bought this up and integrated it into Visual Studio. LINQPad is gold.

That is true of so many products. Notepad++, Paint.Net, Everything search.

Products which would cost Microsoft absolute peanuts to acquire. Or even just use that as a model and rip it off entirely with an in house version.

Re: LINQPad – The .NET Programmer's Playground

#20
I haven't used Linqpad in a long time but one of the most useful features it had was the ability to add connections to your SQL Server databases and then write quick throwaway LINQ/Lambda style syntax queries against it, e.g.

   radios.GroupBy(x=> x.Channel).Select(x=>x.OrderBy(y=>y.Price)).Select(x=>x.First());
If I remember correctly, it also let you compare the LINQ query against the transpiled SQL so you could try to hand-optimize it a bit as well.
Post reply on HN