Live data from Hacker News

An Absolute Beginner's Guide to Node.js

blog.modulus.io

61–70 of 71 posts

Re: An Absolute Beginner's Guide to Node.js

#61
post #17

Earlier quoted context omitted.

In what way is it flawed?

[edit spelling] I think that the reason you find so much negativity regarding javascript is that many people come to javascript from some other language which offers features which javascript doesn't yet offer. Having cut their teeth on a language tends to leave the programmer with a worldview where any language which doesn't have the same features which are present in their beloved language is an inferior language.…

To add to your list of common grievances about JS, there is no integer nor bigint datatype, only doubles, so floating-point rounding errors are common and numbers have an upper limit (2^53). Also, the way variable scoping works in the language, is completely insane.

Re: An Absolute Beginner's Guide to Node.js

#62
post #17

Earlier quoted context omitted.

In what way is it flawed?

[edit spelling] I think that the reason you find so much negativity regarding javascript is that many people come to javascript from some other language which offers features which javascript doesn't yet offer. Having cut their teeth on a language tends to leave the programmer with a worldview where any language which doesn't have the same features which are present in their beloved language is an inferior language.…

Nice answer. I've gone from Java->Haskell->Clojure->CoffeeScript. I was never fluent in Haskell->Clojure but I could get around.

But being completely familiar with Java, CoffeeScript/JavaScript feels nice. I really like underscore.js. When googling for why people don't like JavaScript, it seems that CoffeeScript has already fixed all those problems.

Re: An Absolute Beginner's Guide to Node.js

#63
post #17

Earlier quoted context omitted.

In what way is it flawed?

[edit spelling] I think that the reason you find so much negativity regarding javascript is that many people come to javascript from some other language which offers features which javascript doesn't yet offer. Having cut their teeth on a language tends to leave the programmer with a worldview where any language which doesn't have the same features which are present in their beloved language is an inferior language.…

Thanks for taking the time to make these interesting points.

Nonetheless reading them it just made javascript even more repellent to me.

It looks like a cup of bad tea to which you need to add some corrections and addons in the first place to taste at least as decent as the other teas. But still it's generally preferred to much better alternatives because it comes with this kind of unique (not true anymore) feature of non-blocking IO.

What some programmers don't realize in this, is that this inducted preference is just the result larger and larger scale profits needs, influencing the programming world.

If a competitor enterprise which operates in the same market as yours can answer to 10000 more concurrent visits than you do, then you are out of the market. Or: Internet marketing rules will tell you that if your visitors are not engaged in your website in about 5 seconds they'll leave.

This is why we are now forced to learn javascript.

And... programmatically speaking, it's really sad.

Re: An Absolute Beginner's Guide to Node.js

#64

Earlier quoted context omitted.

Yes, I am so trapped in my Haskell blub that I cannot possibly understand why JavaScript is so amazing.

Have you tried livescript( http://livescript.net/ ) or clojurescript( https://github.com/emezeske/clojurescript )? I know that they don't have all of Haskell's features but they do bring Javascript a little bit closer to languages like Haskell.

I do not particularly care about having a pretty syntax, what I want is the high assurance that the program will not be wrong.

Re: An Absolute Beginner's Guide to Node.js

#65

Earlier quoted context omitted.

Yes, I am so trapped in my Haskell blub that I cannot possibly understand why JavaScript is so amazing.

Have you tried livescript( http://livescript.net/ ) or clojurescript( https://github.com/emezeske/clojurescript )? I know that they don't have all of Haskell's features but they do bring Javascript a little bit closer to languages like Haskell.

This is a good example of the ways clojurescript improves on javascript: http://himera.herokuapp.com/synonym.html

Re: An Absolute Beginner's Guide to Node.js

#66
post #62

Earlier quoted context omitted.

[edit spelling] I think that the reason you find so much negativity regarding javascript is that many people come to javascript from some other language which offers features which javascript doesn't yet offer. Having cut their teeth on a language tends to leave the programmer with a worldview where any language which doesn't have the same features which are present in their beloved language is an inferior language.…

Nice answer. I've gone from Java->Haskell->Clojure->CoffeeScript. I was never fluent in Haskell->Clojure but I could get around. But being completely familiar with Java, CoffeeScript/JavaScript feels nice. I really like underscore.js. When googling for why people don't like JavaScript, it seems that CoffeeScript has already fixed all those problems.

So people only care about syntax? No wonder there is so much buggy software out there.

Re: An Absolute Beginner's Guide to Node.js

#67

Earlier quoted context omitted.

Have you tried livescript( http://livescript.net/ ) or clojurescript( https://github.com/emezeske/clojurescript )? I know that they don't have all of Haskell's features but they do bring Javascript a little bit closer to languages like Haskell.

I do not particularly care about having a pretty syntax, what I want is the high assurance that the program will not be wrong.

Have you tried using haste or fay? (I haven't, just curious)

Re: An Absolute Beginner's Guide to Node.js

#68
post #62

Earlier quoted context omitted.

Nice answer. I've gone from Java->Haskell->Clojure->CoffeeScript. I was never fluent in Haskell->Clojure but I could get around. But being completely familiar with Java, CoffeeScript/JavaScript feels nice. I really like underscore.js. When googling for why people don't like JavaScript, it seems that CoffeeScript has already fixed all those problems.

So people only care about syntax? No wonder there is so much buggy software out there.

I can only guess you're reacting to me saying, "I like JavaScript because it lets me type less". Unfortunately, I didn't say that.

Re: An Absolute Beginner's Guide to Node.js

#69
post #56

Earlier quoted context omitted.

async/await are just sugar over the much older asynchronous delegate pattern that has been in the language since day one. So yes, they were.

are they widely used in APIs to e.g. send a query to the sql database or open a file?

Yes.

In .Net 4.5 there are Async versions of the web, file, stream, image and SQL category of functions.

It's also making its way into ASP.Net layer.

Re: An Absolute Beginner's Guide to Node.js

#70
post #44
post #16

Not trying to be flamy, but, once again... why people insist on pushing on projects based on a... renownedly flawed programming language? ..Yea JS. Today it's clear that the "only" reason for it being used is its widespread availability in browser, but that started in a time when you needed a way to change the mouse pointer from default to a rainbow colored one. But still js it's the programming language we build fra…

Try Typekit, it makes JS much, much better and it more or less is what JS will become in the future (it follows latest ECMAScript proposals)

Did you mean Typescript?
Post reply on HN