43 Matching Annotations
  1. Last 7 days
  2. Aug 2022
    1. A framework for assessing and addressing vulnerability

      Attacker's profit is equal to value of the attack minus cost of voting power acquisition and cost of attack execution

  3. Jun 2022
    1. With first-class keyword arguments in the language, we don’t have to write the boilerplate code to extract hash options. Unnecessary boilerplate code increases the opportunity for typos and bugs.
  4. Mar 2022
  5. Feb 2022
  6. Jan 2022
    1. and if I think this is too boilerplatey, I can export a handler from some .js file and pass the error to that: <script> import { onError } from 'svelte' import { genericHandler } from '../my-error-handler.js' onError(genericHandler(e => { // code which is called first to try to handle this locally return true // we've handled it here, don't do anything else. }) </script>
  7. Nov 2021
  8. Sep 2021
  9. Aug 2021
  10. Jul 2021
    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

  11. 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.
  12. 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

  13. Mar 2021
  14. 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
  15. Dec 2020
  16. Oct 2020
    1. const countriesRegExp = countries.reduce( (regex, country, i) => (i === 0 ? `(${country})` : `${regex}|(${country})`), "" )
  17. Aug 2020
  18. May 2020
  19. Apr 2020
  20. Sep 2019