“Everything is design. Everything!”

 

designAt least that’s what Paul Rand said.design

Even adding gif-animations (Please don’t pronounce it as dschiff) is design.

Anyway.

Design Patterns. Android already uses a lot of them, so we’re going to talk about those.

First, how about the adapter pattern?
This design pattern allows an interface of an existing class to be used as another interface. In our case, this is to make our movies compatible with the list-view interface provided by android.

If you wonder what else there might be: we’re also using the builder pattern for a small work-around in our program to disable SSL-Checks (Was used when we did not have a valid cert, will be removed before production.) Can be found in the SSLTool class and its method.

The intent of the Builder design pattern is to separate the construction of a complex object from its representation. By doing so the same construction process can create different representations.

The two patterns are marked on the following diagram.

https://cduc.su/diagram2.png

 

Check the github if you want to see the code.

Buh-bye.

TambangDesignLogoAnimation2AwardWebDesignkoko_pebble_md_whtkoko_pebble_md_whtTambangDesignLogoAnimation2

Advertisements

4 thoughts on ““Everything is design. Everything!”

  1. Hey Silverscreen,

    Nice use of the adapter pattern. Also well explained why and how you guys are using it.
    We guess you already had it implemented before last week’s homework, that would explain why there’s no before-after class diagram comparison.

    Cheers, mMio

    Like

  2. Hey Guys,
    as requested you have implemented design patterns and described its usage. Your class diagram looks fine, too.
    So good work for this week 😉
    Greetings,
    NextSmartIdea

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s