title: J2ME - BlackBerry - design patterns
body: <p>There are several publications about patterns in j2me:<br>
  <a href="http://www.ibm.com/developerworks/wireless/library/wi-arch6/" rel="nofollow noreferrer">Architectural manifesto: The MVC design pattern in MIDP development by Mikko Kontio</a><br>
  <a href="http://proceedings.informingscience.org/InSITE2008/IISITv5p623-643Narsoo507.pdf" rel="nofollow noreferrer">Identification of Design Patterns for Mobile Services with J2ME by J. Narsoo and N. Mohamudally</a><br>
  <a href="http://www.javaworld.com/javaworld/jw-12-2002/jw-1213-j2medesign.html" rel="nofollow noreferrer">Big designs for small devices by By Ben Hui</a>  </p>
  
  <p>Patterns I use sometimes:<br>
  <strong>MVC</strong> - to separate UI from controller classes and data structures, may be useful for code reuse on different platforms<br>
  <strong>Command</strong> - to reuse code in user interaction and app work-flow<br>
  <strong>Interface</strong> - to simplify several components use (ex different types of connections or data storage) and component testing (see <a href="https://stackoverflow.com/questions/920303/blackberry-change-latitude-and-longitude-on-the-device-to-test-app/943305#943305">Blackberry - change latitude and longitude on the device to test app</a>)  </p>
  
  <p>Also <strong>Observer</strong> may be used for UI update tasks(see <a href="https://stackoverflow.com/questions/2138100/need-help-with-java-design-of-http-requester">sample with HttpRequest</a>)</p>
  
  <p>What are your favorite patterns in J2ME/BlackBerry?</p>