News for hackers. Stuff that matters.
Re:Show HN: A VSCode Extension to edit HTML visually in real... by 0xFACEFEED on Monday October 14, 2024 @03:17AM (#41835042)
1) Rats nest of non-declarative JavaScript.

2) Rats nest of JavaScript callbacks.

3) Overlapping stylesheets with !important everywhere.

4) Elements used for style not their semantic purpose (<b>, <strong>)

5) Subtle and not-so-subtle browser compatibility issues.

Re:Show HN: A VSCode Extension to edit HTML visually in real... by bugtodiffer on Monday October 14, 2024 @03:30AM (#41835110)
5) is the only valid reason, the rest has comparable alternative shitty things when using whatever framework
Re:Show HN: A VSCode Extension to edit HTML visually in real... by 0xFACEFEED on Monday October 14, 2024 @03:34AM (#41835139)
No amount of discipline was going to make medium-large websites maintainable back then. Today it's actually possible if the creators know what they're doing. Tooling isn't going to prevent people from doing stupid things.
Re:Show HN: A VSCode Extension to edit HTML visually in real... by netdevnet on Monday October 14, 2024 @04:42AM (#41835515)
I agree with HTML+CSS+JS websites being not fine. But to be honest, js callbacks are more of a language thing than a framework thing. You don't need to use frameworks to write promises.
Re:Show HN: A VSCode Extension to edit HTML visually in real... by wyclif on Monday October 14, 2024 @08:16PM (#41843636)
Also: using JS for things where HTML and CSS would have been sufficient, creating some of the issues above.
Re:Show HN: A VSCode Extension to edit HTML visually in real... by mediumsmart on Tuesday October 15, 2024 @10:59AM (#41849319)
this ^ - and if js at all, then only using a subset which passes jslint.com without any errors or warnings. that the score of any site should be

100 100 100 100 1.1s max paint (mobile) 0ms block 0.0xx max shift A+ headers 0 errors and 0 contrast errors webaim goes without saying of course