4 ms·
It's a relief to do a bit of Go from time to time, render a complete html template in 40 ms (with almost 2 MB of JSON data) instead of spending forever figuring
by Cthulhu_ 9y ago
It's a relief to do a bit of Go from time to time, render a complete html template in 40 ms (with almost 2 MB of JSON data) instead of spending forever figuring out the JS framework du jour to do the same thing, only with it feeling a lot more involved, heavyweight, and slow - even if said framework claims to be faster than all the other JS frameworks.
I think I want to do back-end or terminal-based interfaces again. Native interfaces. Mmmmm
- zaarn 9y agoI've had a similar experience on a current project. Even after disabling any and all caching and minification (read: basically parsing all templates per request, a bit like PHP), the entire render process take less than 20ms of time to the point that I've simply left out caching during some production runs. I also keep the interface free of any expensive rendering precisely because I don't really need all of the niceties of JS frameworks. Surely, the page could be more fancy but vanilla HTML5/CSS3/JS can do the job too. (And document.querySelector has replaced jQuery for me)
- mwcampbell 9y ago> Native interfaces. Mmmmm If you decide to work on native GUIs, please don't create your own toolkit on the assumption that you can do better than the OS. You'll almost certainly break at least one thing: accessibility for blind people.
- wesleytodd 9y agoThis has nothing to do with Go and a lot to do with choosing the right tool for the job. Maybe Go is the best tool for you in this job, but a given js framework can serve someone else just as well if it is in their expertise area. Don't confuse your expertise with language/ecosystem pros and cons.
- theon144 9y agoThis has nothing to do with choosing the right tool for the job, but with performance, which this discussion is about. Practically all JS frameworks, having multiple levels of (near-inscrutable) abstractions naturally degrade the performance and certainly contribute to the trend the submitted twitter thread is talking about.
- monochromatic 9y agoThe right tool for the job != whatever tool is in your expertise area.
- demosthenex 9y agoI'd love to see more terminal interfaces. I've been looking for a modern TUI library for a while.