#14 Make find.thing() accept only the relevant subset of wiki data

닫힘
towerofnix2 년 전을 오픈 · 1개의 코멘트
(quasar) nebula 코멘트됨, 2 년 전

Right now it expects the full wikiData object, which is useful for not always remembering which data key goes with which find function... but there are a couple straightforward workarounds which make this less relevant today:

1) Data functions don't really work on wikiData at all anymore—they already take specialized subsets of the data.

2) Page generation functions operate on bound versions of every function anyway, so we can bind each find function to the appropriate data subset only once, at the start of upd8.js page generation code.

This change would also continue in making functions more agnostic towards the overall data structure, which is good, because we shouldn't expect it to look the same under every circumstance/fork/project/etc!

Right now it expects the full `wikiData` object, which is useful for not always remembering which data key goes with which `find` function... but there are a couple straightforward workarounds which make this less relevant today: 1) Data functions don't really work on `wikiData` at all anymore—they already take specialized subsets of the data. 2) Page generation functions operate on bound versions of every function anyway, so we can bind each `find` function to the appropriate data subset only once, at the start of `upd8.js` page generation code. This change would also continue in making functions more agnostic towards the overall data structure, which is good, because we shouldn't expect it to look the same under every circumstance/fork/project/etc!
(quasar) nebula 코멘트됨, 2 년 전
소유자

This is done now! Yay.

This is done now! Yay.
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.