In the tech community, there is low awareness of accessibility. There are many reasons behind this:
Most of the online tech resources don't talk about accessibility. kudos to MDN for maintaining the accessibility section.
Bootcamps and tutorials doesn't teach accessibility
Accessibility is not part of any CS degree.
Today I will rant about one of the biggest issues I have seen in the developers: 'Wrong code reviews'.
Whenever I see the code-reviews at work/open-source/boot-camps most of the comments are around:
JavaScript syntax
Using fancy syntax or tags
Developers just brag about their JS frameworks/libs skills and skip the importance of semantic code.
Developers who are putting JavaScript over semantic code are harming the skills and products they are building.
Senior developers not at all reviewing the code around:
Semantic code
DRY
Where to draw the line between HTML, CSS, and JS
SOLID principles
Junior or peer developers are not asking the questions to their senior developers at all during code reviews.
Eg: I have seen a code of a Bootcamp dev where the senior developer asked the junior developer to move the whole Navigation to javascript.
Reason: Sr Dev comment was - you are breaking DRY
as nav
code is repeating at every HTML
page.
The whole app was HTML pages, not SPA.
There were no comments on:
Tag of
nav
is wrong. It wasdiv
.The code used for creating navigation was not semantic at all. Instead of
<ul>
it was span.If the code will move to JavaScript how the content will be handled by Screen readers or translations.
How the keyboard 'focus' will work if the nav will move to JavaScript.
If the code-review will start pointing out:
Correct HTML tags
Cost of moving content and View to JavaScript
If Content and View required to be in JavaScript then how the accessibility will be taken care
Everyone in the team will get aware of the accessibility as well as from next time onwards developers will write 'correct' code not just code that 'works'.
As a Jr Developer: Ask questions. Do not just accept the code review.
As a senior developer: Do the right code review of everything, not just JS.
Top comments (5)
You expect so much of people Neha. Taking the time to learn HTML...as a web developer...who would suggest such a thing? 🤣
This rant was far too polite by the way, I need to be able to picture you turning red with steam coming out of your ears if you want to take over doing the accessibility rants 😋
Only kidding, I enjoyed the post and I couldn't agree more!
According to me what happens that most of the tech companies are using a framework or a library bundled with a component library.. which can be react-bootstrap, Material Bootstrap etc etc.
Here most of the Accessibility part is handled and if you are not doing major customizations you won't get a chance to get a good hands on the tip and tricks of making your web page accessible.
But every developer irrespective of their experience should audit their code to make sure it is accessible always.
This is a great issue you highlighted.
One issue I face a lot is "let's do it later"
True, this lead to many bad code at production