Giter VIP home page Giter VIP logo

interview-challenge's Introduction

Feedr Technical Challenge

Thank you for taking the time to attempt this challenge.

These tests are used to evaluate candidates of all skill levels so please complete them to a level you feel is an accurate representation of your skill set.

Please read README-FRONTEND.md for further instructions.

If you have any questions or would like to clarify any details, please email [email protected].

Good luck!

Laura additional Notes

I. First I was trying to understand the proposal, and then I started breaking down the components by what they could do (the least possible). At this point I was thinking about the Menu-Item being different inside the menu-builder and inside the MenuPreview, but I understood I could pass the data I wanted display in each case and still use the same component.

So I broke the components as following:

  1. App 1.1) Menu Summary 1.1.1 Menu Summary Left 1.1.2 Menu Summary Right 1.2) Menu Builder 1.2.1 Menu Items 1.3) Menu Preview 1.3.1 Menu Items

II. Next stop was to try to understand which information (state) each components would need. I understood the data needed as following:

a) Items List b) Selected Items List c) Count of Selected Items by Menu-Type

From that, I listed which Components would need which info, so:

(1.1) Menu Builder would need (a) Items List All the other Components would need b) (and its dependable informations c) and d)).

So the state should live in the App (1), but the Items List could be in the Menu Builder.

III. From that I understood which tools/libs I should use. I didn't like the fact that the state would have to be passed down the summary two times. And also, the updates of Menu items would have to have a handler coming down from the App two times. I needed something to make it simpler and more organized. So I decided to use Redux, so I could have a more organized flow of data.

IV. Next step was to define the actions:

  • Add Item to the Selected Items List (and remove from the Items List)
  • Remove Item from Selected Items List (and put it back to the Items List

And then I started to build it :).

interview-challenge's People

Contributors

byromxyz avatar laurajbarros avatar mdsomerfield 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.