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

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

Conversation

Notices

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Tuesday, 12-Mar-2024 03:22:53 JST Aral Balkan Aral Balkan

    Just released v3.0 of @small-tech/state

    (A tiny – 42 lines of code¹ – JavaScript state management class.)

    https://codeberg.org/small-tech/state

    The state class is no longer a proxy itself but instead uses a proxy to guard access/update of states. This means instances/subclasses of State can now be persisted in JavaScript Database (JSDB)² objects. e.g., for use in Kitten³ apps.

    ¹ Sans comments and empty lines.
    ² https://codeberg.org/small-tech/jsdb
    ³ https://codeberg.org/kitten/app

    #state #JavaScript #jsdb #SmallWeb

    In conversation about a year ago from mastodon.ar.al permalink

    Attachments


    1. Invalid filename.
    2. Domain not in remote thumbnail source whitelist: codeberg.org
      jsdb
      from small-tech
      A zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.
    3. Domain not in remote thumbnail source whitelist: codeberg.org
      app
      from kitten
      A web development kit that’s small, purrs, and loves you.
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Tuesday, 12-Mar-2024 03:53:56 JST Aral Balkan Aral Balkan
      in reply to
      • Moffin'tosh

      @moffintosh It’s definitely heavier than that and specialised for very basic state management with basic guards. But it is a class and is meant to be subclassed to be used. (The states object I’m passing in in the example is about as close as you get to enums in JS. TypeScript has the concept but JS does not – although, if I remember correctly, the keyword is reserved so maybe in the future…)

      In conversation about a year ago permalink
    • Embed this notice
      Moffin'tosh (moffintosh@mastodon.cloud)'s status on Tuesday, 12-Mar-2024 03:53:57 JST Moffin'tosh Moffin'tosh
      in reply to

      @aral ...is this the JS equivalent of a Rust enum?

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • 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.