r/java • u/Zardotab • Dec 29 '22
Could Java Applets have been done right? DOM is limiting [CrossPost Discussion]
/r/webdev/comments/zxel5o/could_java_applets_or_flash_have_been_done_right/
5
Upvotes
View all comments
-1
u/vprise Dec 30 '22
Probably no. They had no foresight and couldn't have done it right with what they knew at the time. The bridge was a mess. It was always an alien to the browser and badly integrated. The code signing process was a complete mess back then.
I'm guessing what you're asking is "if we did it now could we do something better than JavaScript". Probably no as well for the same reasons. There are great tools like TeaVM which effectively make Java into a TypeScript alternative. But the inherent problem is still the same.
If you want to build something that's effectively a completely separate app then Java can run through the browser and deliver something that feels like a Flash app did. That's not a bad thing but not great either.