Readit News logoReadit News
justgaurav · a year ago
A long-time satisfied user of LINQPad. It is one of my must haves. I usually upgrade to the latest one when I hit some framework feature or a piece of snippet which requires it. It started as a very reasonably priced for the paid edition and there was only one paid edition for a long time. Nowadays, it is a bit pricier and has several editions (a suggestion would be to merge Pro and Developer editions).

I use LINQPad to manage my collection of snippets to do some ad hoc tasks on my machine. I also use it for testing out new code and learning about new features. It would be great when it becomes cross-platform, but last I heard Jo Albahari mentioned that the investment required was quite big and not worth it (at that time).

On the side note, I had a chance to see Jo Albahari's presentation few years ago in Sydney and I think he is unsung hero of .NET world (along with Ayende)!

LINQPad · a year ago
Regarding a cross-platform version of LINQPad, I'm actively working towards supporting MacOS. I can't give a timeframe right now, but it might be sooner than later if XPF turns out to be a viable option.
misterflibble · a year ago
Thank you for LINQPad and for your terrific presentations. They've certainly helped me build up my confidence in .NET development!
xnorswap · a year ago
A true essential tool. One of the few pieces of software for which I own a personal license.

One of the useful features is that it keeps the executable running even after the script has finished, and will re-execute in the same process.

This has some downsides and quirks (if you're not careful, you can double-initialize things like database connections), but has benefits for debugging.

The newer versions have "built in" support for Benchmark.NET too which is a really nice feature for quickly proving code.

rjbwork · a year ago
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#.
gdev_gabe · a year ago
not sure if this is what you meant, but you can run linq files from the command line!
rjbwork · a year ago
Yeah for sure. I do set up crons on my local machine using linqpad scripts every now and then, because it's just my special little snowflake one off.

But for Devops, build pipelines, etc. I prefer something a little more universally applicable and legible and that doesn't require a runtime. So bash is usually my approach there. Sometimes PowerShell if I know I'm going to be running it on a Windows box anyway.

Much as I love C#, if I came into an environment and all the Devops/CI/CD was done using Linqpad and lprun I'd immediately wonder what in the actual fuck I had gotten myself into, lol.

NicoJuicy · a year ago
Through lprun ofc
rqtwteye · a year ago
Linqpad is one of the few tools that do what they need to do without much fuzz and in a straightforward manner. Beyond Compare is also in the same category.

I am glad that the UX people haven't gotten around to mess it up yet.

johnnyballgame · a year ago
+1 Beyond Compare. It's been on my list of must installs for every new system I've set up for many years.
gofreddygo · a year ago
For Windows OSes, winmerge [1] has been a solid free alternative to beyond compare for me for years.

[1]: https://winmerge.org

smokeydoe · a year ago
Also check out free open source alternative RoslynPad. https://roslynpad.net/
Nuzzerino · a year ago
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 · a year ago
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)

vunderba · a year ago
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.

runevault · a year ago
I haven't used the .NET Core version but the old one 100% had a view to see the generated sql.
steego · a year ago
This is still very much a feature.

I often write/compile .NET Core code in watch mode and then use LinqPad to explore existing libraries.

jodrellblank · a year ago
https://github.com/tareqimbasher/NetPad is a cross-platform C# playground, not as developed as LINQPad but gratis and libre (MIT License).
novaleaf · a year ago
I came here to say that also. NetPad is great, FOSS. Has all the features I need.
Nuzzerino · a year ago
Unfortunately, they still haven't gotten around to making it usable outside of Windows

https://forum.linqpad.net/discussion/1935/installation-on-ma...

anotherlab · a year ago
There is a similar type of app called NetPad. https://github.com/tareqimbasher/NetPad

It's not as good as LINQPad, but it runs on the Mac.

Nuzzerino · a year ago
They don't have Syntax Tree analysis yet but I hear it will be released soon

Notice a common theme here? Literally zero ways to browse C# syntax trees available on the Mac. Nothing in the cloud either from what I could find. Roslyn was open-sourced in April 2014, which was 122 months ago. (edit: Another commenter pointed out that there is in fact a new VS Code extension that can do this, released Aug 2023)

By the way, you can't get autocomplete either while interactively debugging C# outside of Windows. The debugger is proprietary. Maybe there's a way, but I haven't found one.

qiller · a year ago
Shout out to my go-to https://dotnetfiddle.net/
misterflibble · a year ago
I wish we could volunteer to help Joe make LINQPad cross-platform, I'd definitely like to help with that.
strayamaaate · a year ago
Likewise. Running LINQPad in Parallels just isn’t the same.
webprofusion · a year ago
Actively being developed for MacOS as mentioned in one of the other comments, hinges on Avalonia XPF in order to port the UI.
Ntrails · a year ago
Yeah, I miss it dearly since I got migrated off windows :(
vsuperpower2020 · a year ago
I don't bother making anything run on linux unless it's meant to run as a service. It's just not worth the time and trouble to test it on multiple operating systems, probably with different libraries, just for what is a very vocal minority.
giancarlostoro · a year ago
I have a really random winforms project I opened up the debug build of on Linux with Mono and had 0 issues. The bar can be very low.
realusername · a year ago
Windows has a bit less than half the marketshare for developers according to the last Stackoverflow suvery. By not having a Linux and a MacOS version, you are losing close to half of developers.

Even Microsoft themselves understood this.

jagger27 · a year ago
Or use a Flatpak.