Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:JavaScript Sucks, Rant [Re:Node.js] (Score 1) 536

Oh, and literals starting with "0" are interpreted as octal.

It's funny. I was actually quite grateful for this feature -- it came in quite handy on a personal project years ago.

I wouldn't be so quick to count it as a design flaw as lots of languages work that way. C/C++/Java/Python2/Ruby ... it's quite common.

Comment Re:Perl still works, and PHP is fine (Score 1) 536

A couple points:

"class = function = object"

This is wrong. There are no classes. Yes, they are being introduced in ES6 -- which is sure to be remembered as the biggest mistake ever made, despite the fact that they're essentially sugar. Pretending to be 'like java' with constructor functions and new was obviously a huge mistake. Why double-down?

(To everyone else reading) They're quite controversial. Not only are they unnecessary, but they introduce unnecessary complexity -- with no obvious benefit to compensate. It's pretty well established that prototypal OO is superior to classical OO in every way. It's simpler, requiring users to understand fewer concepts and yet it's still far more 'powerful'. On 'powerful' I'll direct you elsewhere as I'm not interested in arguing this point with the kool-aid drinking OO zealots. Search for something like 'prototypes vs classes'. If you have it, put your ACM DL subscription to good use.

(While I'm complaining. Arrows? => Way to introduce inconsistency, ECMA! )

although most of "anyone" will probably write you a horrible kludgy mess instead

I'd say that this is true for every language. Never judge the quality of a language by the quality of the code you inherit. No language can encourage developers to write 'good' or 'bad' code.

Comment Re: Not likely. (Score 1, Insightful) 365

doesn't have any flappy bits to fall off.

What are you doing to your equipment? How did these "flappy bits" develop? How is it that every laptop you've claimed to own apparently crumbled at your touch?

You know what? I don't actually believe you. I think you're lying. Are you just trying really hard to justify your overpriced laptop? I have no idea why. Just take the knock to the pocket-book and move on. Everyone makes mistakes.

Perhaps you just like Apple products and are worried about their lack of marketshare? If that's the case, you may want to find a different approach. I've never had a laptop inexplicably disintegrate.

Slashdot Top Deals

There are two ways to write error-free programs; only the third one works.

Working...