Hey, guys!
I've recently started to learn C#. I had to do it on the university. So, my first program in C# is a Tic-Tac-Toe game, which you can see here.
Overall, I'd say I don't see what people mean when they say JavaScript sucks. C# seems about as confusing.
Why the hell does "pictureBox.createGraphics()" work on Windows, but fail silently on Linux? It took me hours to figure out what's going on. Why do multi-dimensional arrays have different syntax than in other programming languages? I mean, in other languages, the syntax makes it obvious that a 2-dimensional array is an array of arrays. C#... I don't know what's going on there, but it's definitely confusing and takes time to get used to. Why does the receiver of the "click" event have to receive "System.EventArgs" and then cast it to "System.Windows.Forms.MouseEventArgs" to receive the coordinates of the click? Why not receive "System.Windows.Forms.MouseEventArgs" in the first place? Why the hell do you need to declare a "Random" object to use a random generator? Why the hell does a single call to "pictureBox.Refresh()" appear to sometimes generate one "paint" event, and sometimes two or more of them? It took me hours to figure out what's going on (and I am still not sure, but I have found a fix).
I am not saying I'd know to make a language better than C#, but I don't see how it can be said to be much better than JS.
I've recently started to learn C#. I had to do it on the university. So, my first program in C# is a Tic-Tac-Toe game, which you can see here.
Overall, I'd say I don't see what people mean when they say JavaScript sucks. C# seems about as confusing.
Why the hell does "pictureBox.createGraphics()" work on Windows, but fail silently on Linux? It took me hours to figure out what's going on. Why do multi-dimensional arrays have different syntax than in other programming languages? I mean, in other languages, the syntax makes it obvious that a 2-dimensional array is an array of arrays. C#... I don't know what's going on there, but it's definitely confusing and takes time to get used to. Why does the receiver of the "click" event have to receive "System.EventArgs" and then cast it to "System.Windows.Forms.MouseEventArgs" to receive the coordinates of the click? Why not receive "System.Windows.Forms.MouseEventArgs" in the first place? Why the hell do you need to declare a "Random" object to use a random generator? Why the hell does a single call to "pictureBox.Refresh()" appear to sometimes generate one "paint" event, and sometimes two or more of them? It took me hours to figure out what's going on (and I am still not sure, but I have found a fix).
I am not saying I'd know to make a language better than C#, but I don't see how it can be said to be much better than JS.