mfrodl / myrmex Goto Github PK
View Code? Open in Web Editor NEWInteractive calendar for exercise tracking written in Django
Interactive calendar for exercise tracking written in Django
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 classviews.py
: all four methods would need at least one additional line of codecalendar.html
: new input field in formA 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 unitsBy 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.
In order to avoid regressions, there should be an automated test suite executed after each commit.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.