David Bolton

David Bolton was a game developer and a past game designer at MicroProse. He now works as an independent developer creating mobile and desktop applications and writes on programming for About.com and News.dice.com

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…

Here’s Why Apple Rejected Your iOS App

iOS Screen
After six years, do you think the number of submissions to the App Store has stayed level, climbed, or fallen? As demonstrated by this chart of the App Store’s metrics (hat tip to Pocket Gamer), the number of submissions per day continues to rise, likely driven by a combination of new apps and updates of existing apps. (There was also a surge over the summer as developers prepared for the launch of iOS 8, the latest version of Apple’s mobile… 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…

Passing Functions as Parameters

Passing a Function as Parameter in C#
When I first started programming in the late 1970s, I was heavily into Pascal and the concept of passing an address as a parameter was just unheard of outside of academic circles. Procedural programming treated functions as something that were called, not passed around. Had I known C then—which had been around since the early 1970s—I might have been more aware of function pointers. If you don’t know C that well, a pointer is a variable that holds the memory… continue…

Creating Random Access Text in C#

Contents of the Two Files
Back in April I looked at disk folders as a possible alternative to NoSQL or using a relational DB. My conclusion wasn’t encouraging—I was concerned about poor performance, especially on Linux. The use case I examined was for a server that had from 100,000 to 1 million users. I wanted to store and retrieve text files for any user. Those files could vary in length from a few bytes to a few KB. Back in the dark ages—before the Web… continue…

6 Developer Tips for Better Disaster Recovery

Blue Screen of Death
You go through life thinking that it won’t happen to you, but someday it will: Your development PC suddenly goes from being state-of-the-art to having the computing power of a brick. How quickly you get back into action depends upon your budget and preparedness. Over the recent July 4 weekend it happened to me. The disaster was partially of my own making. Thanks to a slightly dodgy set of RAM—both Ubuntu and Windows 7 memory tests agreed on this—I was… continue…

Is the Time Right to Learn Python 3?

Python Logo
Python is an excellent and very popular programming language, considered one of the best-designed. It has a simple, clear syntax and runs very fast (faster if you compile it with CPython), but there is one slight problem facing anyone new to it: Which version should you learn? There are two versions of Python—Python 2 and Python 3. Python 2.7 is the last of the 2.* series (currently up to 2.7.7) and has been the recommended version to learn for ages.… continue…

4 Python Frameworks You May Not Know About

Python Logo
The phrase “Python frameworks” usually refers to Web frameworks, collections of software that aid development of websites and services. But there are a few frameworks that aren’t for Web development, and some that you might not have come across. Say hi to QuePY, Cement, Carrot and Charm. Click here to find Python jobs. QuePy Ever heard of Freebase or DBPedia These are very large collections of free structured data. DBPedia is where structured data from Wikipedia is held, while Freebase… continue…