Hacker News new | ask | show | jobs
by dotborg 4905 days ago
I see at least two problems:

- debugging such code is a nightmare(node.js itself makes it hard enough)

- static analysis of such code is not possible.. yet?

JS and programmers should target Java-like experience imo, static analysis, code assist, dependency check - all of it performed on-the-fly. We won't get it by creating yet another layer above main language, because IDE vendors simply can't cope.

1 comments

Javascript is a dynamic language. And especially one that is difficult to do static analysis on. We get much more out of macros than we would with some attempts at static analysis, when it comes to programmer productivity in the end.
problem of static analysis in JS code is difficult, yet it's worth to solve,

coolness of JS and safety of static analysis, that would be great

macros are just lame workaround:)