Programming

A Dice Talent Community

Programming Talent Community

A community for developers and programmers at all levels. We’ll explore available development tools, best practices, as well as mobile and enterprise deployment.

Click here for information about programming fundamentals

Following this community adds its articles and discussions to My Tech Feed.

THIS DICE TALENT COMMUNITY SPONSORED BY:

Belong With Innovative Thinkers

CSC offers challenging professional opportunities that will draw on your skills and allow you to identify and achieve your career goals in a supportive environment. CSC also offers many avenues to mastering your chosen profession with exciting work assignments, training opportunities and exposure to new business ideas, knowledge and people. At CSC, you can have a voice in your job, take control of your career path and contribute to the company’s overall operation and growth. Count on us for excellent career opportunities.

The Latest From Dice

Python 3 String-Processing Causing Problems?

Python
Widely known as a general-purpose programming language, Python is excellent at string handling—but a few things have changed between Python 2 and Python 3. This article is a reminder of what Python strings can (still) do for you, as well as a look at what you need to know about Python 3 strings. We discussed some of these Python 3 changes in a previous article. Python 3 relies on Unicode Characters, more specifically UTF-8 as the default source encoding. This… continue…

Building Apps in Swift: Using Storyboards

1
In our previous article on building apps with Apple’s Swift, we demonstrated how to use view controllers and views in code to craft a simple app. Before we begin with this next lesson, using storyboards to build an app in Swift, it’s worth revisiting that first piece. (The code that accompanies the piece is stored on SourceForge as “First Example.zip.”) Remember that view controllers in Swift manage two roles: they controls views on a page or part of a page,… continue…

A Look at 5 Free Python Editors

PyScripter
Python programming can be done from the command line, but an IDE makes life so much easier. With so many options out there, which one should you use? To help you decide, I’ve looked at five Python editors (all free). Although Python has been more of a Linux programming language, the last few years have seen its increasing use on Windows, so many of the five are cross-platform. They are: Eclipse plus PyDev and other plugins PyScripter Eric Python IDE… continue…

How to Build Apps in Swift

app image 1
Earlier this year, Apple executives unveiled Swift, which is meant to eventually replace Objective-C as the programming language of choice for Macs and iOS devices. While Objective-C remains popular, developers frequently complain about how difficult it is to use; Swift’s features will supposedly eliminate at least some of those issues. Despite its ease of use, developers will still need to spend some time learning how the language works. This is the first of a few articles that show how to… continue…

Unpopular Programming Languages That Are Still Lucrative

lenetstan Shutterstock
In a previous article, I discussed the best programming languages to learn over the next year. Most of those were popular languages such as C#, JavaScript, PHP, and Swift. (I also did a follow-up that sang the virtues of Objective-C and Python.) But that’s not the final story on languages: Programmers can also benefit from learning other, less popular languages that could end up paying off big—provided the programmers who pursue them play their proverbial cards right. And as with… continue…

Slashdot: News for Nerds

Mark Zuckerberg And John Doerr Donate $1M To Expand The Hour Of Code Campaign

posted 15 hours | from theodp

money 24

theodp writes Techcrunch reports that Mark Zuckerberg has donated $500K to expand the Hour of Code campaign, which aims to reach 100 million students this year with its learn-to-code tutorials, including its top-featured tutorial starring Zuckerberg (video). Techcrunch adds that Zuckerberg's donation will be matched by fellow tutorial team teacher Bill Gates (video), Microsoft, Reid Hoffman, Salesforce, Google, and others. Zuck and Gates appear to have a sizable captive audience — a Code.org District Partnership Model brochure on the code-or-no-HS-diploma-for-you Chicago Public Schools' website calls for partner districts to "hold a district-wide Hour of Code event each year" for three years.

Getting 'Showdown' To 90 FPS In UE4 On Oculus Rift

posted 1 day | from anonymous coward

games 29

An anonymous reader writes Oculus has repeatedly tapped Epic Games to whip up demos to show off new iterations of Oculus Rift VR headset hardware. The latest demo, built in UE4, is 'Showdown', an action-packed scene of slow motion explosions, bullets, and debris. The challenge? Oculus asked Epic to make it run at 90 FPS to match the 90 Hz refresh rate of the latest Oculus Rift 'Crescent Bay' prototype. At the Oculus Connect conference, two of the developers from the team that created the demo share the tricks and tools they used to hit that target on a single GPU.

Google Announces Project Ara Developer Conference, Shows Off First Prototype

posted 2 days | from anonymous coward

design 63

An anonymous reader writes Google today announced it will be hosting the second iteration of its Project Ara Module Developers Conference for its modular device project early next year. The first event will be in Mountain View on January 14, 2015, with satellite locations at Google offices in New York City, Buenos Aires, and London. The same agenda will be repeated in Singapore on January 21, 2015, with satellite locations at Google offices in Bangalore, Tokyo, Taipei, and Shanghai. The company also released a video showing off the first prototype from Project Ara. Until now, all we've seen so far are industrial design models. This one actually boots up.

It's Official: HTML5 Is a W3C Standard

posted 3 days | from rjmarvin

html5 113

rjmarvin (3001897) writes The Worldwide Web Consortium today has elevated the HTML5 specification to 'recommendation' status , giving it the group's highest level of endorsement, which is akin to becoming a standard. The W3C also introduced Application Foundations with the announcement of the HTML5 recommendation to aid developers in writing Web applications, and said the organization is working with patents holders of the H.264 codec to agree on a baseline royalty-free interoperability level commitment.

Here's Why Apple Rejected Your iOS App

posted 4 days | from nerval's lobster

apple 145

Nerval's Lobster writes Everybody knows that Apple runs a tight ship when it comes to approving iOS apps for its App Store, rejecting software because it features porn, allows gambling, installs types of executable code, etc. But Apple also denies apps for some pretty esoteric reasons, many of which are only just coming to light. Want to have an App that uses GPS to automatically control a real-world aircraft or automobile? Sorry, that's not allowed, presumably because Apple doesn't want iOS to serve as a drone controller. (Imagine the liability issues.) Also, apps that report your location to emergency services are forbidden, as well as any that misspell Apple product names ("iTunz" will never make it through, no matter how much you beg). Even if Apple's not sharing the exact reason why it just rejected your app from its store (what the heck does "Not enough lasting value" mean?), you can check out Apple's own page on the top reasons for iOS app rejections."

Solving the Mystery of Declining Female CS Enrollment

posted 5 days | from theodp

cs 604

theodp writes After an NPR podcast fingered the marketing of computers to boys as the culprit behind the declining percentages of women in undergraduate CS curricula since 1984 (a theory seconded by Smithsonian mag), some are concluding that NPR got the wrong guy. Calling 'When Women Stopped Coding' quite engaging, but long on Political Correctness and short on real evidence, UC Davis CS Prof Norm Matloff concedes a sexist element, but largely ascribes the gender lopsidedness to economics. "That women are more practical than men, and that the well-publicized drastic swings in the CS labor market are offputting to women more than men," writes Matloff, and "was confirmed by a 2008 survey in the Communications of the ACM" (related charts of U.S. unemployment rates and Federal R&D spending in the '80s). Looking at the raw numbers of female CS grads instead of percentages, suggests there wasn't a sudden and unexpected disappearance of a generation of women coders, but rather a dilution in their percentages as women's growth in undergrad CS ranks was far outpaced by men, including a boom around the time of the dot-com boom/bust.

OpenSUSE Factory To Merge With Tumbleweed

posted 5 days | from sfcrazy

suse 24

sfcrazy writes Factory and Tumbleweed will merge to become a single release. The release will follow the development cycle of Factory but take the more appealing name, Tumbleweed. Commenting on the new development Greg Kroah-Hartman said, “The changes to the Factory release model have changed it from being an unstable development codebase into the type of rolling release I set out to create when starting openSUSE Tumbleweed. I’m very happy to see these two rolling releases coming together under the name Tumbleweed, and am looking forward to watching how it develops in the future.” Factory won't disappear; It will become a "development project" for creating the "user-ready" Tumbleweed."

Tetris Is Hard To Test

posted 6 days | from jackdw

testing 169

New submitter JackDW writes: Tetris is one of the best-known computer games ever made. It's easy to play but hard to master, and it's based on a NP-hard problem. But that's not all that's difficult about it. Though it's simple enough to be implemented in one line of BBC BASIC, it's complex enough to be really hard to thoroughly test.

It may seem like you can test everything in Tetris just by playing it for a few minutes, but this is very unlikely! As I explain in this article, the game is filled with special cases that rarely occur in normal play, and these can only be easily found with the help of a coverage tool.

Building All the Major Open-Source Web Browsers

posted 6 days | from anonymous coward

browsers 106

An anonymous reader writes: Cristophe de Dinechin, long-time software developer, has an interesting article on the processes involved in building the major browsers. From the article:

"Mozilla Firefox, Chromium (the open-source variant of Chrome) and WebKit (the basis for Safari) are all great examples of open-source software. The Qt project has a simple webkit-based web browser in their examples. So that's at least four different open-source web browsers to choose from. But what does it take to actually build them? The TL;DR answer is that these are complex pieces of software, each of them with rather idiosyncratic build systems, and that you should consider 100GB of disk space to build all the browsers, a few hours of download, and be prepared to learn lots of new, rather specific tools."

New Oculus SDK Adds Experimental Linux Support and Unity Free For Rift Headset

posted 6 days | from anonymous coward

sdk 24

An anonymous reader writes: Oculus, creator of the Rift VR headset, has released a new version of their SDK which brings with it long sought-after support for Linux, which the company says is "experimental." Linux support was previously unavailable since the launch of the company's second development kit, the DK2. The latest SDK update also adds support for Unity Free, the non-commercial version of the popular game authoring engine. Previously, Unity developers needed the Pro version—costing $1,500 or $75/month—to create experiences for the Oculus Rift.