Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That 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


As 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.


Two way binding is the future ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: