Slashdot is powered by your submissions, so send in your scoop


Forgot your password?
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Submission + - When is 'Unnecessary' Code Necessary? 1

theodp writes: Catching himself terminating statements with semicolons out of habit when none were needed, Rick Wicklin asks: Do you write unnecessary code? And while Wicklin tries to skip certain unnecessary statements, there are others that he finds, well, necessary. "Sometimes I include optional statements in my programs for clarity, readability, or to practice defensive programming," he explains. Wicklin's post is geared towards SAS programming, but the question of when to include technically-unnecessary code — e.g., variable declarations, superfluous punctuation, block constructs for single statements, values for optional parameters that are the defaults, debugging/validation statements, non-critical error handling, explicitly destroying objects that would otherwise be deleted on exit, labeled NEXT statements, full qualification of objects/methods, unneeded code from templates — is a language-agnostic one. So when-and-why do you find it necessary to include 'unnecessary' code in your programs? And are you tolerant of co-workers' unnecessary code choices, or do you sometimes go all Tabs-vs-Spaces (YouTube) on them?

Submission + - Globalization Considered Harmful

theodp writes: In the wake of Brexit, the NY Times reported earlier this month that President Obama will need his oratory powers to sell globalization. Asked to explain his strategy to reverse growing sentiment over globalization, President Obama responded, "The question is not whether or not there's going to be an international global economy. There is one." Still, the President acknowledged, "Ordinary people who have concerns about trade have a legitimate gripe about globalization, because the fact is that as the global economy is integrated, what we've seen are trend lines across the advanced economies of growing inequality and stagnant wages, and a smaller and smaller share of overall productivity and growth going to workers, and a larger portion going to the top 1 percent. And that's a real problem. Because if that continues, the social cohesion and political consensus needed for liberal market economies starts breaking down." The disconnect between theory and reality is at the heart of Ross Hartshorn's Globalization Considered Harmful. "There is a word for people who are opposed to the globalized economy, and it isn't 'xenophobe' or 'racist'," he writes. "It's 'protectionist'. For some time now, it's been thrown around as an insult, as if there were something wrong with protecting people. There was a similar trick played in the U.S. with the word 'liberal', where conservatives used it as an insult long enough that candidates on the left started to avoid describing themselves as liberal. But there is nothing wrong with protecting people, and there is everything wrong with globalization. Globalization isn't about respecting other people's culture, or treating everyone fairly regardless of their race. Globalization is about each country specializing in just one part of a normal, healthy, diverse economy, and then treating anyone whose talents aren't suited to that part of the economy, as if they were defective and in need a handout rather than a job. I think it is time for people who don't like what globalization has done, to start using the word 'protectionist' to describe themselves. I am a protectionist; I think there is nothing wrong with protecting people. The backlash against globalization isn't the problem. Globalization is the problem."

Submission + - Facebook Offers Innumerate Explanation For Its 1% Black Tech Workforce 1

theodp writes: Back in 2014, Gas Station Without Pumps patiently explained that while the case can clearly be made for female and black students being under-represented in Advanced Placement Computer Science exams, pointing to states with zero female or Black AP CS test takers is not the way to do it. Of the eleven states that had no Black test takers in 2013, GSWP explained: "The zero black AP CS test takers for the nine states can be fairly confidently attributed to the lack of AP CS test takers, and in Maine to the shortage of black students. For Alaska, the lack of black AP CS test takers is probably due to the shortage of AP CS test takers in the state." But that didn't stop Facebook from using the dramatic-but-statistically-fallacious arguments on Thursday to explain away its still-1% Black tech workforce. "It has become clear that at the most fundamental level, appropriate representation in technology or any other industry will depend upon more people having the opportunity to gain necessary skills through the public education system," said Facebook Global Director of Diversity Maxine Williams, who was tasked with explaining why Facebook's diversity efforts don't seem to be working (Facebook's tech workforce is 48% White, 46% Asian, 3% Hispanic, 1% Black, 2% Other). "Currently, only 1 in 4 US high schools teach computer science," Williams continued. "In 2015, seven states had fewer than 10 girls take the Advanced Placement Computer Science exam and no girls took the exam in three states. No Black people took the exam in nine states including Mississippi where about 50% of high school graduates are Black, and 18 states had fewer than 10 Hispanics take the exam with another five states having no Hispanic AP Computer Science (CS) test takers. This has to change." To give Facebook's innumerate explanation some context, according to 2015 AP Data, Mississippi had a grand total of five AP CS test takers. And in the three states where no girls took the exam — Montana, Mississippi, and Wyoming — boys respectively took zero, five, and three AP CS exams.

Comment 2012 Reality Show: Be The Next Microsoft Employee (Score 1) 62

"Be the Next Microsoft Employee" (2012): "The show will debut online on Tuesday morning. It pits four veteran SQL Server gurus, selected from more than 100 applicants, in a series of head-to-head technical challenges designed to test their ability to develop business-oriented database solutions. A new episode, each about 13 to 14 minutes long, will be rolled each week until the winner is revealed in the finale on Aug. 21. And yes, the person who prevails actually does win a job at Microsoft."

Comment Re:Augmented reality (Score 2) 62

Gavin Belson, HBO Silicon Valley: "It's weird - they always travel in groups of five, these programmers. There's always a tall skinny white guy, a short skinny Asian guy, a fat guy with a ponytail, some guy with crazy facial hair and then an East Indian guy. It's like they trade guys until they all have the right group."

Submission + - Video Explains Away Its Donors' Lack of Workforce Diversity

theodp writes: "This is a computer science classroom," begins Equity in CS Education (YouTube), a recently-posted video from tech-backed "Notice what this classroom looks like and who is in it. There are far more males than females and there are few Black or Hispanic students." Cut from table of all-male middle-school coders to table of all-male young adult tech company coders (flickr). "This is a typical tech company," the video explains. "We see the lack of diversity that starts in the classroom translates here to a lack of diversity in the modern workforce." But does that really explain why Google's tech workforce is still only 1% Black if African Americans make up about 10% of CS degrees nationally? At the end, the video links to a document with 9 Tips for Promoting Equity in the Classroom (the White House is counting on to train 41,000 K-12 CS teachers by year-end). Kids should be delighted by Tip #5: "Cut back on homework — Keep in mind that instead of closing the achievement gap in your classroom, homework tends to separate students further."

Submission + - Google Gives Diversity Update, 2015 EEO-1 Report Still MIA

theodp writes: Responding to an appeal from Rev. Jesse Jackson (YouTube) at Google's 2014 Annual Meeting for the search giant and other tech companies to "please publicly release your EEO-1 report that identifies the race and gender characteristics of your workforce," Google Chief Legal Officer David Drummond responded (YouTube), "Many of the companies in the Valley have been reluctant to divulge that [EEO-1] data, including Google, and quite frankly, I think we've come to the conclusion that we're wrong about that, and we should be disclosing that data." So, since Google recently announced that "today we’re updating with our 2015 demographics," one might expect to be able to find Google's 2015 EEO-1 filing there (Apple and Microsoft released theirs in January), right? Wrong. The fine print on the page ("**See our EEO-1 report for more information") still links to Google's 2014 EEO-1 (although Google's 2015 EEO-1 numbers were shared with Reuters). The Google Diversity site calls visitors' attention to "hiring above our current representation of Blacks and Hispanics" (e.g., "4% of new hires in 2015 were Black, compared to 2% of our current population") instead of overall numbers (e.g., clicking a button reveals a chart that shows Blacks still make up only 1% of Google's tech workforce). Hey, it's all in how you spin it. So as not to single out Google, it does not appear that the move-fast-and-break-things folks at Facebook have yet found the time to post their 2015 EEO-1 survey, which was due on October 30, 2015.

Submission + - Citing 500K Open IT Jobs, Clinton Calls for CS for 55 Million K-12 Students

theodp writes: "Consider this," said Hillary Clinton Tuesday in an address to the National Education Association, "there are more than half a million open jobs that require computing skills across the country and in every major industry. But the majority of schools in the United States do not offer computer science. It isn’t just that there’s a shortage of computer science teachers. It’s that we haven’t made a commitment to do that. But I have. I'm going to prioritize — give our educators the time and the resources they need to learn how to integrate digital tools into the curriculum" (YouTube, transcript). Coincidentally, at last month's Clinton Global Initiative America, the published agenda for an invite-only STEM Education Working Group — which included representatives from the National Science Foundation, Google, Microsoft (TEALS), Tata Consultancy Services, the U.S. Dept. of Education, White House, and educators (university, public and charter K-12, Teach for America) — called for participants to focus on 'actionable strategies' to take computer science education to scale. According to the U.S. Dept. of Education, about 50.1 million students attend public elementary and secondary school, and an additional 4.9 million students attend private schools.

Submission + - Will Google Project Bloks Succeed Where Microsoft .NET Gadgeteer Stumbled?

theodp writes: Earlier this week, Slashdot reported on Google Research's launch of Project Bloks, "a development platform for tangible programming for children." About Project Bloks explains: "This project kicked off in 2013, when a small group of interaction designers and programmers in Google Creative Lab got together. We wanted to help get the powerful ideas of computational thinking into the hands of younger kids by building on the long-standing academic research into using tangibles for learning." Coincidentally, 2013 was the same year that Microsoft Research positioned.NET Gadgeteer as "a new platform for K-12 computer science education" (Slashdot first reported on .NET Gadgeteer way back in 2011). A SIGCSE '13 paper describing Gadgeteer noted its tangible nature promotes computational thinking in kids. Conceptually they're not all that different — nor are the sample projects. With Gadgeteer, Microsoft explained, a kid could put together components to sound a buzzer when the temperature of drink changed. And now with Project Bloks, Google explains, a kid could put together components to switch on a light when the temperature of the air changes. So, will a Googlier take on tangible programming be a bigger hit with kids than Microsoft .NET Gadgeteer?

Submission + - Microsoft President Brad Smith: Computer Science is Space Race of Today

theodp writes: Q. How is K-12 computer science like the Cold War? A. It could use a Sputnik moment, at least that's the gist of an op-ed penned by Senator Jerry Moran (R., KS) and Microsoft President Brad Smith. From the article: "In the wake of the Soviet Union’s 1957 Sputnik launch, President Eisenhower confronted the reality that America’s educational standards were holding back the country’s opportunity to compete on a global technological scale. He responded and called for support of math and science, which resulted in the National Defense Education Act of 1958 and helped send the country to the moon by the end of the next decade. It also created the educational foundation for a new generation of technology, leadership and prosperity. Today we face a similar challenge as the United States competes with nations across the globe in the indispensable field of computer science. To be up to the task, we must do a better job preparing our students for tomorrow’s jobs." Smith is also a Board member of tech-bankrolled, which invoked Sputnik in its 2014 Senate testimony ("learning computer science is this generation’s Sputnik moment") as it called for "comprehensive immigration reform efforts that tie H-1B visa fees to a new STEM education support the teaching and learning of more computer science," nicely echoing Microsoft's National Talent Strategy. Tying the lack of K-12 CS education to the need for tech visas is a time-honored tradition of sorts for Microsoft and politicians. As early as 2004, Bill Gates argued that CS education needed its own Sputnik moment, a sentiment shared by Senator Hillary Clinton in 2007 as she and fellow Senators listened to Gates make the case for more H-1B visas as he lamented the lack of CS-savvy U.S. high school students.

Submission + - Wants to be Your Tech President

theodp writes: If there was any lingering doubt as to tech's favored presidential candidate, writes USA Today's Jon Swartz, Hillary Clinton put an end to that Tuesday with a tech plan that reads like a Silicon Valley wish list. It calls for connecting every U.S. household to high-speed Internet by 2020, reducing regulatory barriers and supporting Net neutrality rules, proposes investments in computer science and engineering education ("engage the private sector and nonprofits to train up to 50,000 computer science teachers in the next decade"), expansion of 5G mobile data, making inexpensive Wi-Fi available at more airports and train stations, and stapling green cards on the diplomas of foreign-born students earning STEM degrees.

Submission + - Apple's Free Coding Classes are a Sales Engagement

theodp writes: "Apple's gotten into the game of teaching kids how to program," writes Alex Handy in Apple’s free coding classes are a sales engagement. "Last week at WWDC, the company announced Swift Playgrounds, along with the intention to teach programming classes at its Apple retail stores for free. And I’m here to tell you this is a terrible approach, a bad idea, and generally little more than a marketing plan." And it's not just the $600 cost-of-entry iPad requirement that rubs Handy the wrong way. "Apple’s Swift Playgrounds is, frankly, a terrible way to teach kids how to code," Handy adds. "It’s teaching a little-known language that is only useful on one platform, and the Playgrounds undeniably favor drag-and-drop programming. And even if a kid does graduate and learn how to use Swift fully, they’re then tied into Apple’s platform." Hey, if he's upset now, wait'll Handy checks out Lesson 9 in the new Swift Playgrounds Teacher Guide, which calls for middle schoolers to learn the concept of parameters by playing a 35-40 minutes game of Siri Says!

Slashdot Top Deals

Nothing will ever be attempted if all possible objections must be first overcome. -- Dr. Johnson