Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future changes to improve code quality and work productivity #531

Open
hongquan opened this issue Feb 3, 2025 · 0 comments
Open

Future changes to improve code quality and work productivity #531

hongquan opened this issue Feb 3, 2025 · 0 comments

Comments

@hongquan
Copy link
Member

hongquan commented Feb 3, 2025

Backend

  • Apply type annotation for Python and MyPy checking. Benefit: It improves IDE autocomplete and detect some bugs early.
  • Use Jinja for templating (replacing Django template). Benefit: We can embed Python function to template and call. With Django template, we have to define filter, custom tags.
  • Use djlint to clean template code.

Frontend

  • Get rid of jQuery code, convert them to Vue or AlpineJS.
  • Consider two options:
    • Migrating to Single Page Application, where we can use full power of Vue and can apply TypeScript to improve IDE autocomplete and detect bugs early.
    • HTMX + AlpineJS if we still want Django to produce HTML.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant