11 ms·
Show HN: DotNetFiddle – JsFiddle for .Net
- louthy 13y agoThis is great. One small bug cropped up, I collaborated on a fiddle with a work colleague and he couldn't see any output from clicking Run. http://www.dotnetfiddle.net/lN6m0S http://www.dotnetfiddle.net/lN6m0S Great work though, will be in my favourites :)
- refactormonkey 13y agoYes, will be fixed by tomorrow. Thanks for reporting it.
- louthy 13y agoGood stuff!
- platz 13y agoThose are some curious methods, but I'm not sure the names fold and foldback are appropriate given what they actually do.
- louthy 13y agoYou're right, they don't work. I was flattening recursive versions of Fold and FoldBack as a test of DotNetFiddle. Clearly the flattening has bugs :)
- hudo 13y agoIt would be great to see (somehow) method params, types. Intellisense is great, but I'm really missing method signature ... Great work guys, thank you for this!
- IvanK_net 13y agoNice try, closed-source proprietary technologies! (Hope that at least they run it in Mono)
- jayhoon 13y agoHmm, what part of C# or CLI is closed? They are open standards - you are free to create your own compiler and environment.
- smortaz 13y agovery nice. please add IronPython & F# if you get a chance :)
- victorin 13y agoThis is really awesome, good job! I've found a minor glitch. Seems that the Intellisense (auto-complete) does not work when I try to call a custom class method inline, like: Console.WriteLine("Hello World, " + new MyClass().PrintTestSentence()); (Public methods of class "MyClass" does not show up there) See here: http://www.dotnetfiddle.net/5oF8oR http://www.dotnetfiddle.net/5oF8oR
- refactormonkey 13y agoThanks for reporting it! It works if you declare class first http://www.dotnetfiddle.net/IjtjcG http://www.dotnetfiddle.net/IjtjcG but not if u do initialization and call at the same time. Will take a look.
- jorgem 13y agoAlso, "intellisense" for the "using" statement doesnt work. Example: using System. I don't get any choices...
- bret_maverick 13y agoGreat tool! I even tried to make an infinite loop (excuse me for that :) ) which was handled gracefully by your program.
- duiker101 13y agoVery sweet! I like it a lot! It's nice to see that people still remember of .NET
- sspross 13y agoThis is executed serverside, right?
- refactormonkey 13y agoYes, all server-side using several worker agents.
- deleted 13y ago[deleted]
- CmonDev 13y agoHopefully will change when and if Web becomes actually Open.
- guiomie 13y agoNice ! I support this.
- upthedale 13y agoGreat! I was going to say F# should be supported, but then I remembered there's this: http://www.tryfsharp.org/Create http://www.tryfsharp.org/Create Still, I can definitely see myself using this to share little pieces of code where currently I write it up in linqpad and email to colleagues. Any chance you could add an extension method like linqpad's Dump() to pretty print objects?
- refactormonkey 13y agoYes, that sounds like a great idea. Will add it in next couple of days.
- jonkemp 13y agoDoesn’t seem to work in IE10 ironically.
- defcon84 13y ago'Roslyn'?
- refactormonkey 13y agoYep. It is pretty amazing library.
- defcon84 13y agointeresting :)
- jokecamp 13y agoWas it only Roslyn or did you utilize ScriptCS too?
- drharris 13y agoVery nice! I have a "scratchpad" project for fiddling around with things, but this might wind up a permanent tab on my browser. Less overhead than a VS project, for sure.
- upthedale 13y agoTry Linqpad for a scratchpad too. Don't let the linq name fool you - its great for general purpose fiddling about. It has been truly indispensable when developing on .Net. http://www.linqpad.net http://www.linqpad.net
- pacaro 13y agoIf I'm in VS, I just use the F# interactive window. Even when I'm not coding in F# it's always nice to have a repl around. If I'm playing with data and still want to poke .Net objects, I use Sho[1] which gives an IronPython REPL and some decent numerics support [1] http://research.microsoft.com/en-us/projects/sho/ http://research.microsoft.com/en-us/projects/sho/
- MichaelGG 13y agoMono ships with a C# REPL: http://www.mono-project.com/CsharpRepl http://www.mono-project.com/CsharpRepl After using F# and having F# Interactive onhand, I cannot imagine working without a REPL. There's so many small things that become simple to check if you've got a REPL handy.
- CSDude 13y agoWhat kind of hardware are you using? Are the jobs parallel? I do not know about .NET very much, but it seems very slow. Would that be feasbile for you to maintain this?
- refactormonkey 13y agoUsing Azure cloud - medium Web Role server (2 x 1.6GHz CPU, 3.5GB RAM). It is set to auto-scaling so it should be adding new instances if first server is being swamped. The jobs are done using Worker processes and there could be up to 20 of them running at the same time.
- _random_ 13y ago.NET CLR is faster then most VMs.
- gnaritas 13y agoThan, not then.
- deleted 13y ago[deleted]
- chrisbridgett 13y agoNice. It's a shame http://fiddle.net http://fiddle.net wasn't available.
- CmonDev 13y agoOn the other hand there will be consistency once wee see more languages/platforms. javafiddle.net? dartfiddle.net?
- CmonDev 13y agoSo cool, thank you!
- Rudism 13y agoThis is really neat. Adding something like LinqPad's Dump() extension method would make this supercool.
- philliphaydon 13y agoThis is super awesome! I was thinking of building something like this the other day because I wanted to test some code and not make a new test console app. Totally awesome!
- doktorn 13y agoAs stated elsewhere linqpad is really great for testing ad-hoc, throwaway C# code (much more than just linq expressions). It kind of like a REPL for .net.
- rjbwork 13y agoIf you're doing any Entity Framework development, you should be using LinqPad and checking generated SQL for pretty much every canned (read re-used, not inline) query you write. Somethings can be unexpectedly ugly and badly performing if not optimized properly.
- wehadfun 13y agoVery useful. This will be a great way to answer questions and demo algorithms
- phaed 13y agoLove it!
- acc00 13y agoWhile this one doesn't have the nice "fiddle" suffix, it has been around for a while and supports a lot of platforms: http://ideone.com/ http://ideone.com/
- HarshaThota 13y agoThere is also https://compilify.net/ https://compilify.net/ and http://executify.com/ http://executify.com/. But it's always good to have more options.
- philliphaydon 13y agocompilify seems to take a long time to compile code :(
- deleted 13y ago[deleted]
- deleted 13y ago[deleted]
- distilled 13y agoIt is open source though.
- slowmover 13y agoHuh, first time I've seen this one, very interesting. Any idea what kind of volume they handle and whether or not they're profitable?
- acc00 13y agoI doubt they're profitable (yet), they have only started playing with business models recently. But the same platform has been used to run spoj.pl, a rather popular programming contest site, for many years.
- ykumar6 13y ago
- codygator 13y agoHey I love your auto-complete !
- philliphaydon 13y agoO M G Collaboration coding in the browser is SERIOUSLY cool!
- louthy 13y agoVSAnywhere is good for that on live projects. https://vsanywhere.com https://vsanywhere.com (no affiliation)
- bpicolo 13y agoJSFiddle has had this for a while.
- philliphaydon 13y agoBut for .NET, that's what makes it neater. JSFiddle collab has been helpful, now we have it in .NET too :D
- _random_ 13y agoGood for GUI, but for business logic we need the real deal :).
- smartdonkey 13y agoyou should then try http://liveweave.com http://liveweave.com. they have code-hinting for HTML5, CSS3, JS, jQuery...really awesome stuff. I recently found it, and loving it so far.
- filearts 13y agoIf you're into the js/html/css party, Plunker is a more IDE-like experience that has real-time collaboration built-in. http://plnkr.co/edit/?p=preview&s=RxFWQJqa5yVe8qI5 http://plnkr.co/edit/?p=preview&s=RxFWQJqa5yVe8qI5
- mandeepj 13y agoThis is really great. Infact you gave it edge over jsfiddle by providing collaborate, auto-complete and compile-as-you-type features. There are times when I quickly want to test some idea with strings, async, linq etc. without firing full fledged VS IDE. You did an excellent job. Cheers!
- sremani 13y agoReally nice, I can see myself using this tool. Couple of pointers - when typing fast (my usual programming speed), its going a bit awry, but I see it is trying to do some intellisense stuff. This is perfect tool for teaching/learning coding.
- manojlds 13y agoIs it open source? If not, is there any plans of making it?
- dsschnau 13y agoOh my goodness this is amazing. I've wanted this my whole career.
- orenbarzilai 13y agoIs it compiled in server side?
- refactormonkey 13y agoYes, website passes Run requests to back-end worker processes which compile and execute code and return results back to website for display.
- orenbarzilai 13y agoI assume that you have created some kind of sand box in order to prevent malicious code execution. Can you share some details about that?
- ctekin 13y agoIs intellisense case-sensitive for a reason? I typed "Console.w" and auto-complete list was gone. It works fine with "Console.W".
- refactormonkey 13y agoThanks for mentioning it. Will fix...
- NKCSS 13y agoBoohoo, any file access is disabled, and any Environment.GetFolderPath will return an empty string (except System, which throws a security violation) :P
- refactormonkey 13y agoWe may look to add local storage sandbox for this.
- voltagex_ 13y agoIsolatedStorage may work well for this.
- fekberg 13y agoNice work! Is this inspired by Compilify? How are you securing execution? Source? I did a blog post a long time ago on hosted execution with Roslyn and that is how we do it with Compilify (which is open source).
- refactormonkey 13y agoYeah we definitely looked at some Complify code and the blog post was helpful also.
- anup90 13y agoNice tool!
- kmfrk 13y agoHere's one for R: http://www.r-fiddle.org/ http://www.r-fiddle.org/
- talles 13y agoGreat pretty handy. You even got auto complete, kudos.
- smartdonkey 13y agohttp://liveweave.com http://liveweave.com is by far the best HTML/CSS/JS playground out there. you guys should totally try it out.
- _random_ 13y agoI can name three problems with it straight-away: 1) HTML, 2) CSS, 3) JS. The original post is about a decent language, not the ubiquitous ones.
- filearts 13y agoHonest question: Why?
- browserspot 13y agoI think I can answer that. IMHO Liveweave has something most of the other JS "playgrounds" do not have. It has context-sensitive code-hinting for core JavaScript and jQuery...also for CSS/HTML/HTML5/CSS3. Personally, I think this makes a huge difference, at least for me and may be some others.
- Varcht 13y agoPretty cool, nested classes do not work though. Throws "Method must have a return type".
- deleted 13y ago[deleted]
- michaelcullina 13y agoWow! Very good.
- phill_andrade 13y agoGreat! I totally bookmarked this!