25 Matching Annotations
  1. Last 7 days
    1. Carl T. Bergstrom. (2021, May 27). An update on the B.1.617.2 lineage. I’m concerned. Not because of reduced vaccine efficacy, but simply because a further increase in transmissibility above B.1.1.7 would be quite bad news for countries where vaccination is low and for hopes of near-elimination everywhere. [Tweet]. @CT_Bergstrom. https://twitter.com/CT_Bergstrom/status/1398029743954432005

  2. Jul 2021
  3. Jun 2021
    1. That's not exactly Symbol#to_proc conversion — it's part of the inject interface, mentioned in the documentation. The to_proc operator is &
    2. instance_eval { reduce(:+) / size.to_f }
    3. I don't think it is too clever. I think it solves the problem idiomatically. I.e., it uses reduce, which is exactly correct. Programmers should be encouraged to understand what is correct, why it is correct, and then propagate. For a trivial operation like average, true, one doesn't need to be "clever". But by understanding what "reduce" is for a trivial case, one can then start applying it to much more complex problems. upvote.
  4. May 2021
    1. Derek Thompson. (2021, May 17). Weeks ago, Gov. Abbott made Texas the first state to abolish its mask mandate and lift capacity constraints for all businesses. So, what changed? Nothing. There was ~no effect on COVID cases, employment, mobility, or retail foot traffic, in either liberal or conservative areas. Https://t.co/M8aeKOKJuP [Tweet]. @DKThomp. https://twitter.com/DKThomp/status/1394294260787261447

  5. Mar 2021
  6. Feb 2021
    1. While you could program this little piece of logic and flow yourself using a bunch of Ruby methods along with a considerable amount of ifs and elses, and maybe elsif, if you’re feeling fancy, a Trailblazer activity provides you a simple API for creating such flow without having to write and maintain any control code. It is an abstraction.
    2. They help streamlining the control flow, and take away control code while providing you with an incredibly cool developer experience.
    1. it is inconvenient to write specific implementations for each datatype contained, especially if the code for each datatype is virtually identical. For example, in C++, this duplication of code can be circumvented by defining a class template
  7. Dec 2020
  8. Oct 2020
    1. const countriesRegExp = countries.reduce( (regex, country, i) => (i === 0 ? `(${country})` : `${regex}|(${country})`), "" )
  9. Aug 2020
  10. May 2020
  11. Apr 2020
  12. Sep 2019