DEV Community

Discussion on: Which language do you think has a better future: Java or Javascript?

Collapse
 
daleran profile image
Sean M Davis • Edited

JavaScript also has automatic memory management. Almost every modern language has automatic memory management with the exception of C and C++. And memory management usually hides a lot of complexity.

JavaScript is also pretty easy to learn and get started with. However, it is also easier to develop bad habits. It is fairly unopinionated and lets you program however you want which is a double-edged sword. Java imparts some structure and can be easier to work in with large codebase and large teams. I think it will stick around in enterprise for quite some time. It will probably be what COBOL is today. 30 years from now Java developers will make a fortune debugging 50 year old government apps.

JavaScript can get messy fast. That is why TypeScript is so popular. It imparts some structure and transpile time checking. A lot of teams have used Typescript for large projects.