2 ms·
There is nothing wrong with parseInt(document.getQuerySelector(".item > .item__quantity"), except for it not being parseInt(document.getElementById("uniqueAutog
by marcosdumay 4y ago
There is nothing wrong with parseInt(document.getQuerySelector(".item > .item__quantity"), except for it not being parseInt(document.getElementById("uniqueAutogeneratedId")).
Developers just shouldn't write that kind of fragile code by hand. But there's nothing wrong at all with the code being there.
- bmikaili 4y agoThat is literally fragile code. You contradict yourself. I really want to see any of the people that hate on modern frameworks build any complex web app in a reasonable amount of time with the same level of stability as using i.e. SvelteKit
- marcosdumay 4y agoAs a rule, every code that people actually run is fragile. A small change could break anything, and there are almost no safety checks. Things only work because it's not people that create it.
- revskill 4y agoTwo way binding is the future ?