/* Code Musings */

Archive for the ‘Coding’ Category

Interprocess Communication in BB10

One of the most recent features in BB10 was the addition of Headless Services. A headless application (or service, as it’s called) is one without a graphical interface, or head, for the user to interact with. It’s generally a slim body of code that runs in the background as an event handler on behalf of […]

Hackathon, then Limbo

After the hackathon, I eagerly submitted my application to BlackBerry world. It was accepted quickly and I was greeted with the option to publish my application for public consumption. However, before doing that, I decided to apply for the ‘Built For Blackberry’ certification and use the results of their testing to gauge whether the application […]

BlackBerry Hackathon

Last weekend, BlackBerry had an internal hackathon for employees interested in developing applications for the upcoming Q10. The prize for submitting an application was a red, limited edition Z10. For this event, BlackBerry was willing to waive the restrictive intellectual property policy that once governed employee submissions. Thus, all employees were given the ability to […]

Variable Arguments

Logging, printing, debugging; using printf(), and it’s sibling functions, is much like using a universal remote. It’s power comes from the fact that you can specify any amount of parameters to be printed. This is due to the usage of a variadic parameter as represented by an ellipsis (…). Now, with power comes a great […]

Unit Testing: Singletons

Singletons. There is a time and place that a developer can use the Singleton Pattern, but in my experience these situations are rare. When I first learned about this design pattern, I, like many novice developers, decided to use it everywhere. The very first incarnation of my game engine used it in a variety of […]

Working with the Blackberry Platform Services (BPS), Part 3

In this installment, I’d like to touch upon the new sensor API. This is only available in the NDK 2.0 and later and it replaced the old accelerometer API. Through this API, a developer would be able to query for the accelerometer, magnetometer, gyroscope (if there is one), temperature, light, etc. The list of supported […]