260 Matching Annotations
  1. Oct 2020
    1. Especially when coming from a framework like React, it might feel very tempting to start creating a component wrapper around the input (i.e. <input> becomes <Input/>) and add your custom event handlers in there.This is a great approach in React, but not so much in Svelte. Why, you ask?Well, Svelte (at least in its current form, v3) really shines when you have native DOM elements at your disposal. You can use transition directives, conditionally switch CSS classes, bind to the current value with ease, and more.
  2. Sep 2020
    1. setContext / getContext can only be used once at component init, so how do you share your API result through context? Related: how would you share those API results if the call was made outside of a Svelte component, where setContext would be even more out of the question (and the API call would arguably be better located, for separation of concerns matters)? Well, put a store in your context.
    1. The problem with working around the current limitations of Svelte style (:global, svelte:head, external styles or various wild card selectors) is that the API is uglier, bigger, harder to explain AND it loses one of the best features of Svelte IMO - contextual style encapsulation. I can understand that CSS classes are a bit uncontrollable, but this type of blocking will just push developers to work around it and create worse solutions.
  3. Aug 2020
  4. Jul 2020
    1. While stylesheets can be reworked relatively easily with AMP by inlining the CSS, the same is not true for JavaScript. The tag 'script' is disallowed except in specific forms. In general, scripts in AMP are only allowed if they follow two major requirements: All JavaScript must be asynchronous (i.e., include the async attribute in the script tag). The JavaScript is for the AMP library and for any AMP components on the page. This effectively rules out the use of all user-generated/third-party JavaScript in AMP except as noted below.
    1. Creating and calling a default proc is a waste of time, and Cramming everything into one line using tortured constructs doesn't make the code more efficient--it just makes the code harder to understand.

      The nature of this "answer" is a comment in response to another answer. But because of the limitations SO puts on comments (very short length, no multi-line code snippets), comment feature could not actually be used, so this user resorted to "abusing" answer feature to post their comment instead.

      See

  5. Jun 2020
  6. May 2020
    1. Traditional CMSes are "coupled", which means that the CMS also takes care of the presentation layer responsible for delivering the content to the clients. The content and the presentation are closely interlinked. Typically, content managers create and manage their content through tools like WYSIWYG editors. The CMS then delivers the content according to the front-end delivery layer built into the CMS. Typically, a traditional CMS supports your websites but not much else.
  7. Apr 2020
    1. Gray discusses the ‘bandwidth of consciousness’. He cites figures from Vincent Deary who has calculated that overall we process some 14 million bits of information per second. But the bandwidth of conscious action and thought, however, is only 18 bits!
  8. Mar 2020
  9. Jan 2020
    1. ssh doesn't let you specify a command precisely, as you have done, as a series of arguments to be passed to execvp on the remote host. Instead it concatenates all the arguments into a string and runs them through a remote shell. This stands out as a major design flaw in ssh in my opinion... it's a well-behaved unix tool in most ways, but when it comes time to specify a command it chose to use a single monolithic string instead of an argv, like it was designed for MSDOS or something!
  10. Dec 2019
    1. Seriousness is bad. It does not allow to go beyond what is accepted now , so there is a risk of being stuck in a local maximum. At first, the new formats seem ridiculous and incomprehensible (see, for example, a twitter feed from a decade ago ), but only in this way do we find something truly working.
    1. plasmid-based circuits suffer from multiple limitations: high intercellular variation in gene expression, genetic instability from random partitioning of plasmids during cell division, and plasmid loss in environments for which antibiotic use could disrupt native microbial communities or is economically infeasible
  11. Nov 2019
  12. Mar 2018
    1. small beginnings help instructors focus on what DH they can teach effectively. To be frank, I was not prepared to teach all of the DH in that “Intro to Digital Humanities” course I proposed.

      I appreciate the author's recognition of his limitations. I do not think teachers ought to assume they are able to "do it all". My teacher did a great job this term understanding her personal limitations by bringing in outside sources to assist her in teaching digital tools. It not only made class interesting by switching up the instructor, but it also provided us with another informed resource to reference.

  13. Feb 2014
    1. These rights are quali- fied, however, by the application of various limitations set forth in the next several sections of the Act, §§107 through 122. Those sections, typically entitled “Limitations on exclusive rights,” include, for example, the principle of “fair use” (§107), permission for limited library archival reproduction, (§108), and the doctrine at issue here, the “first sale” doctrine (§109)
      • §107 - the principle of “fair use”
      • §108 - permission for limited library archival reproduction
      • §109 - the “first sale” doctrine
    1. Finally, with the current technology, some types of writing are probably outside the reach of MOOCs. There is no literature to suggest that either AES or CPR can accurately assess figurative or creative pieces, or original research pieces. Some type of peer review software that relies heavily on the students being closer to experts in their own right might bring these types of writing into larger courses; but, not every undergraduate course that uses writing as a form of assessment will translate to the MOOC format.
  14. Sep 2013
    1. It is clear, then, that rhetoric is not bound up with a single definite class of subjects, but is as universal as dialectic; it is clear, also, that it is useful. It is clear, further, that its function is not simply to succeed in persuading, but rather to discover the means of coming as near such success as the circumstances of each particular case allow. In this it resembles all other arts. For example, it is not the function of medicine simply to make a man quite healthy, but to put him as far as may be on the road to health; it is possible to give excellent treatment even to those who can never enjoy sound health.

      defining rhetoric's worth and limitations