Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:Java killer? (Score 2) 623

In a perfect world probably. But have you considered that there's a reason why primitive types are left as primitives even in C# (which had the opportunity to correct the mistakes Java made).

I'm not suggesting that primitive types be implemented using the mechanics of regular objects. I'm just saying that they could be made to appear to the programmer like regular objects. Combined with certain restrictions (e.g. no extending from primitives) and some compiler tricks, this can be made to work efficiently. The fact that Java's primitive types are all immutable makes this even easier -- immutable objects are very well-behaved.

And sure, your performance might suffer if you're not careful, but I don't think that's necessarily worse than having to force people to deal with the primitive/object difference even when they don't particularly care. It's kind of like the autoboxing situation today. If you're not careful you could end up with a bunch of unwanted boxing/unboxing operations. So when I need to be careful, I am. But when I just want to get something done, it's way easier to just let the autoboxing happen.

Comment Re:Java killer? (Score 4, Insightful) 623

My favorite part about the post is that he points to C# as an example of a "good" language, as if C# and Java were not essentially the same language.

C# started out essentially the same as Java. But at this point it's way better.

  • Function types and closures. This alone makes it way better.
  • More efficient generics (no boxing/unboxing).
  • Local variable type inference.
  • Coming in C# 5.0: automatic CPS transformation (async/await).

Comment Re:Java killer? (Score 5, Insightful) 623

Any experienced c++ programmer will tell you that "classes if necessary, but not necessarily classes" is the way to go. Class explosion is not pretty, and makes for over-complex stupid implementations.

When trying to design a new, clean, high-level programming language, I probably wouldn't pay much attention to C++ rules of thumb.

Making everything behave like an object can make things much cleaner. It all depends on how exactly this is done, but a lot of complexity in Java comes from the fact that primitive types behave differently. C# did a bit better, but there's still the value-vs-class distinction which can trip you up in subtle ways.

GUI

Ask Slashdot: Is the Recycle Bin a Good GUI Metaphor? 465

dsginter writes "During a recent Windows 7 upgrade, I disabled the 'Recycle Bin' from appearing on the user desktop. Why? Because this allows the users to retrieve errant deletions. While this was the goal of the 'Recycle Bin' in the first place, most people (including myself) are in the good habit of keeping a tidy workspace and 'taking out the trash' when they see that it is full. For some people, their OCD meant that deleting a file was a two step process: delete the file and then empty the recycle bin. By disabling it from view, I have found that the original function is restored for the smattering of times that it is actually needed. Why are we wasting pixels on such a poor metaphor?" Going further, is there some combination of metaphor and method of use that you'd find more useful or natural?

Comment 3.5" floppies (Score 4, Interesting) 191

Reminds me how the way drives recognized 1.44MB floppies (3.5") from 720KB ones was by checking if there was a hole in the bottom-right corner (the bottom-left corner being for write protection). And sure enough, if you made a hole in a 720KB floppy it would be possible to format it as 1.44. There might have been a few more errors, but I remember when HD floppies were 3-4 times more expensive, so it was definitely worth it. At least for a teenager with only pocket money. Ah, those floppy drilling afternoons... Mais où sont les neiges d'antan?
Businesses

AT&T Wireless Data Still Growing At 1000% 137

jfruhlinger writes "AT&T's wireless network came under a microscope when it seemed unable to handle the massive data use boost that came when the iPhone arrived on the scene. The company has since put money into its infrastructure, and that growth rate has slowed somewhat, but it's still gone up 30 times over the past three years."
XBox (Games)

The Inside Story of Microsoft's 'Project Natal' 130

Lanxon writes "Wired has published a lengthy behind-the-scenes feature documenting the inception, development and technological struggles of Microsoft's Project Natal, now known as Kinect. The feature is the result of conversations the magazine had with a number of key developers and researchers behind the project, and unprecedented access to Microsoft Research in a number of countries, over the course of three years."
Google

Google Wins European Trademark Victory 39

adeelarshad82 writes "A European court has ruled in Google's favor, saying that allowing advertising customers to use the names of other companies as search keywords does not represent a trademark violation. The court also went on to say that Google's AdWords program is protected by a European law governing Internet hosting services. Google's main line of defense was claiming that companies that want to extend trademark law to keywords are really interested in 'controlling and restricting the amount of information that users may see in response to their searches.' The decision is the first in a series of decisions from the court about how trademark rights can be used to restrict information available to users. Google is currently battling several trademark keyword cases in the US, including a case against Rosetta Stone, Inc."

Comment Re:The next line states... (Score 1) 360

In general I would agree, if the conclusion is debatable (even if ever so slightly). But if you find more dogs than cats in your neighbourhood, you could as well declare there are less cats than dogs, because it is formally equivalent. The case we are talking about now is actually the same degree of equivalence (I just did the math, it's worth to do it once to convince yourself).

Comment Re:The next line states... (Score 1) 360

I get your point. But since the two sentences are statistically equivalent, it is completely irrelevant which method you used, they lead to the same conclusion. So you could very well examine the population of people who spend a lot of time on the internet, find that they are more depressed than average, and conclude that "people showing signs of depression are more likely to spend a lot of time surfing the internet".

Comment Re:The next line states... (Score 2, Informative) 360

If you really want to be technical

OK, let's be technical. Let:

D be the number of depressed people; A be the number of internet addicted people; DA be the number of depressed and internet addicted people. T be the total number of people.

Then: "internet addicts are more likely than the general population to be depressed" means "the proportion of DA among A is greater than the proportion of D among T", or "DA/A > D/T", which is mathematically equivalent (since all number are positive) to "DA*T > D*A".

"depressed people could be less likely than the general population to be internet addicts" means "the proportion of DA among D is greater than the proportion of A among T", or "DA/D < A/T", which is equivalent "DA*T < D*A".

it is feasible that, although internet addicts are more likely than the general population to be depressed, depressed people could be less likely than the general population to be internet addicts.

No.

Comment Re:The next line states... (Score 1) 360

Well, "spending a lot of time on the internet and showing signs of depression are correlated" would be good, but clearly not understood straight away by many people. One could argue it is better than to be wrongly understood by those people (and then even people understanding correlation can be influenced by the "wrong" formulations, when not paying full attention), and it could provide the opportunity to explain the concept. Yes, it's a pain, but then the fact that not knowing it makes you much more vulnerable to manipulation might justify it. Definitely this is something that should be given more attention in schools, until "correlation" becomes as much understood as "likely".

Comment Re:The next line states... (Score 1, Informative) 360

No, it doesn't. The summary says "more likely"; that is, as internet use increases, the probability of depression increases. That is the definition of correlation. Implying causation would be using a word like "cause". (I know, tricky concept) Which the summary doesn't.

The word "cause" would assert causation. When the summary says:

People who spend a lot of time surfing the internet are more likely to show signs of depression

it suggests causation, because that does not sound the same as:

People showing signs of depression are more likely to spend a lot of time surfing the internet

One might agree that those sentences are formally equivalent (in an idealized version of english), but the way most people speak, those sentences suggest different causations.

Slashdot Top Deals

"Gravitation cannot be held responsible for people falling in love." -- Albert Einstein

Working...