Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Run to the hills! (Score 1) 505

Look, javascript has sort method. In its default use, it sorts strings because that's how it works. If you need to sort other things like complex objects in an array, that can be done too using the same function with logic you supply.

Just saying the whole language "sucks" because it doesn't have x y and z features is a bit disingenuous. Any language you name probably is also missing some things when compared to javascript, so you can't make everyone happy all the time.

Only noobs cry bloody murder when they get the wrong sort order back. It's that way for a reason, and it isn't impossible to sort an array of numbers. Everyone just needs to calm down and maybe learn how something works before declaring "it sucks".

Comment Re:Run to the hills! (Score 2) 505

The default sort coerces the array items into strings before sorting. If you want to sort integers, use the sort function like this:

[ 10 , 1, 5].sort(function(a,b){
if(a>b){return 1};
if(a<b){return -1};
return 0
})


The sort method in javascript gets it done, but you have to know how it works. Maybe you just don't really know javascript if you cry about this.

Comment Re:I has a sad (Score 0, Troll) 505

Dynamic typing scares him. It scares a lot of people that don't understand how it works or how to use it.

Many people have no problems with Javascript.

Only programmers who cling to their compiler to tell them they did something wrong fear Javascript. I never, ever, have any errors due to an unexpected type, or whatever boogeyman people like @narcc seem to be afraid of.

Or, maybe they are just afraid of Javascript's market share and the possibility that they will have to learn to use it to earn a living someday.

Comment Re:jscript (Score 1) 505

Oh you're such a big, brave programmer because you aren't a "Script Kiddie", and hiding behind "Anonymous Coward". Give me a break. slashdot seems to be filled with people with narrow vision such as yourself.

Comment Re:Replusive (Score 2) 505

If that is how you think about Javascript, then you have just illustrated your own stupidity. Or maybe it's fear that you are displaying?

Javascript is far from "the worst technologies", and your quip about being "barely able to solve the problem" is pretty ignorant.

I'll get off your lawn now.

Comment Re:Cognitive Dissonance (Score 1) 281

>DRM allows other entities (who do not necessarily even have a cognizable privacy claim) to control how you use books and the like after they have been sold. Particularly invasive DRM may, besides restricting your freedoms to use these items in novel ways may also intrude directly into your sense of privacy.

I worked at a major movie download/streaming company for many years, I know all about that type of business DRM situation.

If you don't like DRM, THEN DON'T BUY IT FROM THEM. If you do buy it from them then you are supporting their business model. Nobody at corporate HQ cares if geeks want "freedom" to move the content around from device to device which they purchased under specific terms of use. Restrictive DRM measures are in place to monetize the content as much as possible and extract as much money as possible from the average consumer (non-geeks).

Someone will still pay for it, and DRM serves its purpose.

Newsgroups also serve a purpose, as do VPNs, and Tor, and encryption, and exploits, and open wifi connections, etc.

Comment Re:Cognitive Dissonance (Score 1) 281

>this is because you cannot comprehend the concept of privacy You do not know me, you cannot make this statement with any credibility. You sound like a troll. I love Truecrypt, and I also love money. I've never used facebook or twitter or any social sites except slashdot and a few others. You don't really expect you have any privacy here, do you? DRM serves a useful purpose for people who have content to sell. From my point of view, people who think DRM is a horrible idea usually have unrealistic views of the world, and a sense of entitlement.

Comment Re: No way (Score 2) 375

from http://en.wikipedia.org/wiki/Regeneration_(Doctor_Who) Time Lords used to have 13 lives." In Death of the Doctor (a 2010 The Sarah Jane Adventures serial), the Eleventh Doctor responds to a question from Clyde Langer by saying he can regenerate "507" times. Early news reports, before the episode was broadcast, suggested he would say there is no limit to the number of regenerations.[11] Writer Russell T Davies explained in an interview with SFX that the line was not intended to be taken seriously and is instead a commentary. He insisted that the "thirteen lives" rule was too deeply entrenched in the viewer consciousness for his throwaway line to affect it.[12]

Comment Re:Obama effect (Score -1, Flamebait) 514

Can you get a 50mm machine gun, or does anyone in the public need one? NO. And I'm very happy that is the case. Your rights to own such a thing are already limited, and for good reason.

You are nuts if you think any type of assault weapon need to be sold to citizens.

You are nuts if you think by restricting access to certain types of weapons THAT SERVE NO PURPOSE BUT MASS MURDER is somehow going to lead to restricting all of your rights.
Good riddance to these weapons, we do not have any need for them in this society.

Comment Re:different (Score 2) 195

If you are getting headaches from using a computer, you have more serious issues than the color of a webpage. You should really get that checked out.

The internet, and computer applications as a whole do not give people headaches because of the color schemes used. If this were the case, computers would be labeled with warning stickers - "May cause headaches". This is simply not the case. You are straining so hard to try to make an erroneous point. Just because you get headaches from a specific color scheme on a screen does not mean the rest of us do. I've been staring at computer screens 12+ hours a day for the last 30 years and I've never once had a headache that I thought was induced by the default colors of the applications open on my screen.

Developers aren't "forcing their own color schemes", they use color schemes that are widely accepted as being productive and useful and that work for the majority of people using their products. Catering to an edge case only makes the job that much more difficult if they have to satisfy the functional requirements as well as make it work with any color choice the user wants. It's absurd.

Comment Re:different (Score 1) 195

>It should be expected in fact

What kind of rock do you live under? You really expect users to tweak the colors of a webpage?? I think you are giving too much credit to the vast majority of users that make up the internet. Not everyone is an uber-nerd. Nobody really cares about changing the color of every webpage, or even a single webpage. The vast majority of users simply do not care or even know that it is possible, and would never think twice about doing it.

>Any designer can create a webpage that looks good when a user tweaks the colors.

Here you are just being plain crazy. Have you ever worked with a designer?? Have you ever created a webpage? It sure doesn't sound like it.

>Another mediocre experience is when I have to use another persons computer who has Ctrl and Capslock in the place modern keyboards assume. I always change that to the way the FSM intended.

Now you're just babbling, or trolling.

Slashdot Top Deals

An Ada exception is when a routine gets in trouble and says 'Beam me up, Scotty'.

Working...