houjieth / android-instagram

Codepath training project
0 stars 0 forks source link

Please review my app [Day1 + Day2 + Day3 + Day4] #1

Open houjieth opened 8 years ago

houjieth commented 8 years ago

@codepath @codepathreview

@nickai

Sorry for my late submission. I swear I will catch it up starting Day 3.

nickai commented 8 years ago

Thanks Jie for getting this in! Let us know if you need any help with day 3 as it is the toughest day of the assignment. We've captured some of the best practices for the day 2 assignment below. We recommend you take a look through these point-by-point to determine how you might be able to improve your submission.

houjieth commented 8 years ago

@nickai @codepath @codepathreview Sorry, just finish day 3. 8 hours of Android coding plus company work, super crazy day!

houjieth commented 8 years ago

Please review my work for the whole Instagram client. @nickai @codepath @codepathreview

I only implemented the compulsory user stories.

nickai commented 8 years ago

Thanks Jie for wrapping up the assignment over the weekend. I've included the feedback guides for day 3 and 4 below for you to check out.

  // this is the join table for posts and comments
  db.delete(TABLE_POSTS_COMMENTS, null, null);

  // posts reference both users and images
  db.delete(TABLE_POSTS, null, null);

  db.delete(TABLE_COMMENTS, null, null);

  // users and images refer to no other tables
  db.delete(TABLE_IMAGES, null, null);
  db.delete(TABLE_USERS, null, null);
   db.beginTransaction();
   try {
     ...
     db.setTransactionSuccessful();
   } finally {
     db.endTransaction();
   }
  List<InstagramPost> posts = new ArrayList<InstagramPost>();

  Intent intent = new Intent();
  intent.putExtra("posts", posts);

  // Extracting data on receipt of intent
  List<InstagramPost> fetchedPosts = getIntent().getParcelableArrayListExtra("posts");