Giter Club home page Giter Club logo

tweettweet's Introduction

TweetTweet - Assigment 4 Submission

Homework 4! Codepath Twitter Redux Demo Client

TweetTweet App is a prototype of the Twitter app using the Twitter API.

Time spent: 12 hours spent in total

User Stories

The following required functionality is completed:

  • Hamburger menu

    • Dragging anywhere in the view should reveal the menu.
    • The menu should include links to your profile, the home timeline, and the mentions view.
  • Profile page

    • Contains the user header view
    • Contains a section with the users basic stats: # tweets, # following, # followers
    • Shows the user timeline
  • Home Timeline

    • Tapping on a user image should bring up that user's profile page

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

This went way smoother for me in terms of understanding. I wish I got to play more with gesture for this assignment but I ended up doing more in the lab then for the homework which I was surprised about.

TweetTweet - Assignment 3 Submission

Homework 3! Codepath Twitter Demo Client

TweetTweet App is a prototype of the Twitter app using the Twitter API.

Time spent: 30 hours spent in total

User Stories

The following required functionality is completed:

  • User can sign in using OAuth login flow
  • User can view last 20 tweets from their home timeline
  • The current signed in user will be persisted across restarts
  • User can view tweet with the user profile picture, username, tweet text, and timestamp
  • Design the custom cell with the proper Auto Layout settings.
  • User can pull to refresh
  • User can compose a new tweet by tapping on a compose button.
  • User can tap on a tweet to view it, with controls to retweet, favorite, and reply.

The following optional features are implemented:

  • Added images so that photo media shows up when included in a tweet. Also removes the original url link from the text link.
  • Refactored tweet text to use NSMutableAttributedString and added styling for any user mentions or hashtags.
  • Replace links in tweet text with their displayable text and added styling
  • User can load more tweets once they reach the bottom of the feed using infinite loading similar to the actual Twitter client.
  • User can pull to refresh only grabs the latest tweets the user has seen (not sure if this was originally required)
  • Retweeting and favoriting should increment the retweet and favorite count.
  • User should be able to unretweet and unfavorite and should decrement the retweet and favorite count.
  • Also added styling so color changes as user retweet/unretweet and favorite/unfavorite.
  • Retweet and favorite count are formatted based on the count (i.e. 15k on the timeline view vs 15,821 on the detailed expansion, etc).
  • When composing, you should have a countdown in the upper right for the tweet limit. (I did lower left since that's in the current mobile app)
  • Replies should be prefixed with the username and the reply_id should be set when posting the tweet,
  • Made my own icons (compose icon and cross exit) that used global tint to get the twitter blue color.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough Video Walkthrough

I kept getting rate limited so I'm showing two walkthroughs. There were many updates and fixes since I recorded the one on the right but it's a good walkthrough and my later gifs don't have everything in it due to the rate limiting. :/

GIF created with LiceCap.

Notes

This went smoother for me in terms of development. It took me quite some time to get through the OAuth videos and while I initually had a few misunderstandings about how to set up my accessToken, I feel like I learned iOS this week. Before, I sort of understood what was going on but this week, I felt more in control of what I was working on and I constantly refactored and improved as I worked.

I also initially had trouble with completions. My autocomplete has been pretty finicky in xcode so understanding the syntax and trying to make it work, soaked up more time than it should.

I did have some initial difficulty with how to understand hiding and showing the Name Retweeted at the top if a retweet in combination with AutoLayout. I ended up having to redo my layout with StackView multiple times, first solely with Autolayout, then Stack View and Autolayout, then finally with nested views inside of a Stack View.

I spent more time than anticipated trying to replace the original url with its readable format and then coloring it in. I ended up reordering some of the steps but I spent more time then I originally expected given that user_mentions and hashtags were a similar concept I finished before implementing this.

Questions

What's the best way to refactor common code in ios? How do I make helper methods that an object's init class can use? How do I create like a global helper class that has methods I'd like to use across the project?

License

Copyright [2016] [Shola Oyedele]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

tweettweet's People

Contributors

jennifershola avatar

Stargazers

Haidong Nie avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.