Hacker News new | ask | show | jobs
by gasping 4114 days ago
> …we eliminate so-called “structured programming” constructs like “for” and “if”. Only function calls, variables, and constants are allowed. The result is that we end up with something that looks a lot more like assembly code; but instead of “GOTO” statements, we use callbacks…

Oh god please no.

Building a nontrivial app in node is already a nightmare.

3 comments

Well, what the author wants is called Haskell(or Scala to some extent) where the logic "is in the type itself", he doesn't know it yet or he wouldn't have written this article.
Frankly I just want to do it in JavaScript-- not because it's good, but because it's "good enough". Know what I mean?
Try Haskell, you'll understand why JS isn't "good enough".
Well, node is node...

In Clojure I got almost to the point where I can write and reuse almost any layer of my application, I need to connect with Mongo, check, I need to authenticate an user, check, I need to connect with Postgresql, check...

In the next app, if I would need to connect again to mongo I will just need to import the relevant module...

Back that up, please.