avo1 / BlueBird

Twitter demo (CoderSchool week 3)
0 stars 1 forks source link

Assignment 3 - Twitter #1

Open avo1 opened 8 years ago

avo1 commented 8 years ago

Hi /cc @coderschoolreview, here's my submission.

coderschoolreview commented 8 years ago

:checkered_flag: It's a pleasure to grade your work. The point of this homework was to explore a simple example of a full MVC application with a RESTful API.

Grading Summary

Functionality: Good Code Style: Excellent Visual Design: Good Usability: Good Overall: Good

Great things:

Some suggestions/ideas for improvement:

As you already know by now, we encourage spending a lot of time of the homework to learn much more and to have a better portfolio of your own work. Thank you for your dedication to spending time, learning and helping friends in class.

avo1 commented 8 years ago

Thanks for your review. /cc @coderschoolreview

I've fix those bugs and add some more (you can quickly take a look on new gif)

coderschoolreview commented 8 years ago

:100: thanks for the updates!

one minor bug when replying. placeholder text is still there: screenshot 2015-12-05 17 53 05

you have a few constraint ambiguities. when i scroll down, i see some constraint warnings in the log (view seems fine)

2015-12-05 18:02:32.332 BlueBird[29092:3511704] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x7fae80cba2c0 V:[UIButton:0x7fae80cba030(0)]>",
    "<NSLayoutConstraint:0x7fae80cbaf20 V:[UIButton:0x7fae80cbac90(18)]>",
    "<NSLayoutConstraint:0x7fae80cbba70 V:[UIImageView:0x7fae80cbb8c0(135)]>",
    "<NSLayoutConstraint:0x7fae80cbc460 V:[UIButton:0x7fae80cba030]-(0)-[UIImageView:0x7fae80cb84f0]>",
    "<NSLayoutConstraint:0x7fae80cbc500 V:|-(8)-[UIButton:0x7fae80cba030]   (Names: '|':UITableViewCellContentView:0x7fae80cb76d0 )>",
    "<NSLayoutConstraint:0x7fae80cbc5a0 UILabel:0x7fae80cb7860'Forbes'.top == UIImageView:0x7fae80cb84f0.top>",
    "<NSLayoutConstraint:0x7fae80cbc730 V:[UILabel:0x7fae80cb7860'Forbes']-(3)-[UILabel:0x7fae80cbb4c0'\"The Crimson Flame\" sold ...']>",
    "<NSLayoutConstraint:0x7fae80cbc780 V:[UILabel:0x7fae80cbb4c0'\"The Crimson Flame\" sold ...']-(3)-[UIImageView:0x7fae80cbb8c0]>",
    "<NSLayoutConstraint:0x7fae80cbc960 V:[UIButton:0x7fae80cbac90]-(>=5)-|   (Names: '|':UITableViewCellContentView:0x7fae80cb76d0 )>",
    "<NSLayoutConstraint:0x7fae80cbca00 V:[UIImageView:0x7fae80cbb8c0]-(0)-[UIButton:0x7fae80cbac90]>",
    "<NSLayoutConstraint:0x7fae80cc7590 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fae80cb76d0(109)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fae80cbba70 V:[UIImageView:0x7fae80cbb8c0(135)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

In more complicated cases, you may want to look up the Visual Format Language syntax on https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.html

For this case, however, there is a conflict between the original image constraint from IB and the dynamic constraint set when there is an image. Just set the image height layout 135 to lower priority (e.g. 750 instead of 1000).

Consider setting content compression resistance priority higher in your your username or fullname because right now they are the same and result in inconsistent behavior for different cells:

screenshot 2015-12-05 18 12 15 screenshot 2015-12-05 18 12 04