TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: When should an open-source library stop supporting legacy browsers?

4 点作者 lollipop25超过 8 年前
You can also rephrase the question as:<p>- Are you assuming full ES5 support when building libraries?<p>- Are you assuming partial ES6 support when building libraries?<p>- Are you pushing shim responsibility to the user?<p>- Are you ignoring browsers that are 1% or lower in market share?<p>- When should a library stop hand-holding older systems?<p>What&#x27;s your opinion? When should a library shed off legacy browser code?<p>(legacy = IE10 and below, browsers older than the previous version)

2 条评论

cocktailpeanuts超过 8 年前
I think you can throw out support for these legacy technologies IF:<p>1. Doing so results in competitive advantage--such as being able to move significantly faster, being able to maintain significantly cleaner codebase, etc.<p>2. Your library does something unique that no one else does - If there are tons of other libraries that do the same thing, you will be thrown into a feature war. I guess that&#x27;s fine and there&#x27;s nothing wrong with that but I personally wouldn&#x27;t want to be in that position.
brudgers超过 8 年前
When it meets the goals of the project. Tossing out legacy support probably means breaking behavior for people with the fewest resources. Larry Ellison probably has someone whose job includes making sure his laptop is up to date. A family living in a slum with a hand me down laptop doesn&#x27;t.<p>Good luck.