daniel added a comment.

We can have this as an ArchCom session, but there was quite a strong consensus when we discussed this in Lyon: don't use the Web API interface and FauxRequests for internal requests. Reasons:

  • It's a "stringly typed" interface, it lacks type safety
  • the encoding/decoding is a performance issue.
  • it makes things very hard to test - it's an antithesis to the idea of injecting narrow, easy-to-mock interfaces.

Best practice IMHO: make business logic that does not know or care about UI or web API, write a thin layer of UI or API on top of it.


TASK DETAIL
https://phabricator.wikimedia.org/T109836

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: RobLa-WMF, Anomie, Jdlrobson, hoo, Aklapper, JanZerebecki, Lydia_Pintscher, aude, daniel, Legoktm, JeroenDeDauw, Ricordisamoa, Winter, D3r1ck01, Izno, Wikidata-bugs, Mbch331, Jay8g, bd808, Tgr
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to