Giter Club home page Giter Club logo

forcept's Introduction

forcept's People

Stargazers

 avatar

Watchers

 avatar  avatar

forcept's Issues

Field class inconsistencies

For the sake of coding additional fields in the future, Field JSX classes should be consistent in implementation of properties such as componentWillMount and componentWillReceiveProps.

  • Add setValue function to handle transition between different states
  • setValue should determine validity based on passed props object
  • Move console.* functions to after initial variable declarations in each function
  • Variable declarations with undefined values should proceed those with defined values.
  • Reorganize method in this order: getInitialState, componentWillMount, componentWillReceiveProps, setValue, onXChange, [other functions], render
  • getInitialState should return value as an empty string instead of null when the field is empty (unless otherwise required by the component)
  • State values like status, display, and displayState should be condensed to one or two consistently-utilized terms
  • Use block comments for information instead of //

Importing stage config needs overhaul

  • Adding a field without a name and then importing data breaks the system
  • Add confirmation modal before overwriting fields
  • "Mode" option - overwrite or append?

Code optimization

FORCEPT needs to run on all devices without crippling lag. React modules must be optimized to increase speed.

Todo:

  • Reduce/eliminate usage of console.log
  • Locally store any variable used more than once
  • Find a faster alternative to Object.keys
  • Clean-up HTML (try to reduce DOM size)
  • Find other ways to optimize code
  • Run benchmarks

Possible ways to increase performance

  • Render each patient's DOM as the viewport scrolls down to reduce ridiculously large DOM size

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.