Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:One word.. (Score 4, Interesting) 683

decent languages support labeled for/while cycles and apropriate "break label" constructs.

You often cannot develop software with the language you want, but must develop it with the language you have. C has no such features and, therefore, goto is used more often than in languages that have them. Fit the strategy to the tool.

if you do this kind of thing, you are MUCH better off separating lookup code to method or function

This is reasonable, but it assumes some other function can do the needed cleanup code or other data massaging just as cleanly. If the goto is being used because finding the value is an error condition, you often have to do certain things as soon as possible in the code so you do not lose important debugging information.

And, no, exceptions are not part of C, and setjmp/longjmp is, if anything, even less likely to pass code review. An advantage of goto is that you can keep the cleanup code in the same function, visually close to the rest of the logic and sharing the same locals.

Comment Re:One word.. (Score 5, Insightful) 683

I’m a goto-user, but this is a bad reason to use them: If you regard language features as ‘just’ syntactic sugar, why aren’t you programming in raw machine code? That is what everything eventually gets turned into anyway.

You use gotos when the normal control structures are inadequate somehow. It doesn’t matter what the compiler does; source code is for humans.

Image

Average Gamer Is 35, Fat and Bummed Screenshot-sm 439

kamapuaa writes "According to a study published in the upcoming October issue of the American Journal of Preventive Medicine, the average US video game player is 35 years old, overweight, and tends toward depression. Specifically, female video game players tended towards depression, while males tended towards large BMIs. While the study itself points to several conclusions, one researcher noted: '... habitual use of video games as a coping response may provide a genesis for obsessive-compulsive video-game playing, if not video-game addiction.'" On the flip side, the Washington Post is running a story about the mental health benefits of playing video games.

Netscape Founder Backs New Browser 243

wirelessjb writes to share that after a resounding defeat at the hands of Microsoft in the first major browser war of the mid 1990s, Marc Andreessen is looking to have another go at the market by backing a new startup called "RockMelt." "Mr. Andreessen suggested the new browser would be different, saying that most other browsers had not kept pace with the evolution of the Web, which had grown from an array of static Web pages into a network of complex Web sites and applications. 'There are all kinds of things that you would do differently if you are building a browser from scratch,' Mr. Andreessen said. RockMelt was co-founded by Eric Vishria and Tim Howes, both former executives at Opsware, a company that Mr. Andreessen co-founded and then sold to Hewlett-Packard in 2007 for about $1.6 billion. Mr. Howes also worked at Netscape with Mr. Andreessen."

Comment Re:This guy can't see the forest for the trees (Score 2, Insightful) 708

The Internet is all about price. As you point out, quality is meaningless. If it isn't free, it is going to garner only a fraction of the interest.

I disagree. I think both iTunes and the experiences of Radiohead and Trent Reznor disprove this statement.

I think this article sums it up reasonably well: "The Great Apathetic Revolution". In summary, people will do whatever is easiest as long as it isn't absolutely insanely expensive. iTunes makes it easy to pay $0.99/track, so people do that. It's easier than finding what they want on the torrent sites. It's also easier than finding and buying the album that has the song they want, which is why Sony gets so jihaddy at them.

Today we have "clever hackers" getting their content for free and "noobs" paying the fare for everyone.

This is true. It isn't fair, but it's less unfair than it used to be: It's easier for a poor person to become clever than to become rich. The Digital Divide is self-imposed to a larger degree than previous divides have been.

Comment Re:No Tales from the Encrypt (Score 2, Funny) 126

The obvious solution is to block or severely slow down all encrypted traffic (that is, all traffic the ISP can’t interpret). This would have the obvious effect on online banking, which could be solved by the ISP’s computers handling it: The SSL tunnel stops at your ISP, which inspects the decrypted packets before handing them to you. You know the ISP isn’t going to do anything bad with the information because they told you so (in specific, there’s both a contract and fraud laws stopping them). This might hinder the adoption of new streaming video codecs and the like, but it’s a small price to pay for increased profits.

Comment Re:sometimes translation to German, too! (Score 2, Insightful) 113

Hitler came to power because he had a street gang, called the Brownshirts, ensuring he would. The existing Weimar government was “blind in the right eye”, meaning it came down hard on left-wing gangs but ignored right-wing gangs like the Brownshirts. Hitler’s rise to power came because the existing German government was broken and allowed intimidation to beat (literally) democracy.

But this information will never make much of an impression on people because people need A Moral Lesson. The Moral Lesson here, apparently, is “voting is evil”.

Space

Water Vapor Seen 'Raining' Onto Young Star System 53

tonganqn writes "Using NASA's Spitzer Space Telescope scientists have discovered huge amounts of water vapor in the young star system, called NGC 1333-IRAS 4B. From the article: 'The water vapor is pouring down from the system's natal cloud and smacking into a dusty disk where planets are thought to form. The observations provide the first direct look at how water, an essential ingredient for life as we know it, begins to make its way into planets, possibly even rocky ones like our own.'"
The Internet

Submission + - Pirate Bay abandons bid for own nation

tomp76 writes: Perhaps it was all just a joke. Or perhaps The Pirate Bay, despite being one of the largest bit torrent trackers in the world, isn't really as powerful as its supporters would like to believe. That, at least, is the impression given by one of the founders in this interview. The plans for a copyright-free nation have been scaled down considerably: "We have $20,000 and we are looking at some alternatives. Really we just want somewhere we can name The Pirate Bay, so we can look on Google Maps and find ourselves there."
The Courts

Submission + - Supreme Court Refuses 200 Year Porn Sentence

Class Act Dynamo writes: "The United States Supreme Court today refused to hear the appeal of a high school teacher who was sentenced to over 200 years in prison for possessing thousands of child pornography images in Arizona. The justices declined without comment to hear the case. His attorneys argued that the sentence (10 years per image for the 20 images presumably leading to indictment) was disproportionate to the crime. I put this under Your Rights Online even though those rights really don't include possessing child pornography. However, what do Slashdotters think? Was the punishment appropriate for the crime? Think of the children!..but not in the way that this teacher apparently was."
Security

Submission + - Citibank: training users to be less secure

Llamedos writes: Citibank has redesigned their credit card website (Citicards.com) so that the login page is not an SSL encrypted page. Instead, they expect users to simply accept a little lock GIF file they put up themselves, and their assurance that the form is submitted via SSL. According to Citibank, "Your security is important to us. While the new Citicards.com has an "http" address and no lock icon displays in your browser, your personal information is still protected." Citibank's security page While other sites are moving to more security and more ways for the user to protect himself (e.g., Bank of America's SiteKey program), Citibank is tearing away at protections and trying to train users not to care about security.

Slashdot Top Deals

WARNING TO ALL PERSONNEL: Firings will continue until morale improves.

Working...