57 Matching Annotations
  1. May 2023
    1. (BETTERWITHOUT.AI)

      I recommend this website for shear density of surprise. New vocabulary, new ideas, new newness.

  2. Jan 2023
    1. paranoia has some surprising behaviour (like overriding ActiveRecord's delete and destroy) and is not recommended for new projects. See discard's README for more details. Paranoia will continue to accept bug fixes and support new versions of Rails but isn't accepting new features.
  3. Nov 2022
    1. Because the official images are intended to be learning tools for those new to Docker as well as the base images for advanced users to build their production releases, we review each proposed Dockerfile to ensure that it meets a minimum standard for quality and maintainability. While some of that standard is hard to define (due to subjectivity), as much as possible is defined here, while also adhering to the "Best Practices" where appropriate.
  4. Apr 2022
  5. Sep 2021
    1. Using ~ is deprecated and can be removed from your code (we recommend it)
    2. ℹ️ We highly recommend using Dart Sass.
    3. ⚠ Node Sass does not work with Yarn PnP feature and doesn't support @use rule.
    1. The Rails server will also compile your assets if the dev server is not running, but this is much slower vs running separate processes and not recommended.
  6. Aug 2021
  7. Jul 2021
  8. Jun 2021
    1. https://github.com/rycus86/githooks is a really option for managing hooks It is... safe (it uses an opt-in model, where it will ask for confirmation whether new or changed scripts should be run or not (or disabled)) configurable handles a lot of the details for you lets you keep your hooks nicely organized. For example:
    1. Or if you're looking for a core extension that adds this to the Array class, I'd recommend the facets gem (require 'facets/array/average'). Then you can just do array.average. And, from looking at the source, it turns out they do the exact same thing as the instance_eval approach above. The only difference is that it's implemented as a method—which of course already has self pointing to itself—instead of a block): def average; return nil if empty?; reduce(:+) / length.to_f; end Main advantage of this is that it's even more concise/readable and it handles the empty? case.
  9. May 2021
    1. I've been using (and recently, contributing slightly to) Git for well over a decade. I don't have any single thing I'd specifically recommend at this point, but if you're looking for a decent book on Git, the Pro Git book has a bunch of plus-es: it's on line and kept up to date, it's free, and it's correct (unlike far too many online tutorials). There is also Think Like (a) Git, which covers most of what's missing from Pro Git.
  10. Apr 2021
  11. 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.
  12. 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

  13. 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.
  14. Dec 2020
  15. Nov 2020
  16. Oct 2020
  17. 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.
  18. Aug 2020
  19. Jul 2020
  20. Jun 2020
  21. Apr 2020
  22. 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.
  23. Dec 2019
  24. 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