Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Education

AP Test's Recursion Examples: An Exercise In Awkwardness 252

theodp writes "Yet another example of how AP exams are loaded with poor coding practices," quipped Alfred Thompson, referring to a recursive code example that prints the numbers 0 to 6, which was posted to the (closed) AP Computer Science Facebook group. "We are often forced to use code examples that are not ideal coding practice," Thompson notes. "We do that to make things clear and to demonstrate specific concepts in a sort of isolation that we might not normally use. We seem to do that a lot with recursion because the examples that require recursion tend to be fairly complex." So, while asking students to use recursion instead of a loop to print '0123456' serves the purpose of teaching recursion, Thompson opines that it's also a poor example of code practice. "Someone raised on functional programming where recursion is a pretty standard way of doing looping might disagree of course," he adds. "There is a saying that when all you have is a hammer all your problems look like nails. This seems, in a way, to be the case with recursion and loops. If your first tool of choice (or what you have learned first) for iteration is loops you tend not to think of recursion as a solution. Similarly if you start with recursion (as is common with functional programming) you are a lot more likely to look at recursion as a tool for iteration." So, do you tend to embrace or eschew recursion in your programming?
Bug

Xenon Flashes Can Make New Raspberry Pi 2 Freeze and Reboot 192

An anonymous reader writes Unfortunately for Raspberry Pi 2 owners who are trying to photograph their devices, ... the Raspberry Pi 2 has been found to be Xenon flash sensitive. Any camera with a Xenon flash aimed at the device is causing the device to freeze for a few seconds before rebooting. The forum thread about the bug is an interesting play-by-play of how the problem was narrowed down.
Security

Employees In Swedish Office Complex Volunteer For RFID Implants For Access 168

Lucas123 writes A Swedish office building is enabling corporate tenants to implant RFID chips into employee's hands in order to gain access through security doors and use services such as photocopiers. The employees working at Epicenter, a 15,000-square-foot building in Stockholm, can even pay for lunch with a swipe of their hand. Hannes Sjöblad, founder of Bionyfiken, a Swedish association of Biohackers, said Epicenter is not alone in a movement to experiment with uses for implanted chips that use RFID/NFC technology. There are also several other offices, companies, gyms and education institutions in Stockholm where people access the facilities with implanted chips. Bionyfiken just began a nationwide study using volunteers implanted with RFID/NFC. "It's a small, but indeed fast-growing, fraction which has chosen to try it out." The goal of the Bionyfiken project is to create a user community of at least 100 people with RFID implants who experiment with and help develop possible uses. But, not everyone is convinced it's a good idea.

John Kindervag, a principal security and privacy analyst at Forrester Research, said RFID/NFC chip implants are simply "scary" and pose a major threat to privacy and security. The fact that the NFC can't be shielded like a fob or chip in a credit card can with a sleeve means it can be activated without the user's knowledge, and information can be accessed. "I think it's pretty scary that people would want to do that [implant chips]," Kindervag said.
Crime

With Insider Help, ID Theft Ring Stole $700,000 In Apple Gift Cards 57

itwbennett writes The Manhattan District Attorney's office has indicted five people for using personal information stolen from around 200 people to fund the purchase of hundreds of thousands of dollars in Apple gift cards, which in turn were used to buy Apple products. "Using stolen information to purchase Apple products is one of the most common schemes employed by cybercrime and identity theft rings today," District Attorney Cyrus Vance said in a statement. "We see in case after case how all it takes is single insider at a company—in this instance, allegedly, a receptionist in a dentists' office—to set an identity theft ring in motion, which then tries to monetize the stolen information by purchasing Apple goods for resale or personal use," he said.
Transportation

Pilot's Selfies Could Have Caused Deadly Air Crash 113

alphadogg writes: A deadly air crash that killed a pilot and passenger in Colorado last year was likely due to a loss of spatial awareness brought on in part by taking of selfies while in flight, the National Transportation Safety Board has concluded. An examination of the aircraft revealed no apparent problems that would have caused the accident so, based on the previous patterns of behavior, the NTSB concluded that "it is likely that cell phone use during the accident flight distracted the pilot and contributed to the development of spatial disorientation and subsequent loss of control."
Biotech

Lowering the Cost of Biofuel Production 56

sciencehabit writes: 2014 was a banner year for making automotive fuel from nonfood crops, with a series of major new production plants opening in the United States. However, producing this so-called cellulosic ethanol remains considerably more expensive than gasoline. So researchers are always on the lookout for new ways to trim costs. Now they have a new lead: a microbe that can use abundant nitrogen gas as the fertilizer it needs to produce ethanol from plants. The discovery (abstract) is "a major commercial accomplishment for biofuel production," says microbiologist Steven Ricke.
Businesses

Massive Layoff Underway At IBM 331

Tekla Perry writes: Project Chrome, a massive layoff that IBM is pretending is not a massive layoff, is underway. At more than 100,000 people, it is projected to be the largest mass layoff by any U.S. corporation in at least 20 years. Alliance@IBM, the IBM employees' union, says it has so far collected reports of 5000 jobs eliminated, but those are just numbers of those getting official layoff notices. According to anecdotal reports, IBM appears to be abusing the performance appraisal system to cut additional employees without officially laying them off.
Moon

FAA Could Extend Property Rights On the Moon Through Regulation 283

MarkWhittington writes When the Outer Space Treaty which, among other things, forbade claims of national sovereignty on other worlds, was signed and ratified by the United States in 1967, little thought was given to the idea of private property rights. Now, with companies like Moon Express and Bigelow Aerospace contemplating private lunar operations, that question has become a concern. According to Reuters, the FAA may have discovered a way to enforce private property rights on the moon without, it is hoped, violating the Outer Space Treaty. The idea is to extend the FAA's current launch licensing authority to cover commercial activities on the moon. The agency would license, for example, a helium 3 mining facility, giving the company running it control over it and as much adjoining territory as necessary to run the operation. The size of that territory, for which a particular company would hold property and mineral rights, could be considerable.
Medicine

New Jersey Gov. Christie: Parents Should Have Choice In Vaccinations 740

kwyjibo87 writes: New Jersey Governor and self-appointed public health expert Chris Christie weighed in on the public debate over whether or not parents should have a choice in vaccinating their children, telling reporters in the U.K., "I also understand that parents need to have some measure of choice in things as well, so that's the balance that the government has to decide." He added, "Not every vaccine is created equal and not every disease type is as great a public health threat as others." These statements from Gov. Christie follow President Obama commenting in an interview with NBC: "There is every reason to get vaccinated — there aren't reasons to not."

Gov. Christie quickly backpedaled on his "vaccine choice" comments, with the Governor's office stating, "The Governor believes vaccines are an important public health protection and with a disease like measles there is no question kids should be vaccinated," but amending: "At the same time different states require different degrees of vaccination, which is why he was calling for balance in which ones government should mandate."
Education

WA Bill Takes Aim at Boys' Dominance In Computer Classes 779

theodp writes Boys' over-representation in K-12 computer classes has perplexed educators for 30+ years. Now, following on the heels of Code.org's and Google's attempts to change the game with boys-don't-count gender-based CS teacher funding schemes, Washington State lawmakers have introduced House Bill 1813, legislation that requires schools seeking K-12 computer education funding to commit to preventing boys from ruling the computer class roost. Computer science and education grant recipients, HB 1813 explains, "must demonstrate engaged and committed leadership in support of introducing historically underrepresented students [including girls, low-income students, and minority students]" and "demonstrate a plan to engage historically underrepresented students with computer science." Calling it "a bold new bill that we hope more states will follow," corporate and tech billionaire-backed Code.org tweeted its support for the bill.
Open Source

Perl 6 In Time For Next Christmas? 192

An anonymous reader writes Larry Wall has reportedly announced at Fosdem that "Perl 6 Developers will attempt to make a development release of Version 1.0 of Perl 6.0 in time for his 61st Birthday this year and a Version 1.0 release by Christmas 2015." From the article: "There is going to be the inevitable discussions, comments and probably some mileage from detractors to come. However ever were it so, for us in the Perl Community these are quite exciting times. We have two strong languages and a strong community, I think there is a lot that binds us together so here's looking forward to Christmas."

Slashdot Top Deals

Mystics always hope that science will some day overtake them. -- Booth Tarkington

Working...