Giter Club home page Giter Club logo

badapi's Introduction

BadApi

Summary

Provides a way for users to search for all Tweets from 2016-2017. You can also search for a Tweet by Id from within that time frame. I am leaving the magical final number of total Tweets a secret. Please clone the repo and load the project in VS and load the UI.

Additional Features

I also timed the beginning and ending of each controller action so you can see the total time in seconds that it takes to complete both of the 2 operations.

If I am incorrect in my total Tweets calculation, the app will result in an unfortunate state for the user! But if I am correct, that won't happen:)

Additional Documentation

I allowed for some extensibility in the app by adding a TweetApi class and allow users to pass that object into the GetTweets method. This would potentially allow users to search for a range of Tweets within custom dates.

As you can see in the GetTweets method, I increment the startDate after each request to BadApi and then I deal with duplicate Tweets right away. I was thinking about allowing duplicate Tweets and filtering them at the end, but left this in for 2 reasons: 1 - To allow you to see how I would deal with a real-world technical challenge. 2 - Because it would take more time to have to iterate through such a large collection at the end. Its more efficiant to iterate through only some of the requests. Im impressed with my total resulting time in seconds for the whole operation.

Thanks for your time and I would love to get an interview! Look forward to hearing back from your team:)

Levi

badapi's People

Contributors

leviross 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.