Which one is better for beginners with csharp?
Why?
(don’t want to start a feud, just need to understand)
VisualStudio is very complex it creates tons of unnecessary stuff that only confuse me. And it launches really slow (3 mins just to launch it is too damn much)
I would go with Visual Studio. Very powerful IDE and provides a free community version.
Something must be wrong with your installation, it launch in less than 7 seconds on my machine (and it’s a quite old one)…
Old Machine. AFAIK there is no VS 2018.
I am using the 2017 version. Did you try uninstalling it completely and starting with a fresh install? Also install only the workloads you need - only .NET Desktop Development if you develop only for Rhino and Grasshopper.
I installed also XAMARIN stuff, I’m willing to test android and webapp stuff. But that’s irrelevant. The libraries that are loaded depend on the type of the project. Launching even without a project is slow.
I wonder if Visual Studio Code is mature and feature-rich enough to be considered a candidate on par with the other three mentioned (i.e. for say Grasshopper and Rhino plugin development in C#):
You can use whatever you like. The main point is to be able to compile your code into a functioning Rhino plug-in.
For Visual Studio we do much of the boring work for you in the form of template wizards
With other environments you’ll have to do some leg work, but once you have a plug-in project that you can compile into an RHP you’re set.
reference the correct assemblies
compile the code
make sure the DLL is renamed to RHP if it isn’t already integral part of the project settings
Don’t copy any of the RhinoCommon DLLs, nor the Eto DLLs into the directory where you collect the final plug-in files (RHP and other third-party libraries).
This is the problem. I can’t “like” anything before I learn to use it. Why do you think I resist csharp so much. Because I have only tried csharp with scripting in Unity3D (MonoDevelop), but everything was very clean. The other thing I’ve tried is VisualStudio and it is overwhelming. Too many menues and panels, settings, assemblies, properties. And then when I start one of your (McNeel) template projects there is too many stuff in there. Some green ///<summary> stuff that I can’t connect to anything in Python in my head. I have a strong associative memory. If I can find similarities I can work with many things even without enough knowledge.
I don’t mind adding assemblies and renaming dlls myself. Even if I have to I’ll use csc.exe to compile my plugin but it has to be clear what’s what. I’m looking for the proper tool that I’ll start “liking”
In the end only you can best the obstacles you feel are in your way. One would’ve thought that by now you are aware that the green blocks are comments, just like the comments in Python with #.
The language syntax and constructs don’t change with the tool, they stay the same.
I don’t like wasting time too much I also use Visual Studio 2017 a lot - because that is what we use to type Rhino bugs with. I mean features.
But I do every now and then switch to just typing with Visual Studio Code, because I have a builder tool I wrote in F# to do that for me in the Rhino project. I still create the initial solution and project files with VS2017. You can compile with devenv.exe without having the Visual Studio GUI popping up…
Used because we have to
I am absolutely not a Mac-lover. I use it because I have to. But I would rather have a good Linux machine.
The comments already mention the name attributes. The internet, while vast and possibly intimidating, is also your friend: C# attributes at DuckDuckGo
Any code can be divided into separate files that constitute some logic units. You do the same in Python, have classes in their own files, maybe some utility modules, etc.
Oh hell no, I don’t like dead or almost dead things.
And also filled with out of date crap. 90% of the code snippets I’ve tried when searching don’t compile. Being created for old versions of csharp (or any other language). 5% is complete projects filled with the authors’ idiosyncrasies that are difficult to comprehend if you’re a beginner.
Not really , Since I still learn I tend to keep everything in the same file at first to keep track what’s happening.
Also csharp “recommended” is like python’s from something import * also confusing. I saw VS throwing some green-underlined errors with that.
Is it possible, theoretically, that Rhino Plugin is in a single .cs file?
You know, to put everything in the namespace{} block or whatever is the term. Stack?
I don’t know what you use, but for the search I linked to the top 5 links all are good resources. If you use Google Search you probably live in your search bubble.
I suppose.
With anything in the world: what is possible isn’t necessarily sensible.