Programming language trends as shown by job postings

The idea came from recognizing that working in tech means working in a dynamic and fast-paced environment. Things are always changing and the ability to keep learning can make a difference in your career. In fact, the Pragmatic Programmer book recommends learning at least one new language every year. So with this in mind, I […]

Running MonoGame on Android Wear

Getting MonoGame projects to run on Android Wear requires a different setup than normal solutions, from emulator to asset settings. First problem I ran into looked like below and was easily enough solved by activating the “Use Host GPU” option when creating a new emulator image. OpenTK.Platform.Android.EglException: Failed to find a valid GraphicsMode configuration Since […]

Memory management in mobile apps

Throughout it’s lifetime, an app is allowed to make use of the internal memory, as object instances obtain parts of it for temporary use and then return it. When an objects doesn’t use the memory anymore but refuse to let it go, a memory leak is created.   Common causes of memory leaks In the […]

Unit testing caveats

There is much controversy regarding test driven development. People do not seem to settle on the time trade-off, the London vs. State school, TDD vs BDD and the list could go on. But before diving into all of these, my first reports from the tranches of unit testing are as follows. Behavior depending on date […]

Get started with MonoGame in 5 easy steps

MonoGame is the little brother of Mono: a small and cool platform for making (mostly) 2D games. It’s an open source implementation of XNA and is compatible with iOS, Android, Mac, MacOS, Linux and Windows 8 (support for more platforms is coming). If however, more complex and 3D games is your thing, you can head […]

Working with WebViews in Xamarin.Android

Showing a webpage inside a Xamarin.Android app can be done using a WebView. Here are some tips. Using Directives Pop science says that more choices don’t bring more happiness. Well, yeah. Turns out you have two options for creating an URL. This was half of my problem. Initially, I was referencing the System library, which […]

An easier way of writing conditional code

I love attending code retreats. It’s an great way to learn new things, through the people you pair with and the exercises you practice. And since keeping up with the newest thing is essential to a programmer, what better way to expand your knowledge is there than to let your creativity roam writing code in […]

Setting the active configuration in Xamarin Studio

Building cross-platform applications in Xamarin Studio, you often need to be working on one single platform at a given moment. Since Xamarin Studio allows having both iOS and Android projects under the same solution, when building or deploying, they all get compiled. This is not very efficient, since you only want to deploy one platform […]

TeaTimer for Mac

This article will cover how to build a Mac application with Mono.Mac, making use of XCode interface builder and NSComboBoxDataSource. TeaTimer will let us chose a tea variety and it will the time how long it will take to make it. Open Xamarin studio and start a new project. Select a Mono.Mac application. Open the MainWindow.xib, […]

iOS7 Image Gallery

This recipe is written for the Xamarin iOS 7 Cook-off. The source code can be found here. iOS 7 introduces a lot of new features. We will explore the gravity and collision behaviors the OS provides natively with its newest version, building a kaleidoscope image gallery. Start by creating a new Xamarin.iOS project. Go to […]