4 ms·
> By using a slightly more obscure instruction, we save three bytes every time we need to set a register to zero Meanwhile, most "apps" we get nowadays contain
by charles_f 11mo ago
> By using a slightly more obscure instruction, we save three bytes every time we need to set a register to zero
Meanwhile, most "apps" we get nowadays contain half of npmjs neatly bundled in electron. I miss the days when default was native and devs had constraints to how big their output could be.
- Filligree 11mo agoJS is just easier and takes less code. Which isn’t an excuse anymore. UI coding isn’t that hard; if someone can’t do it, well, Claude certainly can.
- charles_f 11mo agoI'm fine with that, but keeping some consideration to optimization should still be something, even in environments when constraints are low. The problem is when no-one cares and includes 4 versions of jquery in their app so that they don't have to do const $=document.getElementById, everything grows to weigh 1Gb, use 1Gb of ram and 10% of your CPU, and your system is as sluggish nowadays (or even more) than it was 10y ago, with 10x the ram and processing power.
- anticrymactic 11mo ago> so that they don't have to do const $=document.getElementById, ``` const window.$ = (q)=>document.querySelector(q); ``` Emulates the behavior much better. This is already set on modern version of browsers[1] [1] https://firefox-source-docs.mozilla.org/devtools-user/web_console/helpers/index.html https://firefox-source-docs.mozilla.org/devtools-user/web_co...
- dapperhn 11mo agoIt is set, but only in the developer console, not for JavaScript included with the website/app.
- saagarjha 11mo agoClaude is pretty bad at coding UIs.
- int_19h 11mo agoIt's not even true that HTML/JS is easier than something like, say, WPF.