Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even with older lower level languages like C and COBOL '02 it's easier to do simple things like find a file, read the file, and draw the file on the screen as a raster image using a resizable canvas than it is to write the JavaScript to do the same thing.

The mangling of JavaScript to fit through every hole seems to be the biggest mistake made in modern programming, and I'm not sure what even keeps it going aside from momentum. At first it regained ground because Flash was going EOL, but now?

 help



COBOL is a high-level language, and on the higher end to boot, with support for object oriented programming being added over 20 years go. C is also high level, but the joke is that it "combines all the elegance and power of assembly language with all the readability and maintainability of assembly language". (http://catb.org/jargon/html/C/C.html)

Anyway, C doesn't support any of those things you mentioned, or even functionality as basic as memory allocation, but what it does have is a user-base that so consistently uses the same library for most functionality that it has earned its moniker as the "C standard library" and it's usually conflated with the language itself.

JavaScript, on the other hand, has more frameworks than there are programming languages in common use.


So if c is easier. Why are we using JavaScript???

Who knows?

It's not even ambiguous; JavaScript uses syntax inherited from C, so if you can program in JavaScript, you can program in C, where you get a performant, stable, and simple standard library, instead of the framework-of-the-month club in JavaScript.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: