ngothanhtai / RottenTomatoes

CoderSchool
0 stars 0 forks source link

RottenTomatoes review #1

Open ngothanhtai opened 8 years ago

ngothanhtai commented 8 years ago

Hi Charles,

This is my homework assignment. /cc @coderschoolreview

Thanks, Tai

coderschoolreview commented 8 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.

    static func loadPosters(thumbnailURL:String, detailedURL:String, posterImageView:UIImageView)

    {
        ImageManager.loadImage(thumbnailURL, posterImageView: posterImageView) { (thumbnailImage, fromCache) -> Void in
            posterImageView.image = thumbnailImage

           // your code
        }
    }
someBlock {
  someOtherBlock { // no blank line here
  }
  // blank line here is okay
  someVar = someMoreCode
  ...
  // blank line here is okay
  someFinalCleanup() // no blank line at end of block either
}

In short, in a block, no blank line right after the start { and right before the }. Blank lines are welcome anywhere else in the body though.

Excellent submission overall :boom: Great job dedicating enough time to do the homework. You learned a lot! Keep up the good work.

ngothanhtai commented 8 years ago

Thank you for reviewing my code. I really appreciate it.