Yearly Archives: 2012

I’ve been asked this many times in the past two days. The WiiU supports transfering all the data from your Wii to itself (with cute Pikmin carrying all the data). The problem is that all the data is deleted from the Wii, nearly restoring it to a factory state. This can be quite undesirable especially for those who intend to keep using their Wii for other reasons. This requires a Wii already running homebrew.

Not entirely sure when Google started to include the GCC 4.6 sources. I have first noticed it at the current NDK r8 when running the download-toolchain-sources.sh

You have to compile it yourself. There are instructions out there but now that google is including it things have gotten easier. These instructions only apply to Linux. Specifically tested in Ubuntu 12.04.

Similar steps can be applied to MAC OS X however setting up the development environment is far more annoying. I have a feeling this might be near impossible to pull off in Windows without jumping through major hoops.

When I used to TA for the University of Saskatchewan in our intro C/C++ first year classes I used to try and challenge the students sometimes. When the assignment rolled out on sorting the students were instructed to swap two variables. As brand new programmers sometimes something as simple as swapping two variables doesn’t leap out at you. Of course we just teach them that you need a temp variable and mission accomplished. Well I always offered bonus marks for anyone who could derive the variable swap with no temp variable. Years pass, no student ever got back to me with the answer ( they obviously didn’t have Google Fu ). I find myself writing a routine today that required a swap. I still remembered the trick:

Regardless of personal preference you will often be forced to adapt to the coding style of someone else. Generally this will be an enforced style at the company you work for. Some see this as a minor annoyance. I personally see this as important and practical. It helps maintain code readability, this is important for new comers or looking back at your own code. By making code more readable you also make it more understandable, this makes maintenance even easier. Decision about style have more impact than arguments like whether braces should be on the same line.

The coding preference which most closely matched my habits turned out to be Google’s C++ Coding Guide. This made most sense to me as I learned programming starting with C then C++. In reality I started coding in BASIC on a Commodore 64 but that is a different story.

I find this style guide has a lot of good habits one can derive from it.