3 ms·
> Well, that's possible with compile-to-JavaScript languages. I have tried to read code that was translated to Javascript using some source-to-source compilers
by simula67 12y ago
> Well, that's possible with compile-to-JavaScript languages.
I have tried to read code that was translated to Javascript using some source-to-source compilers and they are very hard to understand. On the other hand for a language like C, it is very easy to understand the output ( assembly ). Don't get me wrong, understanding the intricacies of assembly for each processor architecture is a difficult process, but the rules that define assembly language itself are not so, there is an opcode and some operands and each instruction performs an action on the operands or stored state in various registers. Javascript ( at least for me ) is too high-level to attempt to read a machine translated output. Programmers need to know at least one level below the abstraction to which they are programming to.
- jbergens 12y agoI would say the output of most of the compile-to-js languages are easy or at least non-hard to read. It is usually the minification that causes problems and you don't have to do that in a development environment where you usually attach your debugger. It's usually also hard to debug a running application written in a static and compiled language (unless you have symbol tables and similar).