Code Monkey home page Code Monkey logo

myrmex's People

Contributors

mfrodl avatar

Watchers

 avatar

myrmex's Issues

Support arbitrary exercise types

Currently, only three exercise types are supported: jogging, yoga and weightlifting. This is obviously not enough for most users. On top of that, the existing implementation is not optimal because of code redundancy. If we wanted to add e.g. swimming, several files would have to be updated:

  • models.py: new class
  • views.py: all four methods would need at least one additional line of code
  • calendar.html: new input field in form

A more universal solution would be to replace the three specific models with a generic one (Exercise) with additional fields type (a string) and units (also a string, preferably with pre-defined choices).

The form would then have to look a bit different too. Instead of a single input field, three would now be needed:

  • <input> with <datalist> for exercise type
  • <input type="number"> for quantity
  • <select> (or <input> with <datalist>) for units

By default, only one row of input fields would be displayed, with a + button allowing the user to input additional entries, and a - button for removing the existing ones.

With this arbitrary exercise support, the fancy icons for jogging, yoga and weightlifting would not make sense anymore and could be removed from the application.

Create test suite

In order to avoid regressions, there should be an automated test suite executed after each commit.

Add multi-user support

Currently, the application is running in a single-user mode without any authentication. It would be convenient to allow multiple users to keep track of their individual exercise separately. The single-user functionality can be kept for demo purposes or discarded entirely.

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.