X# or C#?
Posted: Tue Oct 13, 2020 1:02 pm
The last few weeks I've been working on a project which started years ago in C# and has been enhanced a lot, also in C#. More than once programmers decide to work on new project in C# instead of X# with the argument that there are many samples in C# ready to be used. I recognize that; many of the things I want to program start with a working C# sample from Stackoverflow, Codeproject and more. I always search until I have found code which seems complete & working, with the least amount of program lines and preferably the least amount of no doubt clever but often incomprehensible code.
As we still have most our code in VO and the VO IDE is far better and more usable than VS in nearly every respect I am still not a heavy X# user. I haven't even installed the last few updates anymore. The previous X# versions work for what we have to maintain and there's nothing in the Whatsnew list of the last few versions which affect our code. I am not saying that what has been changed or added is not useful, on the contrary, but not for us. We will probably upgrade like we do with Windows 10: 2-3 times a year is fine unless something is changed where we are waiting for.
But this having said: after these weeks of work in C# it becomes clear how much more VO and hence X# offers than C#. Nearly every VO/X# function for example does not have an equivalent in C#. E.g. At3, Crypt, Left. I always end up with some multi line code sometimes with hard to understand Linq code in it. That is also the case for most other classes as well; .Net has some out-of-the-box functionality but more than once it still requires at least as much code as needed in VO in excellent tools like Fabtools and more libraries many of us use.
In short, even when you are not doing much (yet) in X# and therefor think that you might as well continue in C#: you will definitely end up spending much more time to get simple things working. A good thing to consider if you are thinking about the using special Fox offer (See https://www.xsharp.eu/store/xsharp-2-6- ... -promotion)
@Robert/Chris: one small remark: I noticed in the help that some functions are difficult to find. E.g. try 'functions' and a lot of functions do not appear in the results. There are 14 topics all called Functions, Globals and Defines, but that is one for each different DLL. Also in the Contents.
The VO help does have a more logical/accessible Function Reference (alphabetic and by Category, with the categories named like string, Date & TIme etc which is better than named after the DLL a function can be found in).
In case you don't know anything else to do
Dick
As we still have most our code in VO and the VO IDE is far better and more usable than VS in nearly every respect I am still not a heavy X# user. I haven't even installed the last few updates anymore. The previous X# versions work for what we have to maintain and there's nothing in the Whatsnew list of the last few versions which affect our code. I am not saying that what has been changed or added is not useful, on the contrary, but not for us. We will probably upgrade like we do with Windows 10: 2-3 times a year is fine unless something is changed where we are waiting for.
But this having said: after these weeks of work in C# it becomes clear how much more VO and hence X# offers than C#. Nearly every VO/X# function for example does not have an equivalent in C#. E.g. At3, Crypt, Left. I always end up with some multi line code sometimes with hard to understand Linq code in it. That is also the case for most other classes as well; .Net has some out-of-the-box functionality but more than once it still requires at least as much code as needed in VO in excellent tools like Fabtools and more libraries many of us use.
In short, even when you are not doing much (yet) in X# and therefor think that you might as well continue in C#: you will definitely end up spending much more time to get simple things working. A good thing to consider if you are thinking about the using special Fox offer (See https://www.xsharp.eu/store/xsharp-2-6- ... -promotion)
@Robert/Chris: one small remark: I noticed in the help that some functions are difficult to find. E.g. try 'functions' and a lot of functions do not appear in the results. There are 14 topics all called Functions, Globals and Defines, but that is one for each different DLL. Also in the Contents.
The VO help does have a more logical/accessible Function Reference (alphabetic and by Category, with the categories named like string, Date & TIme etc which is better than named after the DLL a function can be found in).
In case you don't know anything else to do
Dick