|
OK, so why do I think JavaScript sucks? Well first off, as an enterprise web application developer, I don't like any scripting or dynamic languages. I like code that compiles for lots of obvious reasons. It is messy to code with and lacks all kinds of modern programming features. We spend a lot of time trying to hack it to do things it was never really designed for. Ever try to use different jQuery based plugins that require conflicting jQuery versions? Yeah, that sucks. Maybe we should all go back to FORTRAN...
|
|
|
|
|
I have to agree that JavaScript sucks. I think there is still a place for inline code, but JavaScript does not play nice in HTML. It also is a very different language than what Web programmers tend to program in, which is Java or C#. It is also true that JavaScript was not designed for what it is used for. I do not think that it not being a complied language is neccessarily bad. In fact it might be good since do not have to worry about the platform, and the executed code is human readable. What would be much better is being able to organize the code as one does in C# and Java where classes are put into files, and objects are supported (which both C# and Java developers are familiar with). This could be managed by the development environment packaging the code in the web page when deployed, or having it included when sent to the client.
Read article about TypeScript, and it sounds really good.
|
|
|
|