[HN Gopher] LINQPad - The .NET Programmer's Playground
       ___________________________________________________________________
        
       LINQPad - The .NET Programmer's Playground
        
       Author : wofo
       Score  : 47 points
       Date   : 2024-06-23 20:02 UTC (2 hours ago)
        
 (HTM) web link (www.linqpad.net)
 (TXT) w3m dump (www.linqpad.net)
        
       | smokeydoe wrote:
       | Also check out free open source alternative RoslynPad.
       | https://roslynpad.net/
        
         | Nuzzerino wrote:
         | 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"
        
           | neonsunset wrote:
           | 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)
        
             | Nuzzerino wrote:
             | Again, only on Windows.
        
               | neonsunset wrote:
               | I suppose my ARM-based Mac comes with weird Windows that
               | looks like macOS!
        
       | rjbwork wrote:
       | Great piece of software that I basically use for
       | scripting/notebooking. Been writing C# so long it's my lingua
       | franca and this tool lets me do pretty much everything (except
       | actual shell scripting for use on e.g. build servers and
       | deployment pipelines) in C#.
        
       | CodeCompost wrote:
       | Honestly surprised that Microsoft have not bought this up and
       | integrated it into Visual Studio. LINQPad is gold.
        
         | atlantic wrote:
         | 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.
        
           | recursive wrote:
           | Not even in the same zip code.
        
           | mattmanser wrote:
           | Echoing the other comment, personally I find the C#
           | interactive really frustrating to use. So close and yet so
           | far.
           | 
           | I often find it quicker/less frustrating to just fire up a
           | new console app project.
           | 
           | Last time I tried to use it I think it was even running an
           | old version of .Net and you have to remember to switch the
           | version.
        
           | Nuzzerino wrote:
           | I'd say it is pretty bad[1], but the F# REPL is decent at
           | least.
           | 
           | 1. https://github.com/dotnet/roslyn/issues/26934
        
         | fbdab103 wrote:
         | 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.
        
       | lf-non wrote:
       | Also https://github.com/waf/CSharpRepl - if you want a
       | conventional repl, also cross platform.
        
       | Nuzzerino wrote:
       | Unfortunately, they still haven't gotten around to making it
       | usable outside of Windows
       | 
       | https://forum.linqpad.net/discussion/1935/installation-on-ma...
        
       | MikeGale wrote:
       | The program is gold. It enables you to speedily and almost
       | effortlessly build up code, in a way that I haven't seen
       | elsewhere.
        
       | jodrellblank wrote:
       | https://github.com/tareqimbasher/NetPad is a cross-platform C#
       | playground, not as developed as LINQPad but gratis and libre (MIT
       | License).
        
       | figers wrote:
       | Thought with a name like that it was for the iPad, wish it was...
        
       | judah wrote:
       | I've been a happy paid user of LINQPad for over 8 years now. Love
       | it, well worth the price.
        
       | vunderba wrote:
       | 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.
        
       | bilekas wrote:
       | I used to use this a few years back when my company was paying
       | for it, but nowadays I dont work too much with dotnet but for all
       | playground little things I use ideone.com it does it all in the
       | browser.
        
       ___________________________________________________________________
       (page generated 2024-06-23 23:00 UTC)