What's your quickest/lightest way to try a code?
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
But surely you'll have VS installed anyway? I don't see the issue? :confused: Like others have said though, in terms of "quick" I'll use console apps, especially if trying to develop an algorithm or something. If even that is too much for me, some days I'll just copy and paste my task onto a web forum and ask someone else to give the codes.
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
Here are some suggestions: tools-for-interactively-writing-c-code-without-having-to-compile-it[^]
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
-
-
Indeed! The problem starts when you have to bring in some fingers from the neighborhood...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
Notepad and CSC.
-
The worst thing is when you *think* you have given it a descriptive name, but then a week later you have no idea what the hell it is :laugh:
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
I have a testing application that makes it very easy to add an algorithm and a little function to test it. Adding a new one requires adding a line to a header that looks like this :
InteractvFunction( _T( "Time Functions" ), DoTimeFunctionTest );
StandardFunction( _T( "Random Values" ), DoRandomValueTest );An InteractiveFunction requires user input so it runs in the primary thread. A StandardFunction does not require input and is run in a worker thread context. I've been using this for several years now and it's pretty handy. I occasionally prune things back because the menu gets too full of testing snippets, several of which originated from questions here.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
'MyProgs' program directory contains all of my own programming work on my computer. (It is a sub of 'Programs', which contains all the programming work on my computer.) It has a 'Junk' folder which contains a few different types of bare-bones projects (console, Windows, etc.), that can have the code added to them to play with. I just open the appropriate one in a new Visual Studio session and start playing with the code. If it is a complete program like comes with many of the articles here, it gets tossed into a sub off of 'Programs\Others Programs', extracted, and ran as-is.
-
I usually include a console app in my solutions called "TestHarness". That way, I can test right there in the same solution, and use all the assemblies referenced therein. For casual stuff not directly associated with a project and that doesn't need a GUI, I use a console app.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Quote:
emacs is a good OS, but it could really use a decent editor...
This is a good joke, but it could really use a punchline :-) (The first time I heard this joke was in '92, so I've had quiet a long time to think of a reply)
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
Just use the [REPL](https://en.wikipedia.org/wiki/Read–eval–print\_loop) if the language has one, VSCode + compiler in the Code's integrated terminal if the language doesn't have one. That covers the main languages I might want to play with (Haskell, Python, OCaml, C++ or Rust in my case).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
I've always liked LINQPad - The .NET Programmer's Playground[^], ever since I heard of it anyway. It's meant for giving you a C# oriented way to query different databases, but I find it great for just trying snippets of C# code. *Not at all associated with the developer other than that we live in the same city and he gave an interesting talk a conference one time.
yeha <3 LINQPad, we got the Premium License. isnt that expensive compared to other tools or 3rd party components. And realy usefull.. I use it kinda every day, trying some simple stuff I'm not 100% sure how it works, testing some new things without creating that usual console application and .Dump() to view anything on the fly :D:D
-
Yes, we got plenty of Online playgrounds. But I mean the offline ones. I've always envied Javascript devs. All they need is just a notepad and a browser and they are good to try out a logic or an algorithm. Poor guys like me used to install Visual Studio Elephant (Here Elephant points to the size don't worry) Just to try a simple code, just because I was glued to .net. Now in recent times, I use VS Code & verify the code snippets that the team does with Python. This feels quick & snappy. :-O :thumbsup:
I am glad I am not the only one. I have a semi console app. I call it something like sortingmultidemi because the first time I used it was like 30 years ago and I was sorting a mutli dimensional array and I wanted to see the outcome. It now has more commented code than working code. but I take it everywhere. Copy Paste alot out of it. Lots of examples of things. and for some reason quicker than google when searching for something I have done before.
To err is human to really mess up you need a computer