My fork of https://svelte.dev/repl/e25f45c039a04c10880914ceba6d5812?version=3.4.4 for https://github.com/sveltejs/svelte/issues/2956
Superseded by https://svelte.dev/repl/bc90d88eaf6d4816b66e1c905fadbfc4?version=3.29.4
My version of https://svelte.dev/repl/9c7d12357a15457bb914705702f156d1?version=3.19.2 from https://github.com/sveltejs/svelte/issues/4586
to try to simplify and help me understand it better.
So the lack of synchronousness is only noticed inside handleClick.
By the time the DOM gets updated, it has a consistent/correct state.
In other words, the console.log shows wrong value, but template shows correct value. So this might not be an actual problem for many/most use cases.
Face Masks, Voting, and Social Media | Human Resources | The University of Texas at Austin. (n.d.). Retrieved October 27, 2020, from https://hr.utexas.edu/learning-development/programs/face-masks-voting-and-social-media
When using a method in a top-level object to modify its state, such object isn't updated either.
I too have been confused by behavior like this. Perhaps a clearly defined way to isolate atomic units with synchronous reactivity would help those of us still working through the idiosyncrasies of reactivity.
For performance reasons, $: reactive blocks are batched up and run in the next microtask. This is the expected behavior. This is one of the things that we should talk about when we figure out how and where we want to have a section in the docs that goes into more details about reactivity. If you want something that updates synchronously and depends on another value, you can use a derived store:
I expected that the param being passed by reference to have the same reactivity of the variable being created in the script tag.
This is the intended behavior.
One would expect the display to be updated, but it is not... WHY is it updated the 2nd time you enter something? What is different?
vague
The word 'vague' seems to repeat quite a lot in descriptions of Constantia's gestures and behaviors. She reminds me of Laura from the Garden Party, having her own inner world nobody knows of. But she's more reserved and reticent, which might stem from her insecurity and dependence on her older sister's views.
Lau, P. Y. F. (2020). Fighting COVID-19: Social capital and community mobilisation in Hong Kong. International Journal of Sociology and Social Policy, ahead-of-print(ahead-of-print). https://doi.org/10.1108/IJSSP-08-2020-0377
Yang Chan, E. Y., Shahzada, T. S., Sham, T. S. T., Dubois, C., Huang, Z., Liu, S., Ho, J. Y., Hung, K. K. C., Kwok, K. O., & Shaw, R. (n.d.). Narrative review of non-pharmaceutical behavioural measures for the prevention of COVID-19 (SARS-CoV-2) based on the Health-EDRM framework. British Medical Bulletin. https://doi.org/10.1093/bmb/ldaa030
Landi, F., Marzetti, E., Sanguinetti, M., Ciciarello, F., Tritto, M., Benvenuto, F., Bramato, G., Brandi, V., Carfì, A., D’Angelo, E., Fusco, D., Lo Monaco, M. R., Martone, A. M., Pagano, F., Rocchi, S., Rota, E., Russo, A., Salerno, A., Cattani, P., … Bernabei, on behalf of the G. A. C.-19 G. T. (n.d.). Should face masks be worn to contain the spread of COVID-19 in the postlockdown phase? Transactions of The Royal Society of Tropical Medicine and Hygiene. https://doi.org/10.1093/trstmh/traa085
Howard, M. C. (2021). Gender, face mask perceptions, and face mask wearing: Are men being dangerous during the COVID-19 pandemic? Personality and Individual Differences, 170, 110417. https://doi.org/10.1016/j.paid.2020.110417
Kieran, R., moloney, carolyn, Kennedy, J., Lowery, M. A., Grant, C., Gallagher, D. J., O’Donnell, D. M., Kelleher, F., Sukor, S., McCarthy, M. T., & Cuffe, S. (2020). Patient self-reported awareness of COVID: Overconfidence in knowledge, underestimation of risk. Journal of Clinical Oncology, 38(29_suppl), 174–174. https://doi.org/10.1200/JCO.2020.38.29_suppl.174
Moreover, React team even removed the “highlight updates” feature from dev tools because people used to obsessively haunt wasted renders with no reasoning behind it
Lunn, P. (n.d.). Much of what we think about Covid-19 is wrong. We need to change the conversation. The Irish Times. Retrieved October 12, 2020, from https://www.irishtimes.com/life-and-style/health-family/much-of-what-we-think-about-covid-19-is-wrong-we-need-to-change-the-conversation-1.4375838
COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved October 11, 2020, from https://covid-19.iza.org/publications/dp13753/
COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved October 10, 2020, from https://covid-19.iza.org/publications/dp13599/
COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved October 10, 2020, from https://covid-19.iza.org/publications/dp13578/
Li, J., & Zheng, H. (2020). Online InformationSeeking and Disease Prevention Intent During COVID-19 Outbreak. Journalism & Mass Communication Quarterly, 1077699020961518. https://doi.org/10.1177/1077699020961518
Long-term effectiveness of inoculation against misinformation: Three longitudinal experiments. - PsycNET. (n.d.). Retrieved October 10, 2020, from /doiLanding?doi=10.1037%2Fxap0000315
If the user now clicks Back again, the URL bar will display https://www.mozilla.org/foo.html, and totally bypass bar.html.
Pandemic fatigue – reinvigorating the public to prevent COVID-19. Policy framework for supporting pandemic prevention and management. Copenhagen: WHO Regional Office for Europe; 2020. Licence: CC BY-NC-SA 3.0 IGO
I never noticed her.
Well, at least he's honest about that. it's incredible to me how self-centered Mr. Franklin could be. Up to that point, he barely even recognizes the excruciating pain she must've endured, being treated as non-existent by him; he doesn't exhibit any empathy or sympathy (which is hilarious given that he's chasing Rachel so desperately), as if it is so inexplicable and absurd that she's had feelings for a person so above her societal rank, that it can simply be disregarded. Notice how the entire time he's reading the letter, all he cares about is finding a clue for the Moonstone, or his own ostensible guilt.
However, he's surely endeavoring to justify himself here, not to be seen to the reader as a supercilious, ill-mannered man!
I sowed the good seed, in spite of him, by throwing a second tract in at the window of the cab.
It's just mind-blowing how satisfied she gets from distributing her tracts among random people who could not be clearer about their reluctance to receive them. Clack, much like Betteredge, assumes she knows the depths of people and is so judgmental of the unconventional (e.g., Rachel) but completely fails to recognize that her own behavior is far from being desired, and is, to all eyes, the unconventional and deplorable one.
I wonder if this is Collins' way to humorously ridicule this phenomenon. More broadly, I wonder if Collins' use of extreme and blatantly hypocritical narrators who inspire hatred (e.g., Clack and Betteredge), is his calling for moderation in society.
Rostami-Tabar, B., Ali, M. M., Hong, T., Hyndman, R. J., Porter, M. D., & Syntetos, A. (2020). Forecasting for Social Good. ArXiv:2009.11669 [Cs]. http://arxiv.org/abs/2009.11669
There'll be no more warnings. But if you open bundle.js, you'll see something shocking: it contains the entirety of React and React DOM. That's 7000 LoC!
Basically, the idea is that a train tried to start with the caboose brakes stuck on. After releasing the caboose, the train still could not start. The problem was that when the train attempted to start with the caboose brake on, it stretched all the inter-car couplings so that the whole train was just like one big car. At this point, the friction from the engine train wheels was not enough to get the whole thing going. Instead, you need to just get one car moving at a time - this is why there is space between the couplings.
Most simple example: <script> import ChildComponent from './Child.svelte'; </script> <style> .class-to-add { background-color: tomato; } </style> <ChildComponent class="class-to-add" /> ...compiles to CSS without the class-to-add declaration, as svelte currently does not recognize the class name as being used. I'd expect class-to-add is bundled with all nested style declarations class-to-add is passed to ChildComponent as class-to-add svelte-HASH This looks like a bug / missing feature to me.
Svelte will not offer a generic way to support style customizing via contextual class overrides (as we'd do it in plain HTML). Instead we'll invent something new that is entirely different. If a child component is provided and does not anticipate some contextual usage scenario (style wise) you'd need to copy it or hack around that via :global hacks.
challenging conversations
Wise, T., Zbozinek, T. D., Michelini, G., Hagan, C. C., & Mobbs, D. (n.d.). Changes in risk perception and self-reported protective behaviour during the first week of the COVID-19 pandemic in the United States. Royal Society Open Science, 7(9), 200742. https://doi.org/10.1098/rsos.200742
Fragkaki, I., Maciejewski, D. F., Weijman, E., Feltes, J., Cima, M. (2020). Human Responses to Covid-19: The Role of Optimism Bias, Perceived Severity, and Anxiety. 10.31234/osf.io/w4k9m
Holman, E. A., Thompson, R. R., Garfin, D. R., & Silver, R. C. (2020). The unfolding COVID-19 pandemic: A probability-based, nationally representative study of mental health in the U.S. Science Advances, eabd5390. https://doi.org/10.1126/sciadv.abd5390
Kneer, M., & Hannikainen, I. R. (2020). Triage Dilemmas: A Window into (Ecologically Valid) Moral Cognition. https://doi.org/10.31234/osf.io/v87sb
It's fashionable to dislike CSS. There are lots of reasons why that's the case, but it boils down to this: CSS is unpredictable. If you've never had the experience of tweaking a style rule and accidentally breaking some layout that you thought was completely unrelated — usually when you're trying to ship — then you're either new at this or you're a much better programmer than the rest of us.
The Behaviour Change Wheel Book—A Guide To Designing Interventions. (n.d.). Retrieved September 17, 2020, from http://www.behaviourchangewheel.com/
Ehlert, A., Kindschi, M., Algesheimer, R., & Rauhut, H. (2020). Human social preferences cluster and spread in the field. Proceedings of the National Academy of Sciences, 117(37), 22787–22792. https://doi.org/10.1073/pnas.2000824117
Duquette, N. (2020). Heard immunity: Effective persuasion for a future COVID-19 vaccine. https://doi.org/10.31235/osf.io/jwvsp
Over time we tend to develop confirmation bias, forever seeking evidence that reinforces what we already believe, and downplaying or dismissing what doesn’t. We’re also designed, both genetically and instinctively, to put our own safety first, and to avoid taking too much risk. Rather than using our capacity for critical thinking to assess new possibilities, we often co-opt our prefrontal cortex to rationalize choices that were actually driven by our emotions.
Judah, G., Aunger, R., Schmidt, W.-P., Michie, S., Granger, S., & Curtis, V. (2009). Experimental Pretesting of Hand-Washing Interventions in a Natural Setting. American Journal of Public Health, 99(Suppl 2), S405–S411. https://doi.org/10.2105/AJPH.2009.164160
r/BehSciAsk - Behavioural Policy challenge: How well do people understand trade-offs and accept them? (n.d.). Reddit. Retrieved 9 September 2020, from https://www.reddit.com/r/BehSciAsk/comments/ii3n2x/behavioural_policy_challenge_how_well_do_people/
Ludwig, V. U., Brown, K. W., & Brewer, J. A. (2020). Self-Regulation Without Force: Can Awareness Leverage Reward to Drive Behavior Change? Perspectives on Psychological Science, 1745691620931460. https://doi.org/10.1177/1745691620931460
Thread, C. (2020, June 19). Trolls and Tribulations: Social Media and Public Health. Medium. https://medium.com/@gocommonthread/trolls-and-tribulations-social-media-and-public-health-499bf5c8727c
Melnikoff, D. E., & Strohminger, N. (2020). The automatic influence of advocacy on lawyers and novices. Nature Human Behaviour, 1–7. https://doi.org/10.1038/s41562-020-00943-3
Hu, Y., & Wang, R.-Q. (2020). Understanding the removal of precise geotagging in tweets. Nature Human Behaviour, 1–3. https://doi.org/10.1038/s41562-020-00949-x
Casoria, F., Galeotti, F., & Villeval, M. C. (2020). Perceived Social Norm and Behavior Quickly Adjusted to Legal Changes During the COVID-19 Pandemic (SSRN Scholarly Paper ID 3681204). Social Science Research Network. https://doi.org/10.2139/ssrn.3681204
u/nick_chater (2020) Behavioural Policy Challenge: when does compulsion help? reddit. Retrieved from: https://www.reddit.com/r/BehSciAsk/comments/hzci8g/behavioural_policy_challenge_when_does_compulsion/
Behrens. F., Kret. M. (2020) Under the Umbrella of Prosocial Behavior – A Critical Comparison of Paradigms. PsyArXiv Preprints. Retrieved from: https://psyarxiv.com/9uebc/
Moya, C., Cruz y Celis Peniche, P. D., Kline, M. A., & Smaldino, P. (2020). Dynamics of Behavior Change in the COVID World [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/kxajh
Home. (n.d.). Retrieved June 14, 2020, from http://riskhomeostasis.org/
Papageorge, N. W., Zahn, M. V., Belot, M., van den Broek-Altenburg, E., Choi, S., Jamison, J. C., & Tripodi, E. (2020). Socio-Demographic Factors Associated with Self-Protecting Behavior during the Covid-19 Pandemic (Working Paper No. 27378; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27378
Barceló, J., & Sheen, G. (2020). Voluntary adoption of social welfare-enhancing behavior: Mask-wearing in Spain during the COVID-19 outbreak. https://doi.org/10.31235/osf.io/6m85q
Jittrapirom, P., & Tanaksaranond, G. (2020). An exploratory survey on the perceived risk of COVID-19 and travelling [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/v3g5d
Rice, W. L., & Pan, B. (2020). Understanding drivers of change in park visitation during the COVID-19 pandemic: A spatial application of Big data [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/97qa4
ReconfigBehSci {@SciBeh} (2020) this kind of piece behavioural scientists need to reject! A shallow understanding of the bias literature in an even shallower application to the pandemic- the idea that believing lockdowns brought down infection rates is an example of the "post hoc fallacy" is bizarre 1/3. Twitter. Retrieved from: https://twitter.com/SciBeh/status/1298939778340184065
Qin. X. Yam. K. Xu. M. Zhang. H., (2020) The Increase in COVID-19 Cases is Associated with Domestic Violence. PsyArXiv Preprints. Retrieved from: https://psyarxiv.com/yfkdx/
Ventilator Allocation for Covid-19, Mask Sterilization, HIV Life Expectancy, and more #JNOLive. (2020, June 23). https://www.youtube.com/watch?v=3htA-tav11M&feature=emb_logo
Whitney R. Robinson on Twitter: “1/ An #EpiTwitter 🧵 about theory... https://t.co/rSjfkHG21r” / Twitter. (n.d.). Twitter. Retrieved August 18, 2020, from https://twitter.com/WhitneyEpi/status/1295522551892971520
Varma, M. M., Chen, D., Lin, X. L., Aknin, L. B., & Hu, X. (2020, August 12). Prosocial behavior promotes positive emotion during the COVID-19 pandemic. https://doi.org/10.31234/osf.io/vdw2e
Why a Group of Behavioural Scientists Penned an Open Letter to the U.K. Government Questioning Its Coronavirus Response. (2020, March 16). Behavioral Scientist. https://behavioralscientist.org/why-a-group-of-behavioural-scientists-penned-an-open-letter-to-the-uk-government-questioning-its-coronavirus-response-covid-19-social-distancing/
Kozlowski, J., Veldkamp, L., & Venkateswaran, V. (2020). Scarring Body and Mind: The Long-Term Belief-Scarring Effects of COVID-19 (Working Paper No. 27439; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27439
Brown, C. S., & Ravallion, M. (2020). Inequality and the Coronavirus: Socioeconomic Covariates of Behavioral Responses and Viral Outcomes Across US Counties (Working Paper No. 27549; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27549
Dave, D. M., Friedson, A. I., Matsuzawa, K., Sabia, J. J., & Safford, S. (2020). Black Lives Matter Protests, Social Distancing, and COVID-19 (Working Paper No. 27408; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27408
Blanchett, D., Finke, M. S., & Reuter, J. (2020). Portfolio Delegation and 401(k) Plan Participant Responses to COVID-19 (Working Paper No. 27438; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27438
Alfaro, L., Faia, E., Lamersdorf, N., & Saidi, F. (2020). Social Interactions in Pandemics: Fear, Altruism, and Reciprocity (Working Paper No. 27134; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27134
Krueger, D., Uhlig, H., & Xie, T. (2020). Macroeconomic Dynamics and Reallocation in an Epidemic (Working Paper No. 27047; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27047
Nguyen, T. D., Gupta, S., Andersen, M., Bento, A., Simon, K. I., & Wing, C. (2020). Impacts of State Reopening Policy on Human Mobility (Working Paper No. 27235; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27235
Bethune, Z. A., & Korinek, A. (2020). Covid-19 Infection Externalities: Trading Off Lives vs. Livelihoods (Working Paper No. 27009; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27009
Goolsbee, A., & Syverson, C. (2020). Fear, Lockdown, and Diversion: Comparing Drivers of Pandemic Economic Decline 2020 (Working Paper No. 27432; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27432
Barrios, J. M., & Hochberg, Y. (2020). Risk Perception Through the Lens of Politics in the Time of the COVID-19 Pandemic (Working Paper No. 27008; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27008
Galasso, V., Pons, V., Profeta, P., Becher, M., Brouard, S., & Foucault, M. (2020). Gender Differences in COVID-19 Related Attitudes and Behavior: Evidence from a Panel Survey in Eight OECD Countries (Working Paper No. 27359; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27359
Fetzer, T. R., Witte, M., Hensel, L., Jachimowicz, J., Haushofer, J., Ivchenko, A., Caria, S., Reutskaja, E., Roth, C. P., Fiorin, S., Gómez, M., Kraft-Todd, G., Götz, F. M., & Yoeli, E. (2020). Global Behaviors and Perceptions at the Onset of the COVID-19 Pandemic (Working Paper No. 27082; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27082
Lin, Z., & Meissner, C. M. (2020). Health vs. Wealth? Public Health Policies and the Economy During Covid-19 (Working Paper No. 27099; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27099
Akesson, J., Ashworth-Hayes, S., Hahn, R., Metcalfe, R. D., & Rasooly, I. (2020). Fatalism, Beliefs, and Behaviors During the COVID-19 Pandemic (Working Paper No. 27245; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27245
Banerjee, A., Alsan, M., Breza, E., Chandrasekhar, A. G., Chowdhury, A., Duflo, E., Goldsmith-Pinkham, P., & Olken, B. A. (2020). Messages on COVID-19 Prevention in India Increased Symptoms Reporting and Adherence to Preventive Behaviors Among 25 Million Recipients with Similar Effects on Non-recipient Members of Their Communities (Working Paper No. 27496; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27496
Lerback, J. C. (2020). Equity: A mathematician shares her solution. Nature, 583(7818), 681–682. https://doi.org/10.1038/d41586-020-02205-8
I'm just trying out the "Reply to comment" button here. Well, it seems like it doesn't quote the text... that's really the feature I'd like to exposed. When responding to a large message (email or otherwise), I like to quote various parts and respond in line.
Dang. H. A. H., Huynh. T. L. D., Nguyen. M. H. (2020) Does the COVID-19 Pandemic Disproportionately Affect the Poor? Evidence from a Six-Country Survey. Institute of labor economics. Retrieved from: https://covid-19.iza.org/publications/dp13352/
COVID-19 Crisis Fuels Hostility against Foreigners. COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved August 4, 2020, from https://covid-19.iza.org/publications/dp13250/
Six-Country Survey on COVID-19 (n.d.). IZA – Institute of Labor Economics. Retrieved August 4, 2020, from https://covid-19.iza.org/publications/dp13230/
An Economic Model of the COVID-19 Epidemic: The Importance of Testing and Age-Specific Policies. COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved August 4, 2020, from https://covid-19.iza.org/publications/dp13265/
Grözinger. N., Irlenbusch. B., Laske. K., Schröder. M., (2020). Innovation and Communication Media in Virtual Teams – An Experimental Study. Institute of Labor Economics. Retrieved from: https://covid-19.iza.org/publications/innovation-and-communication-media-in-virtual-teams-an-experimental-study/
Rezapour, T., Assari, S., Kirlic, N., Vassileva, J., & Ekhtiari, H. (2020). Enhancing Cognitive Resilience in Adolescence and Young Adults: A Neuroscience-informed Approach [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/enrv9
Lavoie, K. (2019). Applying behavioural science to improve physicians’ ability to help people improve their own health behaviours. European Journal of Public Health, 29(Supplement_4). https://doi.org/10.1093/eurpub/ckz185.812
Mendes, M. (2020, July 30). Coronavirus misinformation and the political scenario: the science cannot be ‘another’ barrier. https://doi.org/10.31234/osf.io/vhkwc
Lees, J. M., & Cikara, M. (2020, July 29). Understanding and Combating False Polarization. https://doi.org/10.31234/osf.io/ncwez
Bierwiaczonek, K., Kunst, J. R., & Pich, O. (2020, July 29). Belief in COVID-19 Conspiracy Theories Reduces Social Distancing over Time. https://doi.org/10.31234/osf.io/tqfrw
Hoekstra, R., & Vazire, S. (2020, July 29). Hoekstra & Vazire (2020), Intellectual humility is central to science. https://doi.org/10.31234/osf.io/edh2s
Dave, D. M., Friedson, A. I., Matsuzawa, K., McNichols, D., Redpath, C., & Sabia, J. J. (2020). Did President Trump’s Tulsa Rally Reignite COVID-19? Indoor Events and Offsetting Community Effects (Working Paper No. 27522; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27522
Shanks, D. (2020) Unconscious influences on behaviour: Fact or fiction? https://www.youtube.com/watch?v=wzdDGav9Owo
@DFRLab. (2020). Op-Ed: How Brexit tribalism has influenced attitudes toward COVID-19 in Britain. Medium. https://medium.com/dfrlab/op-ed-how-brexit-tribalism-has-influenced-attitudes-toward-covid-19-in-britain-16a983a56929
Bhattacharya, C., Chowdhury, D., Ahmed, N., Ozgur, S., Bhattacharya, B., Mridha, S. K., & Bhattacharyya, M. (2020). The Nature, Cause and Consequence of COVID-19 Panic among Social Media Users in India. https://doi.org/10.31234/osf.io/dgr45
Bursztyn, L., Rao, A., Roth, C. P., & Yanagizawa-Drott, D. H. (2020). Misinformation During a Pandemic (Working Paper No. 27417; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27417
Litman. L,. Hartman. R., Jaffe. S., Robinson. J. (2020) County-level recruitment in online samples: Applications to COVID-19 and beyond. PsyArXiv Preprints. Retrieved from: https://psyarxiv.com/g3xw7/
DeAngelis. T., (2020). Could COVID-19 change our environmental behaviour. American Psychological Association. 51(5) Retrieved from:https://www.apa.org/monitor/2020/07/environmental-behaviors
Salvador, C., Kraus, B., Ackerman, J., Gelfand, M., & Kitayama, S. (2020, April 10). Interdependent Self-Construal Predicts Complacency Under Pathogen Threat: An Electrocortical Investigation. https://doi.org/10.31234/osf.io/t5pg6
COVID-19 Social Science Tracker - Google Sheets
Thorneloe, R., Wilcockson, H. E., PhD, Lamb, M., Jordan, C. H., & Arden, M. (2020, July 20). Willingness to receive a COVID-19 vaccine among adults at high-risk of COVID-19: a UK-wide survey. https://doi.org/10.31234/osf.io/fs9wk
Twardawski, M., Steindorf, L., & Thielmann, I. (2020, July 16). Three pillars of physical distancing: Anxiety, prosociality, and rule compliance during the COVID-19-pandemic. https://doi.org/10.31234/osf.io/zkfyb
Andia, T., Mantilla, C., Rodriguez-Lesmes, P., Criado, L., Gomez, J. S., Ortiz, S., Quintero, A., Rincón, H., & Romero, S. (2020). Mentioning anosmia improves how community pharmacies handle phone call requests during the COVID-19 pandemic: An audit study in Colombia [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/s2z47
UCLA Connections—How is the global health crisis impacting alcohol habits/instances of addiction? (2020, May 20). UCLA. https://www.youtube.com/watch?v=t9bW2YnLrDY
Sakakibara, R., & Ozono, H. (2020). Psychological Research on the COVID-19 Crisis in Japan: Focusing on Infection Preventive Behaviors, Future Prospects, and Information Dissemination Behaviors. https://doi.org/10.31234/osf.io/97zye
McKinley, L., McAnally, K., Moyers, S. A., & Hagger, M. S. (2020). Behavioral Health Theories, Equity, and Disparities in Global Health: A Basic Process Model. https://doi.org/10.31234/osf.io/nybv8
The inherent stealth conversion into Sets is not a good idea in my book.
To me the difference between [1,1,2,2,3,3] and [1,2,3] is not []
Code doing surprising and slightly nonsensical things... I'm weary now. And that's with ruby being more consistent than most!
A New Normal: How Social and Behavioral Science Can Help Us Cope With COVID-19. (2020, April 15). https://www.youtube.com/watch?v=JMEMq8wUD1k
One may expect Array#- to behave like mathematical subtraction or difference when it doesn't. One could be forgiven to expect the following behavior: [1,1,2,2,3,3,4,4] - [1,2,3,4] => [1,2,3,4]
I'll freely admit I was surprised by this behavior myself since I needed to obtain an Array with only one instance of each item in the argument array removed.
McKay, T., Henne, J., Gonzales, G., Quarles, R., Gavulic, K. A., & Gallegos, S. G. (2020). The COVID-19 Pandemic and Sexual Behavior among Gay and Bisexual Men in the United States. https://doi.org/10.31235/osf.io/8fzay
Fatfouta, R., & Oganian, Y. (2020). Bargaining under social distancing requirements: Effects of face masks on socio-economic decision-making in the COVID-19 pandemic [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/cn7by
Kizilcec. F. R., Reich. J., Yeomans. M., Dann, C., Brunskill, E., Lopez. G., Turkay., S., Williams, J. J., Tingley. D., (2020) Scaling up behavioral science interventions in online education. PNAS. Retrieved from https://www.pnas.org/content/117/26/14900.short?rss=1
Yesilada. M. (2020). From peer review to “science without the drag” via PsyArXiv. Psychonomic Society.
Brooks, H. Z., Kanjanasaratool, U., Kureh, Y. H., & Porter, M. A. (2020). Disease Detectives: Using Mathematics to Forecast the Spread of Infectious Diseases [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/mvn9z
Leiserowitz, A., Maibach, E., Rosenthal, S. A., Kotcher, J., Ballew, M. T., Bergquist, P., Gustafson, A., Goldberg, M. H., & Wang, X. (2020). Politics and global warming, April 2020 [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/d7vbq
Sorokowska, A., Sorokowski, P., Hilpert, P., Cantarero, K., Frackowiak, T., Ahmadi, K., Alghraibeh, A. M., Aryeetey, R., Bertoni, A., Bettache, K., Blumen, S., Błażejewska, M., Bortolini, T., Butovskaya, M., Castro, F. N., Cetinkaya, H., Cunha, D., David, D., David, O. A., … Pierce, J. D. (2017). Preferred Interpersonal Distances: A Global Comparison. Journal of Cross-Cultural Psychology, 48(4), 577–592. https://doi.org/10.1177/0022022117698039
Fuhrer, J., & Cova, F. (2020). “Quick and dirty”: Intuitive cognitive style predicts trust in Didier Raoult and his hydroxychloroquine-based treatment against COVID-19. https://doi.org/10.31234/osf.io/ju62p
Rajkumar, R. P. (2020). Warriors, worriers, and COVID-19: An exploratory study of the catechol O-methyltransferase Val158Met polymorphism across populations [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/xrpn8
Golding, S. E. (2020). Coronavirus and other pathogens: Reflecting on the relationship between health psychology and infectious disease [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/8r6kf
Chan, H., Torgler, B., Brumpton, M., Macintyre, A., Arapoc, J., Savage, D. A., … Stadelmann, D. (2020, July 3). How confidence in health care systems affects mobility and compliance during the COVID-19 pandemic. https://doi.org/10.31234/osf.io/86qxu
Kelly, J. (2020, July 2). In defence of the U-turn – in politics and life. https://www.ft.com/content/f34fbf9e-81ee-4a0d-ae12-c236828b5c91
Bai, M. H. (2020). Who Bought All the Toilet Paper? Conspiracy Theorists Are More Likely to Stockpile During the COVID-19 Pandemic. https://doi.org/10.31234/osf.io/z2g34
Chambon, M., Dalege, J., Elberse, J., & van Harreveld, F. (2020). A psychological network approach to factors related to preventive behaviors during pandemics: A European COVID-19 study [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/es45v
Makhanova, A., & Shepherd, M. A. (2020). Behavioral immune system linked to responses to the threat of COVID-19 [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/6dq3g
Kuang, J., Ashraf, S., Das, U., & Bicchieri, C. (2020). Awareness, risk perception, and stress during the COVID-19 pandemic in communities of Tamil Nadu, India [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/qhgrd
van de Groep, S., Zanolie, K., Green, K., Sweijen, S., & Crone, E. (2020). A daily diary study on adolescents’ mood, concern for others, and giving behavior during the COVID-19 pandemic [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/xny2g
Maintaining health and wellbeing during the COVID-19 pandemic | Institute of Psychiatry, Psychology & Neuroscience | King’s College London. https://www.kcl.ac.uk/ioppn/maintaining-health-and-wellbeing-during-the-covid-19-pandemic
Reicher, S. (2020, June 24). The way Boris Johnson has eased lockdown sends all the wrong messages | Stephen Reicher. The Guardian. https://www.theguardian.com/commentisfree/2020/jun/24/boris-johnson-ease-lockdown-england
Lazarevic, L. B., Purić, D., Teovanovic, P., Knezevic, G., Lukic, P., & Zupan, Z. (2020). What drives us to be (ir)responsible for our health during the COVID-19 pandemic? The role of personality, thinking styles and conspiracy mentality [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/cgeuv
Andy Slavitt @ 🏡 on Twitter: “COVID Update June 22: In a lot of ways, COVID-19 is forcing us to answer the question— what kind of society are we? Particulatly as the healthy, white & well off find ways to protect themselves will we look out for each other? 1/” / Twitter. (n.d.). Twitter. Retrieved June 24, 2020, from https://twitter.com/ASlavitt/status/1275261089165594625
Allington, D., Duffy, B., Wessely, S., Dhavan, N., & Rubin, J. (undefined/ed). Health-protective behaviour, social media usage and conspiracy belief during the COVID-19 public health emergency. Psychological Medicine, 1–7. https://doi.org/10.1017/S003329172000224X
For Political Candidates, Making Jokes Online Might Backfire. (2020, June 18). Research Digest. https://digest.bps.org.uk/2020/06/18/for-political-candidates-making-jokes-online-might-backfire/
CornwallApr. 16, W., 2020, & Am, 10:50. (2020, April 16). Crushing coronavirus means ‘breaking the habits of a lifetime.’ Behavior scientists have some tips. Science | AAAS. https://www.sciencemag.org/news/2020/04/crushing-coronavirus-means-breaking-habits-lifetime-behavior-scientists-have-some-tips
Fiebig, J. H., Gould, E. R., Ming, S., & Watson, R. A. (2020). An Invitation to Act on the Value of Self-Care: Being a whole person in all that you do [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/k72vd
Ferguson, A. M., Cameron, D., & Inzlicht, M. (2020, May 15). Motivational effects on empathic choices. https://doi.org/10.31234/osf.io/s7qph
Kozyreva, A., Lewandowsky, S., & Hertwig, R. (2019, December 4). Citizens Versus the Internet: Confronting Digital Challenges With Cognitive Tools. https://doi.org/10.31234/osf.io/ky4x8
Veltri, G. A., Prof, Lupiáñez-Villanueva, F., Folkvord, F., Theben, A., & Gaskell, G. (2020, April 29). The impact of online platform transparency of information on consumer’s choices. https://doi.org/10.31234/osf.io/htja5
Japanese Ministry of Health, Labour, and Welfare - PDF
Tidwell, J.B. (2020 March 12). Guide for behavioral researchers on handwashing behavior change for COVID-19. World Vision & Harvard University. https://docs.google.com/document/d/1pkO9kEgDqD07UP93zBZbZz5354rSYWVJy_mH_i7D7TM/edit
Yamagata, M., Teraguchi, T., & Miura, A. (2020, April 10). The Relationship between Infection-Avoidance Tendency and Exclusionary Attitudes towards Foreigners: A Case Study of the COVID-19 Outbreak in Japan. https://doi.org/10.31234/osf.io/vhrqn
Branas-Garza, P., Jorrat, D. A., Alfonso, A., Espin, A. M., García, T., & Kovarik, J. (2020). Exposure to the Covid-19 pandemic and generosity in southern Spain [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/6ktuz
Long read: Cultural evolution, Covid-19, and preparing for what’s next. (2020, April 22). LSE Business Review. https://blogs.lse.ac.uk/businessreview/2020/04/22/long-read-cultural-evolution-covid-19-and-preparing-for-whats-next/
Rowell, A. (2020). COVID-19 and Environmental Law. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.3582879
Zickfeld, J., Schubert, T. W., Herting, A. K., Grahe, J. E., & Faasse, K. (2020, April 16). Predictors of Health-Protective Behavior and Changes Over Time During the Outbreak of the COVID-19 Pandemic in Norway. https://doi.org/10.31234/osf.io/6vgf4
Yamagata, M., Teraguchi, T., & Miura, A. (2020, May 5). The Relationship between Infection-Avoidance Tendencies and Exclusionary Attitudes toward Foreigners: A Panel Study of the COVID-19 Outbreak in Japan. https://doi.org/10.31234/osf.io/x5emj
Li, J., Hallsworth. A.G. and Coca-Stefaniak, J.A. (2020), “The changing grocery shopping behavior of Chineseconsumers at the outset of the COVID-19 outbreak”, Tijdschrift voor Economische en Sociale Geografie. https://doi.org/10.1111/tesg.12420
Michie, Susan, Robert West, M. Brooke Rogers, Chris Bonell, G. James Rubin, and Richard Amlôt. “Reducing SARS-CoV-2 Transmission in the UK: A Behavioural Science Approach to Identifying Options for Increasing Adherence to Social Distancing and Shielding Vulnerable People.” British Journal of Health Psychology n/a, no. n/a. Accessed May 25, 2020. https://doi.org/10.1111/bjhp.12428.
Campos-Mercade, Pol, Armando Meier, Florian Schneider, and Erik Wengström. “Prosociality Predicts Health Behaviors during the COVID-19 Pandemic.” Department of Economics - University of Zurich, May 2020. https://EconPapers.repec.org/RePEc:zur:econwp:346.
Ledford, H. (2020). How Facebook, Twitter and other data troves are revolutionizing social science. Nature, 582(7812), 328–330. https://doi.org/10.1038/d41586-020-01747-1
Sorokowska, A., Sorokowski, P., Hilpert, P., Cantarero, K., Frackowiak, T., Ahmadi, K., Alghraibeh, A. M., Aryeetey, R., Bertoni, A., Bettache, K., Blumen, S., Błażejewska, M., Bortolini, T., Butovskaya, M., Castro, F. N., Cetinkaya, H., Cunha, D., David, D., David, O. A., … Pierce, J. D. (2017). Preferred Interpersonal Distances: A Global Comparison. Journal of Cross-Cultural Psychology, 48(4), 577–592. https://doi.org/10.1177/0022022117698039
Guerrero, R. J. A., Parra, A. B., Cahua, J. C. H., & Banaszak-Holl, J. (2020). Psychological problems associated with coping strategies: A web-based study in Peruvian population during the COVID-19 pandemic. https://doi.org/10.31234/osf.io/uarwz
Crystal, J. (2020, May 18). Mobilizing behavioral scientists to respond to COVID-19. Psychonomic Society Featured Content. https://featuredcontent.psychonomic.org/mobilizing-behavioral-scientists-to-respond-to-covid-19/
McBride, O., Murphy, J., Shevlin, M., Gibson Miller, J., Hartman, T. K., Hyland, P., Levita, L., Mason, L., Martinez, A. P., McKay, R., Stocks, T. V. A., bennett, kate m, Vallières, F., Karatzias, T., Valiente, C., Vazquez, C., & Bentall, R. (2020). An overview of the context, design and conduct of the first two waves of the COVID-19 Psychological Research Consortium (C19PRC) Study [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/z3q5p
DellaVigna, S & Linos E. (2020). RCTs to scale: Comprehensive evidence from two nudge units. UC Berkeley. https://eml.berkeley.edu/~sdellavi/wp/NudgeToScale2020-03-20.pdf
Overview—British Journal of Health Psychology. (n.d.). Wiley Online Library. https://doi.org/10.1111/(ISSN)2044-8287
McAvoy, A., Allen, B., & Nowak, M. A. (2020). Social goods dilemmas in heterogeneous societies. Nature Human Behaviour, 1–13. https://doi.org/10.1038/s41562-020-0881-2
Fast-Tracking COVID-19 Submissions. (n.d.). Association for Psychological Science - APS. Retrieved June 11, 2020, from https://www.psychologicalscience.org/publications/psychological_science/psci-covid-19
Journal of Computational Social Science. Springer. Retrieved June 10, 2020, from https://www.springer.com/journal/42001/updates/17993070
However, a ActiveRecord::Rollback within the nested transaction will be caught by the block of the nested transaction, but will be ignored by the outer transaction, and not cause a roll back! To avoid this unexpected behaviour, you have to explicitly tell rails for each transaction to indeed use proper nesting: CopyActiveRecord::Base.transaction(joinable: false, requires_new: true) do # inner code end This is a safer default for working with custom transactions.
Falco, P., & Zaccagni, S. (2020). Promoting social distancing in a pandemic: Beyond the good intentions [Preprint]. Open Science Framework. https://doi.org/10.31219/osf.io/a2nys
Zhou, B., Lu, X., & Holme, P. (2020). Universal evolution patterns of degree assortativity in social networks. Social Networks, 63, 47–55. https://doi.org/10.1016/j.socnet.2020.04.004
Adam-Troian, J., Bonetto, E., Varet, F., Arciszewski, T., & Guiller, T. (2020). Pathogen Threat Increases Electoral Success for Conservative Parties: Results from a Natural Experiment with COVID-19 in France. https://doi.org/10.31234/osf.io/aqkpm
Mills, J. P. (2020). Authentic Arseholes and the Problem with Transformational Leaders [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/5zfcs
InklingRain on Reddit
Velásquez-Rojas, F., da Silva, P. C. V., Connaughton, C., Moreno, Y., Rodrigues, F. A., & Vazquez, F. (2020). Disease and information spreading at different speeds in multiplex networks. ArXiv:2006.01965 [Physics]. http://arxiv.org/abs/2006.01965
Young, V. A. (2020, May 20). Nearly Half Of The Twitter Accounts Discussing ‘Reopening America’ May Be Bots. Carnegie Mellon School of Computer Science. https://www.scs.cmu.edu/news/nearly-half-twitter-accounts-discussing-%E2%80%98reopening-america%E2%80%99-may-be-bots
Witt, S., Seehagen, S., & Zmyj, N. (2020). Stress affects the prediction of others’ behavior [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/jbswq
transaction calls can be nested. By default, this makes all database statements in the nested transaction block become part of the parent transaction. For example, the following behavior may be surprising: User.transaction do User.create(username: 'Kotori') User.transaction do User.create(username: 'Nemu') raise ActiveRecord::Rollback end end creates both “Kotori” and “Nemu”. Reason is the ActiveRecord::Rollback exception in the nested block does not issue a ROLLBACK. Since these exceptions are captured in transaction blocks, the parent block does not see it and the real transaction is committed.
How is this okay??
When would it ever be the desired/intended behavior for a raise ActiveRecord::Rollback to have absolutely no effect? What good is the transaction then??
What happened to the principle of least surprise?
Is there any reason we shouldn't just always use requires_new: true?
If, like they say, the inner transaction "become[s] part of the parent transaction", then if anything, it should roll back the parent transaction too — not roll back nothing.
Raude, J. (2020, May 31). Determinants of preventive behaviors in response to the COVID-19 pandemic in France: comparing the sociocultural, psychosocial and social cognitive explanations. Retrieved from psyarxiv.com/4yvk2
Marinthe, G., Brown, G., Delouvée, S., & Jolley, D. (2020, May 29). Looking out for Myself: Exploring the Relationship Between Conspiracy Mentality, Perceived Personal Risk and COVID-19 Prevention Measures. Retrieved from psyarxiv.com/cm9st
BPS launches new behaviour change guidance to help reduce spread of Covid-19 | BPS. (n.d.). Retrieved April 21, 2020, from https://www.bps.org.uk/news-and-policy/bps-launches-new-behaviour-change-guidance-help-reduce-spread-covid-19
Anvari, F. (2020, March 26). A comment on Everett et al. (2020): No evidence for the effectiveness of moral messages on public health behavioural intentions during the COVID-19 pandemic. https://doi.org/10.31234/osf.io/de7q9
Redelmeier, D. A., & Shafir, E. (2020). Pitfalls of judgment during the COVID-19 pandemic. The Lancet Public Health, 0(0). https://doi.org/10.1016/S2468-2667(20)30096-7
Betsch, C., Wieler, L., Bosnjak, M., Ramharter, M., Stollorz, V., Omer, S., Korn, L., Sprengholz, P., Felgendreff, L., Eitze, S., & Schmid, P. (2020). Germany COVID-19 Snapshot MOnitoring (COSMO Germany): Monitoring knowledge, risk perceptions, preventive behaviours, and public trust in the current coronavirus outbreak in Germany. https://doi.org/10.23668/PSYCHARCHIVES.2776
Orgilés, M., Morales, A., Delvecchio, E., Mazzeschi, C., & Espada, J. P. (2020). Immediate psychological effects of the COVID-19 quarantine in youth from Italy and Spain [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/5bpfz
Mancastroppa, M., Burioni, R., Colizza, V., & Vezzani, A. (2020). Active and inactive quarantine in epidemic spreading on adaptive activity-driven networks. ArXiv:2004.07902 [Cond-Mat, Physics:Physics]. http://arxiv.org/abs/2004.07902
Lanovaz, M., & Turgeon, S. (2020). Tutorial: Applying Machine Learning in Behavioral Research [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/9w6a3
Radulescu, A., Holmes, K., & Niv, Y. (2020). On the convergent validity of risk sensitivity measures [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/qdhx4
Romero-Rivas, C., & Rodríguez-Cuadrado, S. (2020, April 28). Moral decision-making and mental health during the COVID-19 pandemic. Retrieved from psyarxiv.com/8whkg
Cox, D. J. (2020). A guide to establishing ethics committees in behavioral health settings [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/br67g
Imhoff, R., & Lamberty, P. (2020, April 14). A bioweapon or a hoax? The link between distinct conspiracy beliefs about the Coronavirus disease (COVID-19) outbreak and pandemic behavior. https://doi.org/10.31234/osf.io/ye3ma
Hertz, U. (2020). Cognitive learning processes account for asymmetries in adaptations to new social norms [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/7thku
Branas-Garza, P., Caldentey, P., Espin, A. M., García, T., & Román, A. H. (2020). Exposure to economic inequality at the age of 8 enhances prosocial behavior in adult life [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/nkz5a
Pastor-Escuredo, D., & Tarazona, C. (2020). Characterizing information leaders in Twitter during COVID-19 crisis. ArXiv:2005.07266 [Physics]. http://arxiv.org/abs/2005.07266
Zmigrod, L., Ebert, T., Götz, F. M., & Rentfrow, J. (2020, April 11). The Psychological and Socio-political Consequences of Infectious Diseases. https://doi.org/10.31234/osf.io/84qcm
Hargreaves, J., Davey, C., Hargreaves, J., Davey, C., Auerbach, J., Blanchard, J., Bond, V., Bonell, C., Burgess, R., Busza, J., Colbourn, T., Cowan, F., Doyle, A., Hakim, J., Hensen, B., Hosseinipour, M., Lin, L., Johnson, S., Masuka, N., … Yekeye, R. (2020). Three lessons for the COVID-19 response from pandemic HIV. The Lancet HIV, S2352301820301107. https://doi.org/10.1016/S2352-3018(20)30110-7
Rahmani P, Peruani F, Romanczuk P (2020) Flocking in complex environments—Attention trade-offs in collective information processing. PLoS Comput Biol 16(4): e1007697. https://doi.org/10.1371/journal.pcbi.1007697
You might not care today, but your approach doesn’t allow you to have multiple spaces (Philippines 6014), leading spaces, trailing spaces, or tabs.
Galandra, C., Cerami, C., Santi, G., Dodich, A., Cappa, S., Vecchi, T., & Crespi, C. (2020). Covid-19 in mind: How job loss and health threatening events modulate risk-taking behaviours in real-life contexts [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/5n942
Galandra, C., Cerami, C., Santi, G., Dodich, A., Cappa, S., Vecchi, T., & Crespi, C. (2020). Covid-19 in mind: How job loss and health threatening events modulate risk-taking behaviours in real-life contexts [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/5n942