Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Please post your code so we can have a better understanding. Also which languages are we talking about? Commented Nov 4, 2014 at 21:38
  • I am working in android. But the design technique used should not depend on language. Commented Nov 5, 2014 at 7:20
  • 5
    Actually it's totally dependent on language, each language has a best way to share common code. You could use direct inheritance, module includes, delegation, high order functions, etc. Commented Nov 5, 2014 at 15:36
  • Agreeing with Filipe Giusti - it totally depends on the flexibility of the language (lambda, etc), and framework (UI bindings, and ability to programmatically change it at runtime). Note that some frameworks try to make presentations (views) as effortless as possible, which means these frameworks encourage people to use different presentations for things that are justifiably different, even if there are some overlaps in between. Commented May 4, 2015 at 22:56