Which features of programming languages, such as C++ or Java, can be problematic when programming mobile devices? What kinds of coding rules or idioms could be given for a developer to ease the development, assuming that for instance memory usage and resource management are to be controlled better?