Giter VIP home page Giter VIP logo

coronavirus-tracker's Introduction

About

Hi, I'm a 4th year Computer Science student at Simon Fraser University. I'm passionate about software engineering, backend development, and distributed systems. I'm always looking for new opportunities to learn and grow as a developer.

Links

LinkedIn: linkedin.com/in/sajantoor

Website: sajantoor.github.io/

Resume: Download here

coronavirus-tracker's People

Contributors

dependabot[bot] avatar sajantoor avatar

Stargazers

 avatar

Watchers

 avatar  avatar

coronavirus-tracker's Issues

Optimize Loading Times By Fetching Data At the Same Time

World Data and US Data should be fetched at the same time instead of synchronously.

    fetchData(COVID19API_WORLD).then(worldData => {
      const filtered = worldData.locations.filter(d => d.country !== "US");
      worldData.locations = filtered;
      console.log(worldData);

      // BUG: There's a data point in California which shouldn't be there.
      // OPTIMIZE:  Data is fetched at the same time to imporve loading times
      fetchData(COVID19API_US).then(USData => {
        for (var i = 0; i < USData.locations.length; i++) {
          worldData.locations.push(USData.locations[i]);
        }

        data = worldData;
        console.log(data);
        getInfo(data);
        this.initLayers();
      });
    });
  }

Better Way to Check If a Layer Flag Has Been Updated

Could compare this.state.boolean a different way. Can't compare the states as the state changes (this.state.layers changes) with the changeLayers() method.

Potential Solution: Create a new variable as this.state and remove layers and compare.

  componentDidUpdate(prevProps, prevState) {
    // OPTIMIZE: Better way to check if the booleans have changed here
    if (this.state.heatMap !== prevState.heatMap || this.state.scatterPlot !== prevState.scatterPlot) {
      this.changeLayers();
    }
  }

View File

Comment the Code

Make code easier to understand and improve documentation by commenting the code.

Readme Documentation

Readme needs to have proper documentation with technologies used, sources, and information about the project.

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.