You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently very little documentation, we should look to utilise Elixirs documentation generation
We should look to add far more test helpers to get rid of repeated code and make each test more readable
We should look to do less logic inside of the templates directory and instead pass down helpers from the views
We should look to employ brunch to ensure the correct amount of js is run on each webpage to improve website speed (e.g. we're loading jQuery on every page, dispite a lot of views not using jQuery)
Functions inside of the following controllers are in need of being refactored:
forgot_pass
admin
group
student
survey
session
Refactoring would include:
Ensuring everything is aliased
String concatenation is done consistently
Improving functions by using more of the elixir api
Abstracting out common patterns
Taking out large static data appropriately (controllers/survey has a massive form function, this should be in it's own file)
Looking to use more piping instead of being imperative
Ensure each helper is unit tested
We could also look at getting a linter: dogma and credo and maybe implement some kind of pre-commit hook to go with this
The text was updated successfully, but these errors were encountered:
There is currently very little documentation, we should look to utilise Elixirs documentation generation
We should look to add far more test helpers to get rid of repeated code and make each test more readable
We should look to do less logic inside of the
templates
directory and instead pass down helpers from theviews
We should look to employ brunch to ensure the correct amount of
js
is run on each webpage to improve website speed (e.g. we're loading jQuery on every page, dispite a lot of views not using jQuery)Functions inside of the following controllers are in need of being refactored:
forgot_pass
admin
group
student
survey
session
Refactoring would include:
controllers/survey
has a massiveform
function, this should be in it's own file)We could also look at getting a linter: dogma and credo and maybe implement some kind of pre-commit hook to go with this
The text was updated successfully, but these errors were encountered: