4 ms·
On the backend, I use Python and C, however rather than use yet another underpowered slow tempting language I opted to use JavaScript for the front end views.
by dismantlethesun 4y ago
On the backend, I use Python and C, however rather than use yet another underpowered slow tempting language I opted to use JavaScript for the front end views.
We deliver the HTML to the client, hydrate, and everything works seamlessly.
Since the static and dynamic views are built from the same code, we never have to worry about any disjunction where they fall out of sync.
Also hot reloading a live JS view is a lot faster than restarting the Django server, and refreshing the page.
It’s not that the team doesn’t want to learn Mako or Jinja or another language (heck one of our members designed their own language for fun) but it’s simpler and better to use JS.
If it was another project maybe the trade offs would work out differently though.