3 ms·
Porting is always a pain in the ass, it's one of those things where you're much better off compiling to all the platforms that you think you care about as you g
by milesvp 9y ago
Porting is always a pain in the ass, it's one of those things where you're much better off compiling to all the platforms that you think you care about as you go, and make sure it's part of your continuous integration process, as well as your regression testing. If you do this for enough platforms, there's a good chance that when you want to port to a new device the code will be agnostic enough to work with much less tweaking.
This is also why people tend to use a framework like Unity, or a language like Haxe both of which allow you to write once, compile lots of places. I don't have much personal experience with either, but Haxe pops up in a lot of threads where indie developers hangout, and even AAA game devs seem to use Unity.
I suspect it's sort of the same problem that Java has, where it's write once, debug everywhere, but there are people who swear by them, and I suspect that once you get some experience you tend to avoid writing code that causes cross platform debugging headaches in the first place.