09-22-2012 03:48 PM
Hello fellow beginner developers,
today I finally started messing around with C/C++ development for BlackBerry and it's quite exciting. It's been almost 10 years since I did C/C++ development. Good old times.
As any beginner (n00b) I was stuck with some pretty basic stuff which is SO obvious that is not clearly documented. On the split page, there's a small "tablet" logo and a "bb10" logo on the C/C++ Native box and just the "bb10" logo on Cascades. How could I miss that?! Anyway...
My goal is to make an app that runs on Playbook and on Dev Alpha. Here's an extremely basic info for understanding your development environment:
That's it! As I said: extremely basic info.
Now comes the interesting part which is not so basic: what would be the best approach nowadays to create and app that runs on both devices? My general idea is to create three separete projects:
Please leave your thoughts on the topic and help other beginners like me figure out this brave old world.
09-22-2012 11:15 PM
Even if you are targetting only one platform, it's still a good idea to separate your logic from your UI. As your app matures you'll notice that you are repeating the same core logic. It makes sense to abstract htat code to be re-usable. In general, a single piece of code should do only one thing, and it should be the only piece of code that does that.
When you go to port from one platform/form factor/framework to another, you'll be able to re-use the stuff you had already written and build only those new parts that are really different.