311 Matching Annotations
  1. Jan 2024
  2. Dec 2023
    1. Glossary of some important musical terms
  3. Nov 2023
    1. The primary determinants of musica l foml in tonal music were tonality and theme, withcontrast of tonalities being a generally stronger force than contrast of themes. The declinein tonality as an organizing force has often led to a greater reliance on thematic contrast;but in many pieces, themes, in the sense of melodies, pla ya small or nonex istent part. Themost obvious example is electronic music, where texture, register, dynami cs, and especial MIy timbre are usua ll y more important as shaping elements than themes are. Rhythmic ac-ti vity is another organiz in g factor

      In the 20th and 21st centuries, tonality as organising force is being replaced with temporal and timbral style elements such as texture, register, dynamics, and timbre.

    1. Grabe, Mark. “Student and Professional Note-Taking.” Substack newsletter. Mark’s Substack (blog), November 10, 2023. https://markgrabe.substack.com/p/student-and-professional-note-taking?publication_id=1857743&utm_campaign=email-post-title&r=77i35.

      Educator Mark Grabe looks at some different forms of note taking with respect to learning compared lightly with note taking for productivity or knowledge management purposes.

      Note taking for: - learning / sensemaking - personal knowledge management - productivity / projects - thesis creation/writing/other creative output (music, dance, etc.)

      Not taken into account here is the diversity of cognitive abilities, extent of practice (those who've practiced at note taking for longer are likely to be better at it), or even neurodiversity, which becomes an additional layer (potentially noise) on top of the research methodologies.

  4. Oct 2023
  5. Sep 2023
    1. I don't know why I can't do Evergreen and Atomic Notes.. .t3_16r8k0b._2FCtq-QzlfuN-SwVMUZMM3 { --postTitle-VisitedLinkColor: #9b9b9b; --postTitleLink-VisitedLinkColor: #9b9b9b; --postBodyLink-VisitedLinkColor: #989898; }

      reply to u/SouthernEremite at https://www.reddit.com/r/Zettelkasten/comments/16r8k0b/i_dont_know_why_i_cant_do_evergreen_and_atomic/

      If you're not using your notes to create or write material and only using them as a form of sensemaking, then perhaps you don't need to put as much work or effort into the permanent notes portion of the work? Ask yourself: "Why are you taking notes? What purpose do they serve?" Is the form and level you're making them in serving those purposes? If not, work toward practicing to make those two align so that your notes are serving an actual purpose for you. Anything beyond this is make-work and you could spend your time more profitably somewhere else.

    1. Culture

      bbc.com form fields have associated labels. Good practice is to provide clear and visible labels for form fields.

    1. In a blues song with a sung text, the lyrics consist of a line that is repeated, then followed by a contrasting line (aab). The melody often follows this structure as well. Blues melodies often leave large gaps to allow for call-and-response between the melodic instrument and other instruments. The blues scale is like a minor pentatonic scale with an additional chromatic passing tone: do–me–fa–fi–sol–te (^1−↓^3−^4−↑^4−^5−↓^7)(1^−↓3^−4^−↑4^−5^−↓7^)(\hat1-\downarrow\hat3-\hat4-\uparrow\hat4-\hat5-\downarrow\hat7). The blues scale can be rotated to begin on its second note, creating a major blues scale: do–re–ri–mi–sol–la (^1−^2−↑^2−^3−^5−^6)(1^−2^−↑2^−3^−5^−6^)(\hat1-\hat2-\uparrow\hat2-\hat3-\hat5-\hat6).
    2. Another essential part of blues phrase structure is the notion of call-and-response, a feature likely inherited from the work songs of enslaved Africans and African Americans. The vocal, lyricized melody takes on the role of the “call” while an instrumental filler takes on the role of the “response.” Notice that in “Gulf Coast Blues,” each lyric labeled with an a is sung entirely and exclusively in the first two measures of the phrase. Example 3 annotates a transcription of “Gulf Coast Blues” to show this call-and-response relationship.
    1. The poetic structure: it is undoubtedly a structure made of three lines of fourbars each but its organization differs on the levels of prosody, melody, andharmony.The prosodic structure: AAB generally. The phrase (either sung or spoken)during the first line is repeated in the second line and a second phrasefollows in the third line.9The melodic structure: AAB but often AA’B. The same melodic phrase usuallyis repeated but may be subject to variation.The harmonic structure: ABC. As seen above, the three lines have been differentfrom each other right from the most original chord changes. The first linestarts with I, the second with IV, and the third with V
    1. synthetic bioengineering provides a really astronomically large option space for new bodies and new minds that don't have 00:04:28 standard evolutionary backstories
      • for: cultural evolution, cumulative cultural evolution, CCE, bioengineering, novel life form, culturally evolved life, bioethics, progress trap, progress trap - bioengineering, progress trap - genetic engineering
      • comment
        • cultural evolution, which itself emerges from biological evolution is acting upon itself to create new life forms that have no evolutionary backstory
        • this is tantamount to playing God
        • progress traps often emerge out of the large speed mismatch between cultural and biological/genetic evolution.
        • Nowhere is this more profound than in bioengineering of new forms of life with no evolutionary history
        • This presents profound ethical challenges
    1. I highly recommend using GET forms to implement this as SvelteKit will intercept and retain client-side navigation on form submission. https://kit.svelte.dev/docs/form-actions#get-vs-post Submitting the form will update the URL with the search parameters matching the input names and values.

      ```html

      <form action="/baz"> <label> Query <input name="query"> </label> <label> Sort <input name="sort"> </label> <label> Order <input name="order"> </label> <label> Page <input name="page"> </label> </form>

      ```

  6. Aug 2023
  7. Jul 2023
    1. ```idl dictionary NavigatorUABrandVersion { DOMString brand; DOMString version; };

      dictionary UADataValues { DOMString architecture; DOMString bitness; sequence<NavigatorUABrandVersion> brands; DOMString formFactor; sequence<NavigatorUABrandVersion> fullVersionList; DOMString model; boolean mobile; DOMString platform; DOMString platformVersion; DOMString uaFullVersion; // deprecated in favor of fullVersionList boolean wow64; };

      dictionary UALowEntropyJSON { sequence<NavigatorUABrandVersion> brands; boolean mobile; DOMString platform; };

      [Exposed=(Window,Worker)] interface NavigatorUAData { readonly attribute FrozenArray<NavigatorUABrandVersion> brands; readonly attribute boolean mobile; readonly attribute DOMString platform; Promise<UADataValues> getHighEntropyValues (sequence<DOMString> hints ); UALowEntropyJSON toJSON (); };

      interface mixin NavigatorUA { [SecureContext] readonly attribute NavigatorUAData userAgentData ; };

      Navigator includes NavigatorUA; WorkerNavigator includes NavigatorUA; ```

    1. In the West, the primary impact of the idea has been on literature rather than science: "stream of consciousness as a narrative mode" means writing in a way that attempts to portray the moment-to-moment thoughts and experiences of a character. This technique perhaps had its beginnings in the monologues of Shakespeare's plays and reached its fullest development in the novels of James Joyce and Virginia Woolf, although it has also been used by many other noted writers.[184]

      Using stream of consciousness for writing, as a narrative form (for me, this portrays more authenticity, maybe even a way to communicate inspirations as it first strook the person, without filter).

    1. n comparing themarabi harmonic structure and its seminalposition in vernacular jazz improvisatory practice in South Africa to that of the AfricanAmerican blues in its relationship to jazz, Ballantine explained its basis ‘on a cyclicpattern’ as ‘stretch[ing] over four measures, with one measure for each of the followingchords: I – IV - I 6/4 - V’ (Ballantine 1993:26)
  8. bafybeihzua2lldmlutkxlie7jfppxheow6my62x2qmywif2wukoswo5hqi.ipfs.w3s.link bafybeihzua2lldmlutkxlie7jfppxheow6my62x2qmywif2wukoswo5hqi.ipfs.w3s.link
    1. forms might be asso-ciated with structures
      • comment
        • A Deep Humanity analog to the word "structure" is the word "pattern"
        • Hence we have the equivalency:
          • platonic form = structure = pattern
        • and the author's prior statement that
          • These mental and subsequently materialized ideas then
          • have the potential to
            • influence the physical world and to
              • feedback into the mental world to produce additional structure and
              • physical material
        • is equivalent to Indyweb / Deep Humanity statement that
          • individual and collective learning are deeply entangled
          • cumulative cultural evolution is mediated through this entanglement
          • that is best represented by the idea of dependent origination
          • individuals articulate ideas and externally present them to other consciousnesses
          • a multi-meaningverse exists whenever social learning occurs and
            • multiple perspectives, multiple meaningverses converge
          • each individual perspective surfaces their own adjacencies of ideas drawn from their own salience landscape
            • which in turn emerge from their own respective unique lebenswelt
        • We might also say that to the degree that internal patterns of the symbolosphere correlate with external patterns of the physiosphere, then
        • that is the degree to which the universal pattern manifests in both nature nature and in human nature
        • since humans (human nature) are an expression of nature (nature nature), we should not expect otherwise
    1. ven belo

      اقا دقت کن که من form در یک جلسه قبل گفتم حالا اومده تو صفحه student.html یک فرم گذاشته که تو فرمش گفته بفرس به result (البته من تو digital occean خوندم که باید بفرسته به همون جایی که ازش form را گرفته و این برام عحیبه) به هر حال در result گفته با post بگیر و اطلاعات را از طریق request.form بگیر و حالا با صفحه result اون اطلاعات را به کاربر نشون بده. خیلی ساده و قشنگ

    1. Inside

      شاهکارش برای Handle کردن FORM. خیلی خووبه یاد بیگیر

    2. The most important thing to know about this form is that it performs a POST request to the same route that generated the form.

      این فرم POST Request را میفرسته به همون URL که این Form را Generate کرده. دقتم داشته باش که این فیلد ها را بعدا میشه در Object به نام Form گرفت و اسمشم همونایی که در Attribute به نام name گذاشتیم که اینجا language و Framework است

    3. To de

      جالبه برای درست کردن Form اومده هر دو تابع GET و POST را گذاشته و اینجوری تو موقع Get که فرم را میفرسته

    4. Form data

      از اینجا در مورد object به نام Form توزیح می دهد که اطلاعاتی که تو اطلاعاتی که در From و در تابع POST میفرستی میاد در Object به نام Form

  9. Jun 2023
    1. With the exception of the blues, the rhythm changes progression is probably the mostimportant chord progression in jazz. The term “rhythm changes” refers to a 32-bar AABAform based on the harmonic structure of “I Got Rhythm” by George and Ira Gershwin.The song appeared in the Aarons and Freedley production Girl Crazy (1930) andoriginally featured a 34-bar AABA form with a two-bar extension in the last A section.The two-bar extension was eventually cut and the chord changes of the last A sectionreplicated those from the second A. A newly composed line based on the rhythm changesprogression is known as a contrafact. The enormous popularity of rhythm changes hasbeen well documented by an ever-increasing number of composed contrafacts andrecordings
    2. “Moose the Mooche” features a 32-bar AABA form.3 The first A section is harmonicallyopen and ends on a ii 7–V7 in m. 8. The second A features a full-cadential closure on I inm. 16. The bridge cycles through a cycle of dominant 7ths progression and interruptsthe form on V 7 in m. 24. The final A section is harmonically closed but, in order to allowfor the circularity of the chorus improvisation, it features a Imaj7–VI 7–ii7–V7 turnaroundprogression (or any acceptable substitute variant).The tonic is prolonged in mm. 1–4 and then morphed into a V 7/IV in m. 5. The tonicprolongation takes the form of an idiomatic Imaj 7–vi7–ii7–V7 progression, which lendsitself to a variety of harmonic substitutions. The subdominant controls mm. 5–6 and iscapable of many surface realizations. Next, mm. 7–8 proceed to the dominant, which canalso be idiomatically expanded, transformed, and/or confirmed. The A section of rhythmchanges is also known as an eight-bar blues because it contains the harmonic paradigmof the blues: tonic in m. 1, subdominant in m. 6, and dominant in m. 8.4 This foreshortenedblues preserves the structural weight of the fundamental chords, as the tonic controls thelongest span (mm. 1–4), the subdominant occupies the shorter span (mm. 6–7), and thedominant (m. 8) becomes subject to various harmonic modifications
    3. The solo is unified through the use of similar melodic devices at the same locations withinthe form. For instance, in mm. 4, 12, and 28 of the form, Jones frequently employs adom7(≥5) chord (mm. 4, 12, 36, 92, 100, and 108).
    4. Chapter 23 examines the 32-bar ABAC form and its two tonal variants: on-tonic and off-tonic. As an example of this formal design, “All Of You” is analyzed
    5. Chapter 22 undertakes a study of song forms and its most common type: the 32-barAABA. Two tonal variants, on-tonic and off-tonic, are examined and, as an example ofthe on-tonic AABA formal design, “Have You Met Miss Jones?” is analyzed.
    6. hapter 24 provides a list of standard tunes with extended and unusual formal designs.As an example of the extended form, “Dream Dancing” is analyzed
    7. Chapter 18 provides an analysis of Charlie Parker’s “Confirmation” as a representativecomposition from the Bebop Era. It offers a transcription of the solo by the pianist HankJone
    8. Chapter 19 provides an analysis of Charlie Parker’s “Moose the Mooche” and Hank Jones’simprovised solo on the tune. This chapter also proposes a pedagogy of rhythm changesimprovisation.
    9. The blues is an American art form. Originally, blues were primarily sung, with one of theobjectives being to tell a story as vividly as possible. To tell stories, blues singers usedsimple repeated phrases charged with a variety of expressive devices. The ability to tell thestory from one’s perspective came to represent blues performance practice in particular,and jazz improvisation in general. The familiar saying that “your solo should tell a story”takes on a completely different meaning when we consider whence it came and howintricate life’s stories can really be. Early blues practitioners were unconstrained by theform of the blues as the duration of improvised lyrics often influenced the length of
    10. Chapter 9 discusses the most important form in jazz, the blues, examines the structureof the blues scale, and provides chord–scale relationships for the basic and minor bluesprogressions
    1. I always like to point to a text that changed my thinking about this question, and that’s Kathleen Yancey’s “Writing in the 21st Century.” It basically states that students are writing more than ever before. If you were to challenge a group of students (which I have) to document how many text messages, TikTok, IG posts, Facebook posts, tweets, emails they send out in a day, the sheer volume of writing is staggering. Why we don’t value that writing in academia is the question for me.

      interesting point! some other things in my head:

      1) in addition to our increased writing endeavors, we've also been engaging in extensive reading as well, but our reading material has evolved beyond books, encompassing the plethora of content available in the vast expanse of cyberspace

      2) and while the quantity of reading has expanded significantly, it is equally intriguing to recognize that the nature of these texts has shifted towards shorter formats—tweets, ig post captions, microblogs, etc

      3) AND lastly, the act of reading has swiftly evolved into the realm of listening, with the emergence of podcasts, audiobooks, listenable videos, and similar forms of content consumption

  10. May 2023
    1. Circles and Time: A Theory of Structural Organization of Rhythm in African Music

      cannot mark up text in frames - hence the markup on the referencing toc page

  11. Apr 2023
    1. (6-10+ minutes) engaging videos that appear to do well on YouTube

      This number(6-10minutes) is appealing to most viewers as it is concise and delivers a information in short bursts. It is ideal for quick tutorials, news and entertainment.

  12. Mar 2023
    1. <b-form-invalid-feedbac

      خیلی جالبته که از این میشه برای feedback استفاده کرد

  13. Feb 2023
    1. button-variant

      برای تعیین نوع اون رنگ به کار میره و خیلی جالبه

    2. locales

      با تعیین کردن نوع local میتونی نوع تقویمی که انتخاب کردی را بزنی. جالبه فارسی خیلی خوب handle می کنه.

    3. button-only pr

      این prop برای تعیین اینکه بتونی اون متن داخل فیلد را عوض کنی و فقط با زدن اون دکمه اون modal باز بشه

    4. size p

      این prop برای تعیین size اون دکمه به کار می رود.

    5. hidden

      موقع بسته شدن پنجره اطلاعات

    6. input

      موقع ورود اطلاعات

  14. Jan 2023
    1. 个人学习可能取决于他人行为的主张突出了将学习环境视为一个涉及多个互动参与者的系统的重要性
  15. Dec 2022
    1. Through her writing Easterling often forces architects to re-envision their role in the making of space around the world, extolling the virtues of knowing how versus knowing what. She also encourages them to consider creating “active forms” — time-released protocols that manage spatial levers, exchanges, and switches — in addition to “object forms,” or what we commonly think of as buildings.

      [[Active form]] consist of dispositions that materialize as new forms.

    1. His note taking technique has a high distraction potential and is time consuming.

      highlight from https://www.reddit.com/user/ManuelRodriguez331/ <br /> https://www.reddit.com/r/Zettelkasten/comments/zigwo3

      Anecdotal evidence of how some might view zettelkasten note-taking practices, particularly when they have no end goal or needs in mind.

      Form follows function

      /comment/izs0u3b/?utm_source=reddit&utm_medium=web2x&context=3

  16. Nov 2022
    1. on

      این جا یه مفهومی داره به نام type که خب این میتونه email یا number یا چیزهای مختلفی باشه

  17. Oct 2022
  18. Sep 2022
    1. IntertextsAs Jonathan Culler writes: “Liter-ary works are not to be consideredautonomous entities, ‘organicwholes,’ but as intertextual con-structs: sequences which havemeaning in relation to other textswhich they take up, cite, parody,refute, or generally transform.” ThePursuit of Signs (Ithaca, NY: CornelUniversity Press, 1981), 38.

      Throughout Rewriting: How To Do Things With Texts (Utah State University Press, 2006) Joseph Harris presents highlighted sidebar presentations he labels "Intertexts".

      They simultaneously serve the functions of footnotes, references, (pseudo-)pull quotes, and conversation with his own text. It's not frequently seen this way, but these intertexts serve the function of presenting his annotations of his own text to model these sorts of annotations and intertextuality which he hopes the reader (student) to be able to perform themselves. He explicitly places them in a visually forward position within the text rather than hiding them in the pages' footnotes or end notes where the audience he is addressing can't possibly miss them. In fact, the reader will be drawn to them above other parts of the text when doing a cursory flip through the book upon picking it up, a fact that underlines their importance in his book's thesis.


      This really is a fantastic example of the marriage of form and function as well as modelling behavior.


      cc: @remikalir

    1. there's actually at least one other science fiction book from the 50s written by alice mary norton who used to 00:07:07 write under andre norton pseudonym who talked about a relatively similar concept in the time traders although the idea here was a little bit different here the author explained that pretty much all the signs of modern civilization are going to be completely 00:07:20 erased by the time the next glacial period begins in other words everything you see around you all the cities all the technology every major building every major structure we've ever built will basically be gone there will be no 00:07:33 signs of it left and within just a few million years there will be no one to tell the story and that's of course not really far from the truth as a matter of fact that's exactly what the scientists in this hypothesis propose and explain as well and that's of course why it 00:07:46 makes it so difficult to either prove or disprove this we currently have no idea if any of this is correct here i actually wanted to show you this beautiful illustration by one of the authors we basically have no idea if back in the 00:07:58 day when the dinosaurs were around they also had some kind of a super intelligent species that would drive their own versions of cars have their own versions of smartphones and eventually result in their own demise over time all of this would be gone to 00:08:11 history because of the way that geology works on our planet but in this paper the scientists decided to actually work out any potential ideas or experiments we can conduct on the planet to try to find out if this actually existed and if 00:08:25 it was possible in the past

      !- similar to : common speculation of extinct civilization in Earth's history - Many people have thought about this possibility - Planet of the apes storyline was premised on this - Analog in spiritual practice, practicing emptiness and the Heart Sutra - form is emptiness, emptiness is form - individuality is all lost when we die and are endlessly recycled into other parts of the universe

  19. Aug 2022
    1. ```js (function () { var html = document.documentElement.innerHTML;

      /** 
       * the iframe's onload event is triggered twice: once when appending it to the document, 
       * and once when the form finishes submitting and the new URL is loaded 
       */
      var loaded = 0;
      
      var iframe = document.createElement('iframe');
      
          // unique name, to make sure we don't create any conflicts with other elements on the page
          iframe.name = 'bookmarklet-' + Math.floor((Math.random() * 10000) + 1);
          iframe.style.display = 'none';
      
          iframe.onload = function () {
              // remove the iframe from the document on the second firing of the onload event
              if (++loaded == 1) {
                  return;
              }
      
              // you can also alert('Done!') here :)
              document.body.removeChild(iframe);
          };
      
      var form = document.createElement('form');
          form.method = "POST";
          form.action = "http://requestb.in/sbnc0lsb?nocache=" + Math.random();
          form.target = iframe.name;
      
      var textarea = document.createElement('textarea');
          textarea.name = 'source';
          textarea.value = html;
      
      form.appendChild(textarea);
      iframe.appendChild(form);
      
      document.body.appendChild(iframe);
      
      form.submit();
      

      })(); ```

  20. Jul 2022
    1. First we have to understand that the opposites need each other, revolve around each other, actually make one complete dynamic. Form is on the left and emptiness is on the right of the chart.  Form needs emptiness and emptiness needs form. They are actually not separated but intellectually we conceive them as separate and opposite.

      Explanation of Trungpa Rinpoche's Diamond Sliver

      Form and Emptiness need each other to exist and be understood. Let's unpack this. All forms can be broken down further and further into smaller and smaller bits...in the quantum mechanical limits, into emptiness. At the micro level, it is so tiny, it is no longer recognizable as form. And all this quantum mechanical soup is what makes up all forms.

      So the above is a statement using science, one perspective, which is also a position so also incomplete.It (science) is also propositional.

  21. Jun 2022
    1. I have not been doing deep dive writing about the topics that I have long centered this blog around — teaching, writing, music, art, collaborations, etc.

      Maybe it is time to put on the journalist hat and write some long form essays that take a whole summer to write. Perhaps a research paper on teacher 'burnout"? I would love to read that.

  22. Apr 2022
    1. (20) James 💙 Neill—😷 🇪🇺🇮🇪🇬🇧🔶 on Twitter: “The domain sending that fake NHS vaccine consent hoax form to schools has been suspended. Excellent work by @martincampbell2 and fast co-operation by @kualo 👍 FYI @fascinatorfun @Kit_Yates_Maths @dgurdasani1 @AThankless https://t.co/pbAgNfkbEs” / Twitter. (n.d.). Retrieved November 22, 2021, from https://twitter.com/jneill/status/1442784873014566913

    1. All of the major books that were to follow – Sade /Fourier / Loyola (1997), The Pleasure of the Text (1975), RolandBarthes by Roland Barthes (1977), A Lover’s Discourse (1990), andCamera Lucida (1993) – are texts that are ‘plural’ and ‘broken’, andwhich are ‘constructed from non-totalizable fragments and fromexuberantly proliferating “details”’ (Bensmaïa, 1987: xxvii-xxxviii).In all of the above cases the fragment becomes the key unit ofcomposition, with each text structured around the arrangement ofmultiple (but non-totalisable) textual fragments.

      Does the fact that Barthes uses a card index in his composition and organization influence the overall theme of his final works which could be described as "non-totalizable fragments"?

  23. Mar 2022
    1. call and response

      A Poem for The Minds Within instead of A Poem for Two Voices…. Clever Terry, as always.

  24. Feb 2022
  25. blogs.baruch.cuny.edu blogs.baruch.cuny.edu
    1. nd wat

      "clay" elicits ideas of rebirth and reformation; a new shape, a new you.

      "wattle" as well--is symbolically laden with anatomy connotations, but also can be reference to twings, and other images of nature.

  26. Dec 2021
  27. Oct 2021
  28. Sep 2021
  29. Aug 2021
    1. Work From Home Trends: Future of Remote Working in Post Covid-19 WorldDmitry ChekalinChief Executive OfficerTrendsHomeBlogTechnologyWork From Home Trends: Future of Remote Working in Post Covid-19 WorldFeb 10, 202111 min readGlobal lockdown due to Covid-19 made companies extensively shift to working from home. Apparently, telecommuting integration turns out to be deeper than we all expected. It is clear now that online work from home is going to be the “new normal” in 2021 and beyond. As such, to stay on track, you need to keep your eye on upcoming changes. In this article, we collected the main remote work trends to help you better adapt to the post-pandemic era. Here, you will also learn the key reasons why remote working is the future.

      Global lockdown due to Covid-19 made companies extensively shift to working from home. Apparently, telecommuting integration turns out to be deeper than we all expected.

      It is clear now that online work from home is going to be the “new normal” in 2021 and beyond. As such, to stay on track, you need to keep your eye on upcoming changes.

      In this article, we collected the main remote work trends to help you better adapt to the post-pandemic era. Here, you will also learn the key reasons why remote working is the future.

  30. Jun 2021
    1. I feel like I may have just stumbled on a back alley book club on design.

      It's digital books+Hypothes.is+Fight Club...

      The rules of Back Alley Book Club:

      1. We don't talk about Back Alley Book Club.
      2. We don't talk about Back Alley Book Club.

      ...

      1. If this is your first night at Back Alley Book Club, you have to annotate.

  31. Apr 2021
  32. Mar 2021
  33. Feb 2021
    1. The outcome returned by .run can be used in forms as though it were an ActiveModel object.
    2. You can also create a form object by calling .new on the interaction.
    1. ActiveModel::Form happened because the "tableless model" presented in RailsCast 219 wasn't as powerful as the "real deal" from RailsCast 193.
    1. So how are we going to create a model that doesn’t have a database table behind it? There are several potential solutions including various plugins but we’re going to use the method described in an entry on the Code Tunes blog. This shows a techinque that involves overriding a couple of methods in an ActiveRecord model and then manually defining the columns in the model file rather than in the database table. In our Recommendation model we’ll add in the two overridden methods and then use the column class method to define the columns in a similar way to how they’re defined in a migration file.

      Does this still work in Rails 6? I wonder.

    1. Why process, not save? This is entirely up to you. However, it's good to stay consistent across your team so there's no confusion. I began using save but found there are some cases for forms where you aren't saving anything, such as when you are just triggering a job or push-notification. I found using process fits more cases so that's what I use. This is also typically the only method that is public on my forms.

      process is a good name, but I think this is evidence that this object is not the form object itself, but a form processor (as I like to call it) or a "workflow" object (like https://github.com/gogogarrett/reform_example/blob/master/app/forms/workflows/user_workflow.rb), which wraps a form object.

    2. I've been over the use case for form objects in this post on moving away from fat models but wanted to go into more detail on how and why I use them here. I really believe in the utility of these objects; their ability to abstract and isolate logic in a simple and effective manner is unmatched, IMO.
    3. The basic classification of a form object is a class that contains writable attributes, validations and logic to persist the attributes to ActiveRecord objects. These forms can also include other side-effects like background job triggers, emails, and push-notifications etc. The simplest way to understand the concept is to think of them as a representation of a controller action where all of the business logic that happens in that controller action is abstracted into a form object.

      This definition may be a bit too broad. Others (like Reform) define it to have smaller scope — only the part where it persists/validates attributes. The other side effects might be better to put in a different location, like the controller action, or a service/processor object that has a form object.

  34. Jan 2021
  35. Nov 2020
  36. Oct 2020
    1. I use a mutator and use it's changeValue function to 'change' the value of the relevant field (I supply the same value). This in turn notifies all relevant parties of the change to the form's state, and a validation is triggered.

      Nearly duplicate annotation here: https://hyp.is/I2t56hjLEeuPXIsZG-jYog/xtzmf.csb.app/

    2. Some user experience issue with the proposed solution: This won't show up the inline field error message if you just hit on submit and other fields already contained errors since the code on the onSubmit won't be hit
    3. This is for a time picker. If you're picking times for today, you may pick a time that is 15 minutes from now. It's valid now because it's currently in the future. If you don't touch the form for the next 20 minutes then click submit, the submission should be prevented because your selected time is now 5 minutes in the past.
    1. Form Validation
    2. Form State Management
    3. return { type: "COUNTRY_BLACK_LIST", succeeded, message: succeeded ? "" : "This country is not available" }
    4. It is easily extensible (already implemented Final Form and Formik plugin extensions).
    5. React Final Forms is a great library, an enhanced version of Redux Form
    6. If you want to implement a form with a superb User Experience, you have to take care of many variables:
    7. Form validation can get complex (synchronous validations, asynchronous validations, record validations, field validations, internationalization, schemas definitions...). To cope with these challenges we will leverage this into Fonk and Fonk Final Form adaptor for a React Final Form seamless integration.
    8. Just let the user fill in some fields, submit it to the server and if there are any errors notify them and let the user start over again. Is that a good approach? The answer is no, you don't want users to get frustrated waiting for a server round trip to get some form validation result.
  37. Sep 2020
    1. I love how they have this example with plain JS to show how slim and simple it can be even when not using react and react-final-form. It demystifies things so you can see how it works and how it would be if not using React (which in turn helps you appreciate what react/react-final-form do for you).

    1. Form validation is hard. That's why there are so many different form handling libraries for the popular web frameworks. It's usually not something that is built-it, because everyone has a different need and there is no one-fit-all solution.
  38. Aug 2020
    1. Allows batch updates by silencing notifications while the fn is running. Example: form.batch(() => { form.change('firstName', 'Erik') // listeners not notified form.change('lastName', 'Rasmussen') // listeners not notified }) // NOW all listeners notified