Earlier this year, I wrote a short post that covered different tools that you can use from the comfort of your favorite browser to help create examples, prototypes and just tinker in general. This post serves to introduce the newest member of the Fiddle family of tools: .NET Fiddle.
.NET Fiddle is an online sandbox that was recently released by ENTech Solutions and allows you to easily write both C# and Visual Basic code within your browser and see how the output looks. It currently only supports Console applications, but it is a great start in the right direction and is incredibly easy to use to help hammer out simple algorithms or approaches that you are stuck on and sharing it with others.
This post will cover some of the major features found in .NET Fiddle and set you on the path to coding from the comfort of your browser :
Sharing with Ease
.NET Fiddle features a bevy of ways to actually share code that you have written with others : through a traditional URL link, through Twitter, through Email and even through Facebook (in case you want to show Grandma how to write a bubble-sort).
.NET Fiddle like most members of the Fiddle family offers an easily link-based approach to share your code with others, however it provides a few other ways to share through as well (e.g., through links, email and social media). In addition to just simply showing someone your code, .NET Fiddle extends this in a way that many others have not: through collaboration!
Stop. Collaborate and Listen!
The collaboration features available in .NET Fiddle allow you to not only share your code with others, but actively work on it together in a real-time environment through TogetherJS with multiple users and it’s so easy!
With just a few clicks, you can send a link to your friend :
When they log in, they will be prompted to join your existing Session :
You’ll then be provided with a shared view of their code and you should see their cursor moving across the screen along with any changes that they make in real time :
Communication is also such an important aspect of collaboration and writing messages within the code itself could be tedious. This is why .NET Fiddle provides a simple chat interface so that you can interact with your peers while coding :
If you think typing anything besides code is a waste of time however, you can use the other available Microphone option (if your browser supports it) which is an experimental feature that aims to allow “hands-free” collaboration (aside from the hands typing actual code) :
Experimental Audio support is also in the works for when the caps lock key isn’t getting the job done.
The Editor : Intellisense, Validation and more!
The editor itself and the environment also has something that has been carefully designed to make actually writing the code much easier than using a simple text editor. It features a basic set of Intellisense features that provide all of the available methods and properties as soon as you make it to the “.” character :
The Editor will also validate on the fly and let you know when you (or one of your fellow collaborators) makes a mistake :
The Editor’s built-in validation will also assist you and let you know when you have made mistakes in your code as well.
Finally, you will be able to access all of your output as well as basic metrics regarding the execution of your program within the output area :
This will allow you to fine tune your programs or at least provide some feedback to make the necessary changes within your program (and see if it affects these statistics at all).
Check it out
.NET Fiddle is completely free to use and it is obviously a very “new” technology so I am sure there are still a few bugs out there, but its certainly a great step in the right direction. I’m sure it will continue to expand feature-wise and possibly incorporate the addition of other third party libraries or other possible project types (or languages) as well. I would encourage you to check it out if this has interested you at all or get with a friend and play around with the real-time collaboration functionality.
You can get started by following the link below :
If you are looking for a few other tools to mess around within the “Fiddle” family, I would recommend checking out all of the following :