13 Matching Annotations
  1. Jan 2020
    1. Unless blank=False is set on the field along with a default then a label containing "---------" will be rendered with the select box.

      Seems like setting blank=True tells Django to allow a TextField to be set to an empty string (even if it is not one of the choices)

  2. Dec 2019
    1. The foundation of GraphQL is its type system. There are basic types like String and Integer and there are complex types that have named attributes.

      Type system is the foundation of GraphQL

    1. Dependency Injection, in its basic form of passing functions into components, keeps things testable, and visualizable in tools like Storybook.

      Testability via dependency injection

    2. make stylable all of the visual states of your application - no clicking around required - just jump right to the state

      Storybook value proposition: state inventory without requiring interactions

    3. The easy, functional-programming concept that a component can receive both functions AND data as arguments

      Injecting a function, a fp concept, to enable testing

    4. in React, the component doesn't encapsulate completely around the lookup method. It provides a default implementation but allows its environment to override it

      React functional component receives method to enable testing

  3. Nov 2019
    1. What happens when multiple components in the same app want the same data? With the current implementation, each component would have to refetch data from the server. We will try to improve our implementation to handle caching and concurrent access to the same asynchronous data store.

      Caching and request de-duplication for multiple components that request the same data

    1. if you’re building for both browsers and Node.js since you’ll have to bundle a build for browsers as well

      Babel and source maps, do we still need them?

    2. One of the more confrontational parts of JavaScript development has always been its module system
    3. What once began as a humble side project on Reddit, which you can see here, has now grown so much that it has fundamentally transformed how we build and develop Node.js applications.
    1. whenever there's a lot going on, computers (but mostly humans) will get stuff wrong. In the 6 lines of our component, rendering 2 node types, we change syntaxes from JS to JSX, and back, 8 times! Count them - it's like JS(JSX(JS(JSX(JS))))! This is not the simplest code we can write.

      render() {

        { languages.map(item => (
      • {item}
      • )) }
      }

    1. REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 100 }
    1. define an object inside your React function component, it is not going to be referentially equal to the last time that same object was defined (even if it has all the same properties with all the same values)

      Referential equality in React