Ferreteria/modules/users

From Woozle Writes Code
< Ferreteria‎ | modules
Revision as of 16:42, 22 May 2022 by Woozle (talk | contribs) (4 revisions imported: moving this project here)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Tables

core functionality

Function: User Data

This doesn't actually need any specialized tables; it just makes use of Template:L/ferreteria/module.

Reasoning:

  • "User data" is really just key-value pairs that are also tagged for a specific user.
  • As such, they could just be Template:L/ferreteria/tables with a key-leaf (text), a value-leaf (arbitrary but usually text), and a user-leaf (int for user ID), all handled by a particular code class (as intended).
  • If you want to store a bunch of data for a particular user all together instead of as individual nodes, it could be serialized -- but only do this if there will rarely be any need to access just a few of the components individually, since the entire serialized dataset will need to be accessed each time.