Facebook's popular frontend framework can't escape its heritage
The Wikimedia Foundation oversees Wikipedia which still relies on decade-old user interface elements built with technologies like jQuery and an internal framework called OOUI. The non-profit has been formulating a plan to update its platform to make it more manageable with automation, more easily measured, and more friendly for would-be contributors.
The Pi who loved me: Licensed to SSLREAD MORE
"React and Vue.js share many features and philosophies," the proposal explains. "Both enable developers to build UIs in a declarative, reactive, and component-based way; both core libraries are fairly light-weight and performant; both possess large and active communities."
"We believe that the Foundation would be well-served by adopting either tool. However, we believe that Vue.js has a few key advantages that are relevant for the Foundation's use-cases."
Vue.js, the proposal says, has better support for front end build tools like Webpack and Babel, appears to allow code with fewer dependencies, and is evolving in a stable manner.
Also, the proposal suggests, React's parentage is a problem. Specifically, React was developed by Facebook, and between 2014 and 2017 the interface library was subject to a BSD + Patents license that other organizations viewed as a potential risk.
Facebook in 2017 shifted React to the MIT license, but the company's business model and behavior remain a matter of concern for some developers.
The proposal notes, "Vue.js development is not led by a single corporation whose goals may diverge from those of the WMF."
The WMF was also unimpressed that another open-source Facebook project, the HipHop Virtual Machine (HHVM), used to convert PHP to machine code for better performance, stopped fully supporting PHP last year, forcing WMF to migrate away from it.
What's more, parts of the Wikimedia community already have experience with Vue.js: WMDE (Wikimedia Deutschland) has been experimenting with the framework for the Wikidata site.
There were dissenting voices while the move to Vue.js was being considered. Last month, developer Hyeon Kim, among others, argued that React would be the better choice. But Vue.js creator Evan You joined the debate in an attempt to answer Kim's criticisms.
On Wednesday, the comment period closed and the proposal to move forward with Vue.js was adopted.
Even so, the matter may not be settled. The decision has prompted other developers to urge the FAWG to reconsider, with some arguing that Web Components, a W3C standard, should be used instead, and others insisting that users' needs should be considered alongside those of developers.
There may not be a right answer, but there's always a wrong one. ®