Earlier quoted context omitted.
Don't write programs in assembly. Use a high level language that translates down to assembly. Yknow, most every language ever. If you had read the article, you'd see that the author made this comparison.
Except Javascript isn't assembly, no matter how much the author would like to think so. It's a reasonably well featured, multi-paradigm high-level language.
JavaScript is not suitable for large web apps
201–210 of 218 posts
Re: JavaScript is not suitable for large web apps
#202Earlier quoted context omitted.
It's a pain, still. I don't generate js files. When something like that happens, I have to go back to command-line, type 'coffee ...coffee', open generated js file and see where the problem was.
That's your problem right there ;) When you're using CoffeeScript, you're absolutely supposed to generate all of your JS files. -- For the same reason why you don't run all of your JavaScript via eval() while you're developing. Try using `coffee --watch` instead.
Re: JavaScript is not suitable for large web apps
#203Earlier quoted context omitted.
>Great, so now the documentation for the function will promise to return a motorcycle, but instead return either a bunny or a toaster. Not if you follow the second part of my above advice. >There are lies, damn lies, and boilerplate code comments. Since when is a comment that explains what a function does "boilerplate"? I think you are confused.
I've often had to work with code where the comments indicated an entirely different intention than the implementation. As a result, I'm a little paranoid and skeptical, that's all. I also don't like the idea of having to comment each and every single function . If you have to write a comment to explain what it does, maybe you haven't named it properly?
Re: JavaScript is not suitable for large web apps
#204by the same token, you can always get the work done with compiling-js approach, but don't expect it to be the winning product.
Re: JavaScript is not suitable for large web apps
#205http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Dar...
Re: JavaScript is not suitable for large web apps
#206Earlier quoted context omitted.
No, thank Thor that mutant was aborted. ECMAScript 4 got everything wrong, just like AS3 did.
An optionally dynamic, yet also statically typed language? Umm... no. It's hard to even imagine arguing about this.
Re: JavaScript is not suitable for large web apps
#207Earlier quoted context omitted.
So so true. If you are hiring "pricey smart [sic] jQuery guys" then you're probably doing it wrong. You need to be looking for solid software engineers that know javascript well. If the developers you are hiring think (jQuery === javascript) and can't explain the difference between classical and prototypal inheritance , then you're screwed before you even begin.
Funny, the exact same question came up today. I'm curious what the actual difference between the two is as it's not apparent. (I use a mixture of function prototype with the extends pattern and CoffeScript which exports a function exporting a function.) From what I can see they behave the same as long as you follow the same pattern when writing a subclass.
Re: JavaScript is not suitable for large web apps
#208Earlier quoted context omitted.
I've often had to work with code where the comments indicated an entirely different intention than the implementation. As a result, I'm a little paranoid and skeptical, that's all. I also don't like the idea of having to comment each and every single function . If you have to write a comment to explain what it does, maybe you haven't named it properly?
Well, if you're having major problems keeping the project's code and comments in sync, no compiler will save you.
Re: JavaScript is not suitable for large web apps
#209Earlier quoted context omitted.
> Also, you can't ignore that this is hosted by Adobe... This may be true, but it's an ad hominem attack.
It might be ad hominem out of context, but I don't feel it's improper to question the motives of someone working for a company that would most likely benefit from a decline in javascript in the app space. http://en.wikipedia.org/wiki/Ad_hominem#Questions_about_the_...
Re: JavaScript is not suitable for large web apps
#210There are reasonable objections to JavaScript, but this is inane. He uses an example of someone committing a classic mistake in software design. This error would be the same in JavaScript or Java. I'd like to see how his ActionScript translation magically fixed it. However, the remedies for the mistake differ in each language. It is somewhat difficult to fix it in Java's statically typed straightjacket (which I assum…
A more real-life example is that it's very easy to accidentally return a number when you meant to return a string.
But yes, AS does support multiple interfaces.