DEV Community

Discussion on: As a developer, I hate ... ?

Collapse
 
greggcbs profile image
GreggHume

I hate that we use javascript to do things the browser should have built in.

Form validation is still primitive - need a lib, forms in themselves are old - need submission states and error messages, css needs sass, css grid just not quite it - layouts need to be easier, mobile browser web api sucks so we need native apps, fetch api is not as good as axios, position sticky does not apply a class when sticky, carousels + sliders + dropdowns + modals etc.... should be native browser components. We need clunky serverside javascript rendering frameworks that frankly are a hack with hydration.

Like w3 are sleeping, as a web developer life is tedious and way harder then it needs to be. Designs and expectations are getting higher but the browser technology is crawling along.

Collapse
 
moopet profile image
Ben Sinclair • Edited

With some of these things, like form validation, the browser does handle a lot of it pretty well. You can specify types of input, patterns to match and whether something's required. You can't dump a load of buisness logic or add dependencies between fields, but that's starting to get too complex for HTML.

Saying that axios is better than fetch is fine, but that's very self-selecting - of course random-third-party-thing is "more" than bundled-thing, because if it wasn't, then nobody would have developed it in the first place!