Don’t Roll Your Own: Expert Advice
Executive TL;DR:
- Don’t roll your own page scrolling, link navigation, or text selection.
- Use standard controls instead of custom coding.
- Established libraries are often more secure and efficient.
The Internet’s Verdict: 70% Hyped, 30% Skeptical
Expert Opinions
Experts argue that custom coding can lead to security risks and accessibility issues.
> Don’t roll your own page scrolling. browser should not even let the page see this action > Don’t roll your own link navigation. browser should not even let the page see this action > Don’t roll your own text selection. browser should not even let the page see this action > Don’t roll your own copy and paste. browser should not even let the page see this action I’m serious.
Standard Controls
Using standard controls can improve accessibility and user experience.
I’d like to add: * Don’t roll your own standard controls Seriously. Don’t. You want a single-select box? Use a combo box or radio button group. Want an edit box? Use an edit box. Want a list that finds things as you type? That’s in the standard too.
Crypto and Security
Established libraries are often more secure and efficient than custom coding.
Among software developers, and especially among those who work on security-sensitive systems, there is a well-known maxim: Don’t roll your own crypto.
Focus Keyword: Roll Your Own