|
|
|
|
|
by com2kid
61 days ago
|
|
There are benefits to having the same type system throughout a code base. Also Typescript is a really nice language. The other issue is, many websites are basically apps. The HTML is a byproduct, it isn't the main event. The template based systems are fine if you have mostly plain HTML with some interactivity sprinkled in, but for people who are building complex web apps, there is typically a tiny bit of HTML and a lot of logic. The old template based systems fall to pieces for really complicated sites. In regards to language, if you are going to pick a JITed or interpreted language, may as well pick one that has had a lot of effort put into making it fast, and the JS runtimes are really optimized by now. Java is faster, but Typescript is a much better language (and more type safe!) than Java. |
|