News for hackers. Stuff that matters.
Re:Ask HN: I found opposition when improving the accessibili... by onion2k on Friday October 25, 2019 @07:25AM (#21353879)
Port the entire app in to React so you don't need to use attributes to store state. ;)

More seriously, working with people who don't care about what they're building enough to want it to be a better product is hard. I don't really want to recommend that you resign and find a new job, but two decades of experience writing web software tells me that's probably the only real solution. If you're on a team with people who don't actively want the code to be as good as possible, and who are willing to put the effort in to making it that way, will be bad for your mental health and possibly bad for your career if you pick up that habit.

Re:Ask HN: I found opposition when improving the accessibili... by maury91 on Friday October 25, 2019 @07:27AM (#21353890)
the funny bit is the entire app is in React, and the attribute was leaking to the DOM, so to keep the unit tests and e2e tests work, I made the attribute go to the DOM as `data-role`. The attribute of the React component is still `role` so we can avoid a major refactoring.