Coder Social home page Coder Social logo

githubuserfinder's Introduction

GithubUserFinder

Thank you for reviewing my code. :)

I'd like to share some of the design decisions I made:

  • I implemented simple pagination for searching users manually instead of using the Paging library. The reason for this choice was to have full control over the data in my ViewModel and UseCase, and I wasn't satisfied with how the Paging library handled failures or refreshes.

  • I apologize for the UI; I didn't have much time to work on it. In a real-life app, I typically invest more effort into UI design. ๐Ÿ˜„

  • While planning the project, I considered using multiple modules for core classes and features. However, I found this approach to be somewhat redundant even for a sample application. Therefore, I opted for a single-module architecture.

  • Due to time constraints, I couldn't make the following improvements:

    • Clicking on search button is not doing anything
    • Empty state is not covered
    • Empty string is not handled and will search for empty userName
    • Using a logger instead of printStackTrace()
    • The user list is not refreshable
    • Hiding the keyboard when an error message is displayed.
    • Enhancements to start fetching the next page earlier, before the user reaches the end of the list.
    • Not calling the next page when the list is short or has reached the api call limit.

I thoroughly enjoyed working on this challenge, and I hope you'll enjoy reviewing it as well.

githubuserfinder's People

Contributors

heypouya avatar

Watchers

 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.