55 Matching Annotations
  1. Sep 2023
    1. In this example, whenever a contact is changed, we replace the map modeling that contact entirely. When it comes time to render to the virtual DOM, the ContactList is going to re-render, because the contacts list is now a new object entirely.

      Pretty much the basic pattern you'll use.

      A change in data warrants a change in the map.

    2. Consider this: we are writing a contact management app, and we have a ContactList component that contains ContactListItem components. These components are all backed by a list of contacts and should re-render whenever a contact changes.

      EXACTLY. Remember the interface for grouping and categorizing unstructured data (in the impetuous case, the design metrics)

  2. Dec 2021
    1. single-line macros being redefined

      Single line macros can be re-defined, and the macro last definition used is the one that will be expanded in all the following slots.

  3. Oct 2021
    1. What we need, in order to live well, is a proper appreciation of the way in which such goods as friendship, pleasure, virtue, honor and wealth fit together as a whole. In order to apply that general understanding to particular cases, we must acquire, through proper upbringing and habits, the ability to see, on each occasion, which course of action is best supported by reasons. Therefore practical wisdom, as he conceives it, cannot be acquired solely by learning general rules.

      Where's the middle ground? Or perhaps the discourse will reveal him to focus on just that.

    1. For org-roam-dailies to work, you need to define two variables: Variable: org-roam-dailies-directory Path to daily-notes. This path is relative to org-roam-directory. Variable: org-roam-dailies-capture-templates Capture templates for daily-notes in Org-roam.

      Bare minimum for journaling

    2. Org-roam provides basic graphing capabilities to explore interconnections between notes, in org-roam-graph. This is done by performing SQL queries and generating images using Graphviz. The graph can also be navigated: see Roam Protocol.
    3. If foo is a function, foo is called with the current node as its argument. Else if org-roam-node-foo is a function, foo is called with the current node as its argument. The org-roam-node- prefix defines many of Org-roam’s node accessors such as org-roam-node-title and org-roam-node-level. Else look up org-roam-capture--info for foo. This is an internal variable that is set before the capture process begins. If none of the above applies, read a string using completing-read. Org-roam also provides the ${foo=default_val} syntax, where if a default value is provided, will be the initial value for the foo key during minibuffer completion.

      Click here to get a handle on the behavior of the expansions in multiple context.

    4. Org-roam provides the ${foo} syntax for substituting variables with known strings. ${foo}’s substitution is performed as follows:

      Org-roam Template has expansions with similar syntax to yasnippet!

    5. Org-roam provides extensions for capturing content from external applications such as the browser, via org-protocol.

      This simplifies things, won't have to use develop using the dbus spec initially.

    6. Emacs has support for creating and editing encrypted gpg files, and Org-roam need not provide additional tooling.

      Cool, and with capture templates, I can probably get sophisticated if I need to. Question is, how essential is it to encrypt everything??

    7. Completions for Org-roam are provided via completion-at-point. Org-roam currently provides completions in two scenarios: When within an Org bracket link Anywhere

      What exactly is this???

      Going to have to come back to this at a later time and figure out what a "completion" is, although it's probably functions as expected.