Ancestors

Written by Peter Kröner on 2025-01-22 at 13:13

The world's worst #react project uses hundreds upon hundreds of lines of react-use-form spaghetti to do something that literally takes ~40 lines as a vanilla web component 🤦

https://codepen.io/SirPepe/pen/mybzrVb

[#]webcomponents

=> View attached media

=> More informations about this toot | More toots from sir_pepe@mastodon.social

Toot

Written by PetterOfCats on 2025-01-22 at 13:45

@sir_pepe I found an A tag that had no HREF but had an onclick event handler that compiled and constructed, on the fly, the protocol, host, path, added /somepage, and topped it off with the search params and sent you there. it was like 40 lines of code.

its really sad the way #webdev is going these days.

=> More informations about this toot | More toots from PetterOfCats@mastodon.world

Descendants

Written by Peter Kröner on 2025-01-22 at 14:27

@PetterOfCats I once wrote something just like that! As a giant string for the HTML attribute onclick even. It was the only way to cram ANY custom behavior into a system for which my customer had lost the source code but which needed a patch when IE 8 went away. Fun times.

=> More informations about this toot | More toots from sir_pepe@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113872308112962104
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
263.745403 milliseconds
Gemini-to-HTML Time
0.609803 milliseconds

This content has been proxied by September (3851b).