Programming language discussions

Started by kaywhyn, Today at 01:04:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kaywhyn

(Split from Why should NL levels have all-different IDs?)

Quote from: JawaJuice on Today at 12:56:42 PMAh OK, makes sense. I would choose C# as well for that kind of desktop GUI app.

I personally only have experience with C++, but I haven't coded in that language in over 15 years now, as the last time I did so was back when I was in college/university. Hence, I'm not sure how much it has in common with C#, let alone C, in terms of syntax, though it wouldn't surprise me if there are some similarities, especially with C. I recently re-installed Visual Studios on my machine again and am pleased that most of my assignments from the computer programming course I took all those years ago still compile properly ;)

JawaJuice

Quote from: kaywhyn on Today at 01:04:21 PMI personally only have experience with C++, but I haven't coded in that language in over 15 years now, as the last time I did so was back when I was in college/university. Hence, I'm not sure how much it has in common with C#, let alone C, in terms of syntax, though it wouldn't surprise me if there are some similarities, especially with C. I recently re-installed Visual Studios on my machine again and am pleased that most of my assignments from the computer programming course I took all those years ago still compile properly ;)

Not wanting to derail the thread, but this is an interesting chat to me, so hey! As a C++ coder, C# is fairly easy to pick up because both languages share a common root in C. C# actually has a fair bit in common with C++ in terms of its syntax, the main architectural difference is around memory management, so C# is more like Java in that it's a managed language where garbage collection is automated. In C, you don't have that luxury at all and are completely responsible for your program's memory allocation and management through pointers (which makes it easily the most dangerous of the three to use if you don't know what you're doing!). Modern standards of C++ have introduced smart pointers, which makes memory management significantly easier, though it's still not fully automated. The reason C# is more suitable for GUI development though, is that it's closely tied to the .NET framework so has GUI elements built in that are almost drag-and-drop through Visual Studio, compared to C++, where you'd have to plug in third party libraries like Qt. Back in the day, we used to use MFC to build GUI apps but no-one in their right mind would choose that over C# these days! Good to hear that your old projects still compile in VS - I think you mentioned that before :thumbsup:

namida

No worries about the derailing - this can easily be split off into its own thread. :)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)