Giter Club home page Giter Club logo

Comments (4)

kt3k avatar kt3k commented on August 15, 2024
  • capsid.def -> dom driven component
    • component を dom に自動的に mount する
    • 解決すること: component と dom の対応を単純化する
    • 必ず、dom が先でそこに component がマウントする
    • component が dom を作るみたいな状況を作らない
  • @on -> 宣言的なイベントハンドラー
    • 命令的なイベントバインディングをやめて、宣言的にバインディングできる
      • いつバインドされるか、とか、バインドする順序など本質的でない要素について考えなくてよくなる
  • @component -> 宣言的なコンポーネント定義
  • @emit.last -> 親への情報伝達
  • @wire -> 子の宣言、子の明示
  • capsid.prep -> 動的な component の追加 (何が来るか分からない時)
    • pjax の時などに使う
  • capsid.make capsid.init -> 動的な component の生成 (何が来るかわかっている場合)
    • 親がアプリケーションロジックにしたがって子を作る場合など
  • capsid.get -> 動的にコンポーネントを取得する場合
    • あまり使うべきではない、できるだけ @wire で解決すべき

from capsid.

kt3k avatar kt3k commented on August 15, 2024
  • API
  • その API が解決する問題
  • その解決する問題が分かる例
    • (例はマークダウンとコンポーネント定義の両方を含む)

の 3つセットでトピックを切る

from capsid.

kt3k avatar kt3k commented on August 15, 2024
  • Hello world example API: def
    • This explain how to use capsid, what def is, how to start writing component.
    • Illustrates what capsid is at all.
    • Solves the code organization problem How to organize UI program based on component.
  • MyButton example API: @on
    • Illustrates event handler declaration.
    • Solves the messiness of a bunch of addEventListener calls.
  • Timer example API: none
    • Illustrates how to store component state.
    • Illustrates how to reflect data to view.

from capsid.

kt3k avatar kt3k commented on August 15, 2024

partially done

from capsid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.