home.social

#closurecompiler — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #closurecompiler, aggregated by home.social.

  1. While working on porting the Small Technology Foundation web site¹ to Kitten², I took the opportunity to pull out base Model and Collection classes that I’ll likely end up including in Kitten proper:

    • Model: codeberg.org/small-tech/site/s
    • Collection: codeberg.org/small-tech/site/s

    To see them in use, here’s the base Posts class (with RSS generation) that extends Collection:
    codeberg.org/small-tech/site/s

    And here’s the concrete EventPosts collection class that extends Posts:
    codeberg.org/small-tech/site/s

    And the EventPost (showing an implementation of a calculated property):
    codeberg.org/small-tech/site/s

    So all this is possible (persisting and reading back typed model collections, etc.) thanks to JSDB¹ (JavaScript database), a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database I wrote for the Small Web that persists to a JavaScript transaction log and is included as as first-class citizen in Kitten.

    codeberg.org/small-tech/jsdb

    And if you want to know how the magic mapping of classes happens, see the Database App Module:

    codeberg.org/small-tech/site/s

    PS. For a much gentler introduction to persistence in Kitten, see the Kitten Persistence tutorial:
    kitten.small-web.org/tutorials

    Enjoy! :kitten:💕

    ¹ small-tech.org
    ² kitten.small-web.org

    #Kitten #SmallWeb #SmallTech #JavaScript #database #JSDB #typeSafety #JSDoc #closureCompiler #TypeScript #workInProgress

  2. While working on porting the Small Technology Foundation web site¹ to Kitten², I took the opportunity to pull out base Model and Collection classes that I’ll likely end up including in Kitten proper:

    • Model: codeberg.org/small-tech/site/s
    • Collection: codeberg.org/small-tech/site/s

    To see them in use, here’s the base Posts class (with RSS generation) that extends Collection:
    codeberg.org/small-tech/site/s

    And here’s the concrete EventPosts collection class that extends Posts:
    codeberg.org/small-tech/site/s

    And the EventPost (showing an implementation of a calculated property):
    codeberg.org/small-tech/site/s

    So all this is possible (persisting and reading back typed model collections, etc.) thanks to JSDB¹ (JavaScript database), a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database I wrote for the Small Web that persists to a JavaScript transaction log and is included as as first-class citizen in Kitten.

    codeberg.org/small-tech/jsdb

    And if you want to know how the magic mapping of classes happens, see the Database App Module:

    codeberg.org/small-tech/site/s

    PS. For a much gentler introduction to persistence in Kitten, see the Kitten Persistence tutorial:
    kitten.small-web.org/tutorials

    Enjoy! :kitten:💕

    ¹ small-tech.org
    ² kitten.small-web.org

    #Kitten #SmallWeb #SmallTech #JavaScript #database #JSDB #typeSafety #JSDoc #closureCompiler #TypeScript #workInProgress

  3. While working on porting the Small Technology Foundation web site¹ to Kitten², I took the opportunity to pull out base Model and Collection classes that I’ll likely end up including in Kitten proper:

    • Model: codeberg.org/small-tech/site/s
    • Collection: codeberg.org/small-tech/site/s

    To see them in use, here’s the base Posts class (with RSS generation) that extends Collection:
    codeberg.org/small-tech/site/s

    And here’s the concrete EventPosts collection class that extends Posts:
    codeberg.org/small-tech/site/s

    And the EventPost (showing an implementation of a calculated property):
    codeberg.org/small-tech/site/s

    So all this is possible (persisting and reading back typed model collections, etc.) thanks to JSDB¹ (JavaScript database), a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database I wrote for the Small Web that persists to a JavaScript transaction log and is included as as first-class citizen in Kitten.

    codeberg.org/small-tech/jsdb

    And if you want to know how the magic mapping of classes happens, see the Database App Module:

    codeberg.org/small-tech/site/s

    PS. For a much gentler introduction to persistence in Kitten, see the Kitten Persistence tutorial:
    kitten.small-web.org/tutorials

    Enjoy! :kitten:💕

    ¹ small-tech.org
    ² kitten.small-web.org

    #Kitten #SmallWeb #SmallTech #JavaScript #database #JSDB #typeSafety #JSDoc #closureCompiler #TypeScript #workInProgress

  4. While working on porting the Small Technology Foundation web site¹ to Kitten², I took the opportunity to pull out base Model and Collection classes that I’ll likely end up including in Kitten proper:

    • Model: codeberg.org/small-tech/site/s
    • Collection: codeberg.org/small-tech/site/s

    To see them in use, here’s the base Posts class (with RSS generation) that extends Collection:
    codeberg.org/small-tech/site/s

    And here’s the concrete EventPosts collection class that extends Posts:
    codeberg.org/small-tech/site/s

    And the EventPost (showing an implementation of a calculated property):
    codeberg.org/small-tech/site/s

    So all this is possible (persisting and reading back typed model collections, etc.) thanks to JSDB¹ (JavaScript database), a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database I wrote for the Small Web that persists to a JavaScript transaction log and is included as as first-class citizen in Kitten.

    codeberg.org/small-tech/jsdb

    And if you want to know how the magic mapping of classes happens, see the Database App Module:

    codeberg.org/small-tech/site/s

    PS. For a much gentler introduction to persistence in Kitten, see the Kitten Persistence tutorial:
    kitten.small-web.org/tutorials

    Enjoy! :kitten:💕

    ¹ small-tech.org
    ² kitten.small-web.org

    #Kitten #SmallWeb #SmallTech #JavaScript #database #JSDB #typeSafety #JSDoc #closureCompiler #TypeScript #workInProgress

  5. While working on porting the Small Technology Foundation web site¹ to Kitten², I took the opportunity to pull out base Model and Collection classes that I’ll likely end up including in Kitten proper:

    • Model: codeberg.org/small-tech/site/s
    • Collection: codeberg.org/small-tech/site/s

    To see them in use, here’s the base Posts class (with RSS generation) that extends Collection:
    codeberg.org/small-tech/site/s

    And here’s the concrete EventPosts collection class that extends Posts:
    codeberg.org/small-tech/site/s

    And the EventPost (showing an implementation of a calculated property):
    codeberg.org/small-tech/site/s

    So all this is possible (persisting and reading back typed model collections, etc.) thanks to JSDB¹ (JavaScript database), a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database I wrote for the Small Web that persists to a JavaScript transaction log and is included as as first-class citizen in Kitten.

    codeberg.org/small-tech/jsdb

    And if you want to know how the magic mapping of classes happens, see the Database App Module:

    codeberg.org/small-tech/site/s

    PS. For a much gentler introduction to persistence in Kitten, see the Kitten Persistence tutorial:
    kitten.small-web.org/tutorials

    Enjoy! :kitten:💕

    ¹ small-tech.org
    ² kitten.small-web.org

    #Kitten #SmallWeb #SmallTech #JavaScript #database #JSDB #typeSafety #JSDoc #closureCompiler #TypeScript #workInProgress