4 ms·
You are 100% wrong. C allows you to shoot yourself in the foot much more easily and much worse than JavaScript. JS is a far more "safe" language to code in. No
by ebbv 13y ago
You are 100% wrong. C allows you to shoot yourself in the foot much more easily and much worse than JavaScript. JS is a far more "safe" language to code in.
No pointers, no memory allocation. Yeah JS isn't typed but the problems that you get into with that are nothing by comparison.
And again, I'm not saying JS doesn't have problems, it does. But the problems this presentation is complaining about are not results of flaws in JS they are results of incompetent developers.
So he's complaining about the wrong thing by complaining about JS.
It should be titled "I wish incompetent people wouldn't try to do things." And we'd all agree but then consultants like him would be out of a job.
- joshuacc 13y agoFYI, Nicholas Zakas, the person who gave this presentation (which I attended) is a well-known JavaScript expert. He's definitely not complaining about JavaScript as such, just horrible misuses of it.
- rgbrgb 13y ago>> No pointers, no memory allocation. There are definitely both of those things, they just aren't explicit in the same way.[1] [1]: http://point.davidglasser.net/2013/06/27/surprising-javascript-memory-leak.html http://point.davidglasser.net/2013/06/27/surprising-javascri...
- msluyter 13y agoThe parent probably shouldn't have included C and Python in the same list but if you apply the principle of charity[1] and choose Python as the point of comparison rather than C, then his argument is somewhat stronger. [1] http://en.wikipedia.org/wiki/Principle_of_charity http://en.wikipedia.org/wiki/Principle_of_charity
- rlander 13y ago> No pointers, no memory allocation. You mean no manual pointer management, no manual memory al location, right? Right? > Yeah JS isn't typed but the problems that you get into with that are nothing by comparison. Js is typed. Every language is typed. Is just isn't statically typed. Big difference. >You are 100% wrong. Strong words for someone who gets a lot of basic stuff wrong in a single paragraph.
- sbuk 13y agoThat's semantics. He didn't get the "basic stuff wrong in a single paragraph" at all. Bu not having to worry about pointer or memory allocation at the the point of coding, it is entirely reasonable to say that JS the language has none. Yes, of course the interpreter does that, it goes without saying. JS is weakly typed, when writing no type declaration is needed, so it is said that JS isn't typed. Your comment is akin to that of a grammar pedant by not addressing the argument, just the manner in which the points were made.