784 Matching Annotations
  1. Feb 2021
    1. For this one we'll define a helper method to handle raising the correct errors. We have to do this because calling .run! would raise an ActiveInteraction::InvalidInteractionError instead of an ActiveRecord::RecordNotFound. That means Rails would render a 500 instead of a 404.

      True, but why couldn't it handle this for us?

  2. Jan 2021
    1. If components gain the slot attribute, then it would be possible to implement the proposed behavior of <svelte:fragment /> by creating a component that has a default slot with out any wrappers. However, I think it's still a good idea to add <svelte:fragment /> so everyone who encounters this common use case doesn't have to come up with their own slightly different solutions.
    1. Popper for Svelte with actions, no wrapper components or component bindings required! Other Popper libraries for Svelte (including the official @popperjs/svelte library) use a wrapper component that takes the required DOM elements as props. Not only does this require multiple bind:this, you also have to pollute your script tag with multiple DOM references. We can do better with Svelte actions!
  3. Dec 2020
    1. Sometimes, systems just scale the problemA UI design system is more than the code of a component library. It’s more than the colors, styles, and margins of your elements. It’s an ever-growing and ever-evolving creature that entails your brand and your user’s feelings.

      If you don't understand the problem - you can [[scale the problem instead of solve the problem]], and it's important to remember that a [[design system is more than a component library]]

  4. Nov 2020
    1. Is there any service that does this sort of alert when my library gets a book I want?

      Not quite the functionality you're looking for, but in the same sort of vein as WorldCat:

      Library Extension is a browser extension that works on Amazon, Goodreads (and possibly other book sites) that allows you to register your favorite local libraries, and when you look up books on those services, it automatically searches and shows you which are available at your local library. One click and you can usually download or reserve a copy quickly for pick up.

  5. Oct 2020
    1. 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.
    1. I'm suggesting there should be a way to write lifecycle related code that also responds to changing props, like how useEffect works. I think how React handles this could be a good source of inspiration.
    2. Svelte doesn't re-render, so you need to respond to component mount/dismount and prop changes separately as they are distinct concepts and never tied together, unlike in React.
    1. A library is a set of functions you can use in your project. It does not care how and where you use that functionality. A framework tells you how to write code with the framework you are working with so you can make the best use of patterns, architecture, and functions in a framework. A framework can encompass a library.
  6. Sep 2020
    1. When you publish this module, you do not want to bundle React, for the reasons described above. (It would be even worse to bundle React in a library, because then its copy would duplicate that loaded by the application!) But the fix is slightly different for a library than an application. In this library's Rollup configuration, we only want to specify external, not globals:
    1. Svelte will not offer a generic way to support style customizing via contextual class overrides (as we'd do it in plain HTML). Instead we'll invent something new that is entirely different. If a child component is provided and does not anticipate some contextual usage scenario (style wise) you'd need to copy it or hack around that via :global hacks.
    2. The main rationale for this PR is that, in my hones opinion, Svelte needs a way to support style overrides in an intuitive and close to plain HTML/CSS way. What I regard as intuitive is: Looking at how customizing of styles is being done when applying a typical CSS component framework, and making that possible with Svelte.
    3. Explicit interfaces are preferable, even if it places greater demand on library authors to design both their components and their style interfaces with these things in mind.
    4. The RFC is more appropriate because it does not allow a parent to abritrarily control anything below it, that responsibility still relies on the component itself. Just because people have been passing classes round and overriding child styles for years doesn't mean it is a good choice and isn't something we wnat to encourage.
    1. The point of the feature is to not rely on the third-party author of the child component to add a prop for every action under the sun. Rather, they could just mark a recipient for actions on the component (assuming there is a viable target element), and then consumers of the library could extend the component using whatever actions they desire.
    1. The more I think about this, the more I think that maybe React already has the right solution to this particular issue, and we're tying ourselves in knots trying to avoid unnecessary re-rendering. Basically, this JSX... <Foo {...a} b={1} {...c} d={2}/> ...translates to this JS: React.createElement(Foo, _extends({}, a, { b: 1 }, c, { d: 2 })); If we did the same thing (i.e. bail out of the optimisation allowed by knowing the attribute names ahead of time), our lives would get a lot simpler, and the performance characteristics would be pretty similar in all but somewhat contrived scenarios, I think. (It'll still be faster than React, anyway!)
  7. Aug 2020
  8. Jul 2020
  9. Jun 2020
  10. May 2020
    1. How do I find my bookmarks? To find a page that you've bookmarked, just start typing its name in the address bar. As you type, a list of web pages that you've bookmarked, tagged and visited will appear. Bookmarked pages will have a star next to them. Simply click one of the pages and you'll be taken there instantly. To learn more, see Address bar autocomplete in Firefox - Search your bookmarks, history and tabs.
  11. Apr 2020
    1. IMSLP stands for International Music Score Library Project and started on February 16, 2006. It is a project for the creation of a virtual library of public domain music scores based on the wiki principle; it is also more than that. Users can exchange musical ideas through the site, submit their own compositions, or listen to other people's composition; this makes IMSLP an ever-growing musical community of music lovers for music lovers.
    1. How Long Does Copyright Protection Last? How long does a copyright last? The term of copyright for a particular work depends on several factors, including whether it has been published, and, if so, the date of first publication. As a general rule, for works created after January 1, 1978, copyright protection lasts for the life of the author plus an additional 70 years. For an anonymous work, a pseudonymous work, or a work made for hire, the copyright endures for a term of 95 years from the year of its first publication or a term of 120 years from the year of its creation, whichever expires first. For works first published prior to 1978, the term will vary depending on several factors. To determine the length of copyright protection for a particular work, consult chapter 3 of the Copyright Act (title 17 of the United States Code). More information on the term of copyright can be found in Circular 15a, Duration of Copyright, and Circular 1, Copyright Basics. Do I have to renew my copyright? No. Works created on or after January 1, 1978, are not subject to renewal registration. As to works published or registered prior to January 1, 1978, renewal registration is optional after 28 years but does provide certain legal advantages. For information on how to file a renewal application as well as the legal benefit for doing so, see Circular 15, Renewal of Copyright, and Circular 15a, Duration of Copyright.
    1. Autobiography of Andrew Carnegie Andrew CARNEGIE (1835 - 1919) This autobiography of Andrew Carnegie is a very well written and interesting history of one of the most wealthy men in the United states. He was born in Scotland in 1835 and emigrated to America in 1848. Among his many accomplishments and philanthropic works, he was an author, having written, besides this autobiography, Triumphant Democracy (1886; rev. ed. 1893), The Gospel of Wealth, a collection of essays (1900), The Empire of Business (1902), and Problems of To-day (1908)]. Although this autobiography was written in 1919, it was published posthumously in 1920. (Summary by William Tomcho)
    1. About LibriVox LibriVox Objective To make all books in the public domain available, for free, in audio format on the internet. Our Fundamental Principles Librivox is a non-commercial, non-profit and ad-free project Librivox donates its recordings to the public domain Librivox is powered by volunteers Librivox maintains a loose and open structure Librivox welcomes all volunteers from across the globe, in all languages
    1. Project Gutenberg is a library of over 60,000 free eBooks. Choose among free epub and Kindle eBooks, download them or read them online. You will find the world's great literature here, with focus on older works for which U.S. copyright has expired. Thousands of volunteers digitized and diligently proofread the eBooks, for enjoyment and education.
    1. There are, indeed, at least two projects independent of us, which are developing software that can read 1Password data (once you’ve given them your Master Password.). James Brown (@RogueLazer) has developed some Python libraries which can – given the Master Password – read both the Agile Keychain Format (1Password 2 and 3 for Mac, 1Password for Windows) and the Cloud Keychain Format (1Password 4). Indeed, RogueLazer’s efforts and queries have led to substantial improvements in our documentation.
  12. Mar 2020

    Tags

    Annotators