I can almost personally explain why TiTS's coding is a giant cluster fuck, its because unlike coc2 which seems to have been made to run in electron or was converted early on.
TiTS started as a flash game and kept going as one because we as a collective society didnt really decide flash needed to die yet. So when the time finally came the TiTS devs had to find somone who would convert the as3 code to javascript.
(God help them in the UI conversion stuff, I was the person who converted CoCX, and kittehs CoC to a UI that didnt require you to own adobe).
But large portions of the TiTS codebase were more or less copypasted from the old as3 code to javascript. You can kind of see this in how TiTS has large amounts of its code exposed as global functions with well defined names, while CoC2 has webpack jibberish with only a few global functions.
For example if you dig into the TiTS codebase you could actually (as of last yearish unless they cleaned it up) see race enums for a theretical MLP race along with a few other enums.
As somone who has looked at both they each have their own problems (trying to compare them is similar to trying to compare a pear and an apple) and the parser is part of both games. Its a hold over from the days of CoC1 bacause both games were atleast in part made using a stripped down version of the CoC1 codebase.
CoC2 is a different flavor of spagetti from TiTS because they took the death of flash in stride and attempted to modernize the codebase or rewrite large parts of it to take advantage of the features of javascript.
While TiTS was rug-pulled by the death of flash and was quickly converted in such a way that worked while preserving the code cruft of the coc1 past.
Edit: christ I wasnt expecting to code nerd sperg this hard.
So its a port (tits) to Javascript and Electron, some of users said they (tits developer) try to code new one in Java ?? in Java or Javascript, which one ??
to other users this post its no connecting to coc2, its about the programming, Java is a difference language from the Javascript !!
Javascript: is a language with some similar instruction command like a C or C++ (but only the command word, not the performance), and can works with the html (hyper text markup language), and the css, you can codes your function and scripts in the javascript and use it inside of the html and css.
at the other hand Java, is a professional language with so many different works, at this moment the best language in the programming is the Java, if you worked with java apps, you sense some of slowing, that's because of java, java has a virtual machine (the JDK), so you can install the JDK or JRE on any system and use your app on it !! but here we have strong point and a weak point too:
Strong point is the virtual machine can read your code directly, without any changes, because the "Interpreter", this will reading your code directly, without any changes, the interpreter, directly make your code known to the machine without the assembly needs.
Weak point, when the interpreter directly known your code to machine, it take time, so you can feel some time the slowing of the java app !!
now i explain why some of programmer prefer C++ instead of Java, because in C++ instead of Interpreter (and virtual machine), you have the Compiler, the compiler (GCC), compiled your codes into the machine language (the assembly language), so you have the compiled code when you run (execute an app) a C++ app, so it work very fast than the java app. (the different between the Compiler and Interpreter)
the last thing about programming languages:
1. if you want mixed programming, the best language is Java or Python
2. if you want build a kernel or an OS or something big, use C++ and Perl
3. if you want web programming Javascript with HTML and CSS (i like this course), or the PHP (some of programmers says PHP is better)
4. at the Database, MySQL or Oracle (if you have a money and rich, the best database), but of course i love Michael Widenius (Monty).