W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > February 2018

Re: [webrtc-pc] pc.addTrack/removeTrack are confusing and mostly redundant. Mark as legacy?

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Feb 2018 18:33:25 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-362359448-1517510004-sysbot+gh@w3.org>
Competing mental models are not a Bad thing, inherently.

Breaking users' deployed code is a Bad Thing, unconditionally.
We should only move to a new model when we can fully implement the old API in terms of the old one, so that users who depend on the old functionality know EXACTLY how to keep their own applications working. Exceptions should only be allowed when the benefit of hurting the edge case is *huge*.

"Don't work exactly the same in edge cases" translates to "breaks my app in surprising ways".

If we can define old APIs in terms of new APIs, to a very high degree of fidelity, I'm OK with doing so - it simplifies the overall implementation model.

But if we make things that used to work in real applications impossible to achieve in the name of "more elegant APIs", I believe we have left the path of wisdom.


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1758#issuecomment-362359448 using your GitHub account
Received on Thursday, 1 February 2018 18:33:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:00 UTC