Git Product home page Git Product logo

refactoring-workshop-frontend's Introduction

Refactoring Take-Home Assignment (Frontend)

🎯 Learning Goals

The primary goal of this exercise is for you to make a messy codebase more readable and bug-free.

Supporting learning goals are the following:

  • Understand the importance of (exploratory) refactoring for learning a new codebase
  • Learn the value of applying design principles in code implementation
  • Improve ability to refactor an existing codebase

❗️ How to use

  1. Fork this repository
  2. Install dependencies
$ yarn install
  1. Launch development server
$ yarn dev
  1. Start refactoring!

📋 Requirements

In order to refactor effectively, make sure to fulfill the following requirements.

  • Separate the concerns: data and presentation
  • Rename variables/functions/files/folders to be more semantic
  • Reorder folder structure to include /pages, /store, /hooks
  • Remove unused code (files & folders)

❗️IMPORTANT: Make sure the behavior and presentation remains the same!

⭐️ Tips for success

If you're stuck, here are some handy tips to help you on your way:

  • Google is your friend! Look up any best practices regarding this particular tech stack and try to implement them
  • When learning the codebase, play around a bit: remove some code, rewrite in a way that makes sense to you first or add comments that explain what's going on in a file.
  • Ask a peer for a second opinion. Perhaps they know something you don't!

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.