Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: August 12, 2025, 12:10 pm

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting to learn C#
#1
Starting to learn C#
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.
Reply



Messages In This Thread
Starting to learn C# - by FlatAssembler - January 21, 2020 at 2:04 pm
RE: Starting to learn C# - by LastPoet - January 21, 2020 at 2:09 pm
RE: Starting to learn C# - by FlatAssembler - January 22, 2020 at 7:06 am
RE: Starting to learn C# - by Brian37 - January 21, 2020 at 2:15 pm
RE: Starting to learn C# - by BrianSoddingBoru4 - January 22, 2020 at 7:47 am
RE: Starting to learn C# - by LastPoet - January 21, 2020 at 2:42 pm
RE: Starting to learn C# - by Ranjr - January 22, 2020 at 9:22 am
RE: Starting to learn C# - by FlatAssembler - January 24, 2020 at 9:51 am

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to learn VHDL? FlatAssembler 4 779 May 29, 2020 at 11:35 am
Last Post: FlatAssembler
  Finally Starting to Break Down... Rev. Rye 16 4784 August 18, 2013 at 9:08 pm
Last Post: Rev. Rye



Users browsing this thread: 1 Guest(s)