In the last year and a half I finally took a web development job full time. In that time I have learned a lot of new technologies like Webpack, VueJS, D3 etc. I am now turning around and seeing that I can improve NearBeach tenfold by applying what I have learned.
The majority of the issues left with NearBeach revolve around the UI/UX, and code base that I can improve. For example I can structure NearBeach a lot better – so the code flows a lot nicer and it becomes easier to program for.
Here are good examples of this are;
- view.py file currently sits at being 10711 lines long. Finding sections within that code takes time.
- Some forms are overly complex, i.e. the quote line items, and are becoming harder to fix any bugs or issues associated with them. Without the server time taking too long to render the form.
- Code is being repeated over multiple spots – for example the following code
project_results = project.objects.filter(…
- No structure for the JS/CSS files
The general fixes for these would be;
- Split the view file into separate files for each modules. This will make each file smaller and easier to find the class you need
- Move a lot of the complexity out of the back-end and place it into front-end. VueJS is a powerful library that can easily deal with complicated forms
- Move these repeated codes into their own python file, with their own functions
As I am not releasing any new functionality – I am planning on implementing these changes during beta.