I agree with both of you.
It seems that the question about the moving from VBS to JS
is one of the simple questions without the good answer. I haven't too a real answer about the moving from VBS, although I have been angry many times with VB
syntax and especially with new line concatenation (_). That's why I have decided to use C# as my main language in .NET technology. Now I use ASP.NET with C# (when I can choose, of course), and I feel comfortable with it. Generally, I think that C syntax is more programmer friendly and consistently than VB
. This difference remains in .NET. VB
.NET is better and more powerful than VB
, but it's still VB
syntax. I will always like to write this:
string MyFunc(string myArg)
Private Function MyFunc(ByVal myArg As String) As String
And David, prob No 1 and 2 has solved. You can use succinct operator you mentioned, you can use even a ternary operator for "skipping if's".
You can initialize a constant with the other one, and u can use concate operator in the initialization process, but you can use a variable in the expression for the constant's initialization. However, in C# there is one feature you like - read only fields. Read only field is some kind of constant - you can initialize it once, and after that you cannot change it. In the initialization you can use some variable which value is unknown in the compile time. Limitation is that you have to initialize read only field in the class constructor only.
I am not sure for include files. MS avoids speaking about this, so I suppose that they have not advanced this concept, but they recommend a using of user controls for the static text and custom controls or components for ASP.NET code reusability.
...but the Soon is eclipsed by the Moon