42 Matching Annotations
  1. Apr 2021
  2. Mar 2021
    1. Your validation functions should also treat undefined and '' as the same. This is not too difficult since both undefined and '' are falsy in javascript. So a "required" validation rule would just be error = value ? undefined : 'Required'.
    1. I’d say if the form is short and an obvious pattern (like sign up or log in), you could use the placeholder visual pattern, but use real labels instead.
  3. Feb 2021
    1. The bare bones operation without any Trailblazery is implemented in the trailblazer-operation gem and can be used without our stack.
    2. While Trailblazer offers you abstraction layers for all aspects of Ruby On Rails, it does not missionize you. Wherever you want, you may fall back to the "Rails Way" with fat models, monolithic controllers, global helpers, etc. This is not a bad thing, but allows you to step-wise introduce Trailblazer's encapsulation in your app without having to rewrite it.
    3. Only use what you like.
    4. you can pick which layers you want. Trailblazer doesn't impose technical implementations
    1. @adisos if reform-rails will not match, I suggest to use: https://github.com/orgsync/active_interaction I've switched to it after reform-rails as it was not fully detached from the activerecord, code is a bit hacky and complex to modify, and in overall reform not so flexible as active_interaction. It has multiple params as well: https://github.com/orgsync/active_interaction/blob/master/spec/active_interaction/modules/input_processor_spec.rb#L41

      I'm not sure what he meant by:

      fully detached from the activerecord I didn't think it was tied to ActiveRecord.

      But I definitely agree with:

      code is a bit hacky and complex to modify

    1. References Garrison, D. Randy, Terry Anderson, and Walter Archer. “Critical inquiry in a text-based environment: Computer conferencing in higher education.” The internet and higher education 2, no. 2-3 (1999): 87-105. Orlov, George, Douglas McKee, James Berry, Austin Boyle, Thomas DiCiccio, Tyler Ransom, Alex Rees-Jones, and Jörg Stoye. “Learning During the COVID-19 Pandemic: It Is Not Who You Teach, but How You Teach.” NBER Working Paper 28022 (2020). Rienties, Bart, and Bethany Alden Rivers. “Measuring and understanding learner emotions: Evidence and prospects.” Learning Analytics Review 1, no. 1 (2014): 1-27.

      yay more reading references

  4. Jan 2021
    1. But in most cases, I strongly recommend you use padding inside a box, rather than margins, to ensure you don’t have this problem.
  5. Dec 2020
  6. Nov 2020
  7. Oct 2020
  8. Sep 2020
    1. For the past couple of years in particular however, I’ve stopped using Webpack to develop them, opting instead to use Rollup as my primary bundler for apps.
  9. Aug 2020
  10. Jul 2020
  11. Jun 2020
  12. Apr 2020
  13. Jan 2020
    1. you will find better treatise for all individual topics covered; for example:- What we understand about the brain is essentially covered by Tim Urban in his article "Neuralink and the Brain's Magical Future" in, I might add, more entertaining manner. Alternatively, for a much more in-depth look, look at the book "Principles of Neural Design"- The short time Oliveira spends on superintelligence is better covered by Bostrom in his book "Superintelligence", which Oliveira references- What an algorithm is and what can be computed is better covered by "What algorithms want"- The "common sense" aspect of AI is better covered by "Common Sense, the Turing Test and the Quest for Real AI"- On the title promise, how science is "redefining humanity", the Digital Mind is relatively light on, aside from broadly listing topics that we need to think about like ownership and rights. For a (much) further-taken discussion on this, look at Yuval Noah Harari's Homo Deus, for example.
  14. Dec 2019
  15. Nov 2019
    1. Here are my tools of choice for testing React apps:react-test-renderer for snapshot unit testingAct API for unit testing React componentsJest for unit and integration testing of JavaScript codeCypress for end to end / ui testing