GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    寮 (ryo@social.076.ne.jp)'s status on Monday, 29-Aug-2022 10:49:28 JST寮寮
    in reply to
    • hazlin
    @hazlin It really depends on the type of data.
    If the data is fixed and unchangeable (except for editing the source code of course) (like the HP/attack/defense/speed values of a character), or changed each time you use it (like a contact form), then you can present it as objects, enums, or even variables inside of a function.

    If data is changeable by the user (like a comment or a forum post), best is to use a database.

    And if data is kind of changeable but not completely (like a list of URLs or a guestbook which can only be appended to), you can use a JSON file, an XML file, a CSV file, or even a plain text file, which you'd open up in the backend, put it into an array, and present it to the frontend.
    And maybe make it append-only for some interaction.
    In conversationMonday, 29-Aug-2022 10:49:28 JST from social.076.ne.jppermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.