• 2 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle







  • There is no single person responsible for Cyrillic script. It is mostly believed to be created by mixing and changing Greek and Glagolic scripts by the scholars of Preslav Literary School, which was indeed in Bulgaria. After a while, Peter the Great changed it a lot. And then Stalin stomped out almost all the deviations in the usage of the script.

    The last part is mostly why it is considered Russian. A lot of languages suffered because of Moscow just forcing them to use the version of Cyrillic that Russians were using.




  • rand() generates a number from 0 to a constant defined in stdlib, which usually corresponds to the architechture of your compiler. So, for 32 bit systems (assuming all the software in the line is 32 bit, too) it will be 2^31-1 = 2 147 483 647, as 1 bit in integers is reserved for negative numbers and 1 number is 0.

    Though, by design it is guaranteed to be at least 32767, which is a value for 16 bit integers.




  • MOBA as a genre didn’t come from WC3. There were quite a lot of predecessors to DotA, both in WC3 itself and in first StarCraft, namely Aeon of Strife is believed to be the first popular MOBA custom map out there.

    Blizzard didn’t decide that quirks of WC3 engine are dumb. Yes, they wanted to make a simpler MOBA, but the main reason for lack of funny stuff from WC3 is that they used Galaxy engine for the game, the same one StarCraft 2 was built upon.

    And HotS feels less complex not because of Galaxy’s vs WC3’s quirks (the former has plenty, too), but because of lack of gold and shop, shared experience and an actual tutorial at the beginning of the game.









  • Another C# gang comment here.

    I’ll try not to repeat what others said.

    C# has one of the best debuggers in the industry. Debugger is a thing that lets you stop your program at a set state and investigate values of variables in that state. Very useful for education. The thing is incredibly easy to set up in Visual Studio right out of the box and is a matter of installing another extention in VS Code.

    C# is in C syntax family, which includes C, C++ and Java. While you’ll have to learn some syntax quirks to switch languages, they are not as drastically different as Python, for example. If your intention is getting into game development, setting a base for C++ is a nice bonus.

    C# is strictly-typed. Unlike Python, Lua or JS that I saw in this thread, C# requires you to specify types of your variables. While it may sound as a disadvantage at first, it is actually extremely useful catching silly mistakes. Like if you make a string and pass it to a method that expects integer, C# simply won’t compile, you’ll have to explicitly convert your string to integer. JS is notorious for it’s ('b' + 'a' + + 'a' + 'a').toLowerCase() > "banana", which is extremely hard to follow if you’re learning the language IMO.

    If you’re trying to build games with big game engines like Unity or Unreal Engine, C# is a no-brainer, as they support it natively. Godot has it’s own language, but it has an option to switch to C#, so, you can cover all of them with one language.

    Windows Forms. It’s a package for developing GUI applications on Windows. Visual Studio comes with it and has a designer for it. If you want to learn how to make a simple GUI application, that’s one of the easiest routes. Worth noting, if you’re not on Windows, that thing is not that easy to use.

    Here is an official “get started” guide: link.