trungdq88 / learn-swift

Assignments for swift class
0 stars 0 forks source link

Assignment 1 review #1

Open trungdq88 opened 9 years ago

trungdq88 commented 9 years ago

I have finished assignment 1 (movie review application), please review, thank you! README file: https://github.com/trungdq88/learn-swift/tree/master/assignment-1 /cc @coderschoolreview

coderschoolreview commented 9 years ago

:+1: nice work. The point of this homework was to explore a simple example of a full MVC application with a RESTful API. You learned about UITableViews, custom UITableViewCells, navigation from a UITableView, and basic networking.

Grading Summary:

I'm going to guess you're a Java programmer? Great job trying to encapsulate your software here. You might not have to build this much abstraction in future assignments.

One thing you can do is have required methods in protocols instead of doing this:

    func getApi() -> MovieApi {
        preconditionFailure("This method must be overridden")
    }

For more information, you can read the Apple Documentation.

        let task = session.dataTaskWithURL(url!) { (data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in
            guard error == nil else {
                print("ERROR fetching movies", error)
                return
            }

Date truncated: image

alignment

Last but not least - you should learn how to use the Asset Catalog for images: http://guides.codepath.com/ios/Adding-Image-Assets

Great job dedicating enough time to do the homework. You learned a lot! Keep up the good work. Next time try to do all the optionals, like the Search Bar. =)