- Last 7 days
-
osf.io osf.io
-
Smaldino, Paul E., and Cailin O’Connor. ‘Interdisciplinarity Can Aid the Spread of Better Methods Between Scientific Communities’. MetaArXiv, 5 November 2020. https://doi.org/10.31222/osf.io/cm5v3.
-
-
www.reddit.com www.reddit.com
-
This is Fantatical's annual "Bundlefest" so in this case it's just timing. They'll do this once a year and we just so happened to have a bundle with them not too long ago. It's not something we typically do.
-
-
trailblazer.to trailblazer.to
-
For branching out a separate path in an activity, use the Path() macro. It’s a convenient, simple way to declare alternative routes
Seems like this would be a very common need: once you switch to a custom failure track, you want it to stay on that track until the end!!!
The problem is that in a Railway, everything automatically has 2 outputs. But we really only need one (which is exactly what Path gives us). And you end up fighting the defaults when there are the automatic 2 outputs, because you have to remember to explicitly/verbosely redirect all of those outputs or they may end up going somewhere you don't want them to go.
The default behavior of everything going to the next defined step is not helpful for doing that, and in fact is quite frustrating because you don't want unrelated steps to accidentally end up on one of the tasks in your custom failure track.
And you can't use
fail
for custom-track steps becase that breaksmagnetic_to
for some reason.I was finding myself very in need of something like this, and was about to write my own DSL, but then I discovered this. I still think it needs a better DSL than this, but at least they provided a way to do this. Much needed.
For this example, I might write something like this:
step :decide_type, Output(Activity::Left, :credit_card) => Track(:with_credit_card) # Create the track, which would automatically create an implicit End with the same id. Track(:with_credit_card) do step :authorize step :charge end
I guess that's not much different than theirs. Main improvement is it avoids ugly need to specify end_id/end_task.
But that wouldn't actually be enough either in this example, because you would actually want to have a failure track there and a path doesn't have one ... so it sounds like Subprocess and a new self-contained ProcessCreditCard Railway would be the best solution for this particular example... Subprocess is the ultimate in flexibility and gives us all the flexibility we need)
But what if you had a path that you needed to direct to from 2 different tasks' outputs?
Example: I came up with this, but it takes a lot of effort to keep my custom path/track hidden/"isolated" and prevent other tasks from automatically/implicitly going into those steps:
class Example::ValidationErrorTrack < Trailblazer::Activity::Railway step :validate_model, Output(:failure) => Track(:validation_error) step :save, Output(:failure) => Track(:validation_error) # Can't use fail here or the magnetic_to won't work and Track(:validation_error) won't work step :log_validation_error, magnetic_to: :validation_error, Output(:success) => End(:validation_error), Output(:failure) => End(:validation_error) end
puts Trailblazer::Developer.render o Reloading... #<Start/:default> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<End/:success> #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Left} => #<End/:validation_error> {Trailblazer::Activity::Right} => #<End/:validation_error> #<End/:success> #<End/:validation_error> #<End/:failure>
Now attempt to do it with Path... Does the Path() have an ID we can reference? Or maybe we just keep a reference to the object and use it directly in 2 different places?
class Example::ValidationErrorTrack::VPathHelper1 < Trailblazer::Activity::Railway validation_error_path = Path(end_id: "End.validation_error", end_task: End(:validation_error)) do step :log_validation_error end step :validate_model, Output(:failure) => validation_error_path step :save, Output(:failure) => validation_error_path end
o=Example::ValidationErrorTrack::VPathHelper1; puts Trailblazer::Developer.render o Reloading... #<Start/:default> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<End/:validation_error> #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<End/:success> #<End/:success> #<End/:validation_error> #<End/:failure>
It's just too bad that:
- there's not a Railway helper in case you want multiple outputs, though we could probably create one pretty easily using Path as our template
- we can't "inline" a separate Railway acitivity (Subprocess "nests" it rather than "inlines")
-
step :direct_debit
I don't think we would/should really want to make this the "success" (Right) path and :credit_card be the "failure" (Left) track.
Maybe it's okay to repurpose Left and Right for something other than failure/success ... but only if we can actually change the default semantic of those signals/outputs. Is that possible? Maybe there's a way to override or delete the default outputs?
Tags
- flexibility
- tip
- useful
- semantics
- powerful
- I have a question about this
- concise
- feels wrong
- example: in order to keep example concise/focused, may not implement all best practices (illustrates one thing only)
- example: not how you would actually do it (does something wrong/bad/nonideal illustrating but we should overlook it because that's not the one thing the example is trying to illustrate/show us)
- verbose / noisy / too much boilerplate
- trailblazer-activity
- helper functions
Annotators
URL
-
-
trailblazer.to trailblazer.to
-
Hey, that’s is an imaginary complication of our example - please don’t do this with every condition you have in your app.
-
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.
Tags
- good abstraction
- good explanation
- railway-oriented programming
- abstractions
- reduce/minimize/simplify/remove control flow code
- artificial example
- example: not how you would actually do it (does something wrong/bad/nonideal illustrating but we should overlook it because that's not the one thing the example is trying to illustrate/show us)
- example
- coming up with hypothetical examples
- too many ifs: bad
Annotators
URL
-
-
twitter.com twitter.com
-
Nick Brown. (2020, November 27). A researcher reads an online news article about a family suicide in another country and writes it up more or less verbatim as a ‘case report’, with a spurious reference to homicide. WTF @wileyglobal? 10.1111/ppc.12686 News article (trans by Google in pic): Https://t.co/uPZeRPN4jg https://t.co/tHW1XQGRyl [Tweet]. @sTeamTraen. https://twitter.com/sTeamTraen/status/1332413218271195137
-
-
twitter.com twitter.com
-
ReconfigBehSci. (2020, December 6). RT @statsepi: Lol ok. Https://t.co/eCPpU3Linv [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1335894181248643073
-
-
www.schneems.com www.schneems.com
-
Instead of having this confusing maze of lambdas, regexes, and strings, we could, in theory, introduce a single entry point of configuration for Sprockets to use, and in that file declare all assets we wanted to compile. Well, that’s exactly what the manifest.js file is.
-
-
github.com github.com
-
So, what can we do to check for None in our programs? You can use builtin Optional type and write a lot of if some is not None: conditions. But, having null checks here and there makes your code unreadable.
-
-
sobolevn.me sobolevn.me
-
Return None. That’s evil too! You either will end up with if something is not None: on almost every line and global pollution of your logic by type-checking conditionals, or will suffer from TypeError every day. Not a pleasant choice.
-
-
en.wikipedia.org en.wikipedia.org
-
there are two key elements to an anti-pattern that distinguish it from a bad habit, bad practice, or bad idea
-
-
dry-rb.org dry-rb.org
-
Writing code in this style is tedious and error-prone.
-
Monads provide an elegant way of handling errors, exceptions and chaining functions so that the code is much more understandable and has all the error handling, without all the ifs and elses.
-
-
jrsinclair.com jrsinclair.com
-
It’s definitely better than littering our code with endless if-statements.
-
-
functionalprogramming.medium.com functionalprogramming.medium.com
-
polymorphic method inside shape class, its possible to discriminate them. without if’s.
-
-
steamdb.info steamdb.info
-
Couldn't find on Steam. https://steamdb.info/app/793300/ claims that it is there, but https://store.steampowered.com/app/793300/?curator_clanid=4777282&utm_source=SteamDB just redirects to home page.
Don't redirect to a different URL, esp. without a message explaining why it did so instead of keeping me on the page that I request. That's just incorrect behavior, and a poor UX. Respond with a 404 if the page doesn't exist.!
That way (among other things), I could use Wayback Machine extension to see if I can find a cached version there.
But even that (http://web.archive.org/web/*/https://store.steampowered.com/app/793300) is saying "huh?" so I'm confused.
Where did it go and why?
I guess it's no longer available, because this page says:
section_type ownersonly ReleaseState unavailable
... but why?
Tags
Annotators
URL
-
-
-
A fifth night of peaceful protests to denounce the imprisonment of a Spanish rap artist once more devolved into clashes between police and the members of fringe groups who set up street barricades and smashed storefront windows Saturday night in downtown Barcelona.
Peaceful protests devolve into violence -- does this even really make them peaceful? Bizarre, lol.
-
- Feb 2021
-
twitter.com twitter.com
-
ReconfigBehSci. (2021, January 15). RT @MaartenvSmeden: The infamous retracted Hydroxychloroquire Lancet article? Cited.... 883 TIMES https://t.co/Zinyel2d8i [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1351111003283578883
-
-
edmontonjournal.com edmontonjournal.com
-
Bergot, N. (2020, October 24). Battling fake science: University of Alberta launches free online science literacy course. Edmonton Journal. https://edmontonjournal.com/news/local-news/battling-fake-science-ualberta-launches-free-online-science-literacy-course
-
-
www.journalofhospitalinfection.com www.journalofhospitalinfection.com
-
Tang, J. W., Bahnfleth, W. P., Bluyssen, P. M., Buonanno, G., Jimenez, J. L., Kurnitski, J., Li, Y., Miller, S., Sekhar, C., Morawska, L., Marr, L. C., Melikov, A. K., Nazaroff, W. W., Nielsen, P. V., Tellier, R., Wargocki, P., & Dancer, S. J. (2021). Dismantling myths on the airborne transmission of severe acute respiratory syndrome coronavirus (SARS-CoV-2). Journal of Hospital Infection, 0(0). https://doi.org/10.1016/j.jhin.2020.12.022
-
-
www.medrxiv.org www.medrxiv.org
-
Chen, Y.-H., Glymour, M., Riley, A., Balmes, J., Duchowny, K., Harrison, R., Matthay, E., & Bibbins-Domingo, K. (2021). Excess mortality associated with the COVID-19 pandemic among Californians 18–65 years of age, by occupational sector and occupation: March through October 2020. MedRxiv, 2021.01.21.21250266. https://doi.org/10.1101/2021.01.21.21250266
-
-
blogs.bmj.com blogs.bmj.com
-
David Oliver: Covid deniers’ precarious Jenga tower is collapsing on contact with reality. (2021, February 1). The BMJ. https://blogs.bmj.com/bmj/2021/02/01/david-oliver-covid-deniers-precarious-jenga-tower-is-collapsing-on-contact-with-reality/
-
-
www.reddit.com www.reddit.com
-
please, for the love of god do NOT use Mint as a source of inspiration for a derivative distro. If you like Cinnamon or Mate, fine, but holy CHRIST do not let your infrastructure get as criminally sloppy as Mint's. No unholy mixing of Debian and Ubuntu debs into some kind of Frankenbuntu, no namespace collisions, no ... well, no being Mint in general, please!Ideally, I really, really hope you'll continue to support Ubuntu as a primary platform, regardless of what you do with Pop!_OS. But hooboy, do not turn into another Mint, please.
-
-
stackoverflow.com stackoverflow.com
-
You can write the query in this good old way to avoid error
-
Also there is always an option to use SQL: @items .joins(:orders) .where("orders.user_id = ? OR items.available = true", current_user.id)
-
-
github.com github.com
-
but if .or() throws an error then I'm back to the bad old days of using to_sql
-
-
hypothes.is hypothes.is
-
Get Fast Cash USA: Personal Loans Online | Apply for Online Loans
Fast and easy personal loans online with a low fixed rate. Get a personal loan upto $5000. Apply for a personal loan today through Get Fast Cash USA.
Tags
- best online payday loans
- direct deposit payday loans
- online personal loans
- same day loans no credit checks
- payday and installment loans
- payday loans for bad credit instant approval
- Personal loans online
- payday loans online no credit check instant approval
- payday loans online same day deposit bad credit
- best installment loans
- payday loan no credit check
- fast payday loans online
- payday loans online same day deposit
- online payday loans same day deposit
- emergency cash immediately bad credit
Annotators
URL
-
-
-
But it shows, he said, how underhanded internet campaigns try to launder seemingly legitimate material like Mr. Vermulst’s article through a mesh of websites and fake social media accounts to give it an air of impartiality and authenticity.
What are they even arguing? It sounds even like they are saying that Mr. Vermulst's "legitimate" article is being used to give a company an 'air of impartiality and authenticity,' and... this is somehow wrong?
If the article is illegitimate, what is the wrong..? It's entirely separate from the fact that there apparently exists a network of bots that intends to share it.
-
- Jan 2021
-
www.theguardian.com www.theguardian.com
-
The same groups – including members of the popular “alt-right” Reddit forum The_Donald – used techniques that are used by reputation management firms and marketers to push their companies up Google’s search results, to ensure pro-Trump imagery and articles ranked highly.
Obvious lie easily prevented through research -- the Donald is not Alt Right.
-
-
www.cnn.com www.cnn.com
-
Supporters of former President Donald Trump breached the Capitol building on January 6 and attempted to stop Congress from certifying Joe Biden's electoral win, believing that the 2020 election was stolen from Trump.
This cannot be representative of all of the supporters who charged in at all. Not good journalism.
-
-
linuxmint-user-guide.readthedocs.io linuxmint-user-guide.readthedocs.io
-
-
When Snap was introduced Canonical promised it would never replace APT. This promise was broken. Some APT packages in the Ubuntu repositories not only install snap as a dependency but also run snap commands as root without your knowledge or consent and connect your computer to the remote proprietary store operated by Canonical.
-
-
forums.theregister.com forums.theregister.com
-
the bloody mount points. I couldn't believe that when I realised what was going on. I got the wire brush and dettol out and scraped it off my drive. Never, ever again.
-
It won't work if $HOME is not under /home. Really. Not even if you softlink. You need a bind mount
-
There's a lot of advice online showing how to get rid of snap. (e.g.: https://cialu.net/how-to-disable-and-remove-completely-snaps-in-ubuntu-linux/ worked for me) so the only result (so far, a few months later) is that Chromium has lost a user, and having upgraded Ubuntu since the original Warty, if snap becomes obligatory I'll have to take a look at Mint, or Devuan.
-
I managed to remove it myself this morning...apparently it used to get it's hooks in so deep it was very difficult to remove the daemon as it interconnected with ubuntu-desktop for....reasons.
-
Good. Hate snap. It's insidious and a pain to deal with.
-
Plus, have you seen how many loopback mounting points it creates? "df" becomes very hard to use as it buries your actual drives with it's own. One for the daemon, one for GTK, one for Gnome, one for each of the snaps you have installed....
-
it's an absolute resource hog
-
Besides running contrary to the principles that lead a lot of people to Linux systems (a closed store that you can't alter...automatic updates you have no control over....run by just the one company)
-
The strangest "quirk" I had was that I couldn't get the web browser to save a file directly to an attached, encrypted drive. Permissions problem. So I had to save to an interim folder then move it across by hand. Utter pain.
-
I found that snap can cause lots of issues. I installed keepass using snap, and it installed as a sandboxed app. Very nice for security you would think. Well, a short while later, after 3 upgrades to keepass, it deleted the oldest snap container, which just happened to contain my password file. So secure that even you can't use your passwords now!
-
If upstream code presumes things will work that dont in snap (e.g. accesses /tmp or /etc) the snap maintainer has to rewrite that code and maintain a fork. Pointless work. Packaging for .deb is a no-brainer.
-
It's Snap that drove me to Arch, so it did me a huge favour. Seeing things like GNOME as a snap and other 'core' products wasn't something I was comfortable with. Personally, I prefer flatpaks as a packaging format when compared to snap and appimage. I agree that Linux needs an app delivery format, but snap's current implementation isn't it.
-
I run a fairly ancient RedHat Enterprise 6 on my 32-bit test machine and if I need something requiring Gtk3 (such as a latest Firefox or Chrome), I just make a chroot and use debootstrap (from EPEL) to get me a Debian 9 userland for that program. Easy. No bizarre "app stores", no conflicting packages. Do people use Snap app-stores because they don't know how to use the chroot command? Or are they just lazy? If it is because they want the added security of a container, substitute chroot with lxc... Shouldn't be necessary though; if you avoid non-ethical software (i.e App-stores), you are very unlikely to need the added security.
-
The cost of snap is too high. Its Linux ffs. We want it lean, mean, open, stable, file based, and bash friendly. We want our tools to work together, and above all, we want choice. Snap is none of that.
-
Its not too complicated but it is an annoyance. I want /etc/hosts, /etc/resolv.conf, /etc/nsswitch.conf, /etc/rc.local and all the standard stuff to work. The heavy lifting is done in the kernel. All they need to do is leave it alone. Its getting harder to make Ubuntu behave like Linux.
-
Did my first Xubuntu 20.04 LTS last month: no (dependency) trouble at all to remove snap and its systemd tentacles...
Tags
- dependency mess
- Chromium snap: bad
- core values
- chroot
- messy
- problems
- snap: removing
- annoying
- could be easier / more difficult than it needs to be
- unintended consequence
- too much noise
- app stores
- snap: bad
- systemd: bad
- losing a prospective customer/user because of a deal-breaker
- Linux: reasons people use/choose it
- standard
- needs to be standardized
- want it to just work
- packaging software
- proprietary software
- leave it alone
- core principles
- infectious problem
- unfortunate
- security
- skepticism
- arbitrary limitations leading to less-than-ideal workarounds
- app stores: bad
- Chromium snap: removing
- insidious
- bind mount
- resource hog
- surprising behavior
- downsides/cons
- arbitrary limitations
- abandoning/migrating away from
- I have this problem too
Annotators
URL
-
-
discourse.ubuntu.com discourse.ubuntu.com
-
But now Chromium is no more available as deb, so what to expect ?
-
-
guides.rubyonrails.org guides.rubyonrails.org
-
There is seldom any good reason to use this option. Mixing ERB into your controllers defeats the MVC orientation of Rails and will make it harder for other developers to follow the logic of your project. Use a separate erb view instead.
-
- Dec 2020
-
www.gimpusers.com www.gimpusers.com
-
It took faaaaaaaaaaaaar too long to signup at this site to reply to you. This site rejected the real address I use for amazon, username.place@cocaine.ninja so I created an email address that I'll never check again just to signup here. I have zero tolerance for spam.
-
no post edit, eh?Fine.
-
-
github.com github.com
-
twitter.com twitter.com
-
A Marm Kilpatrick. (2020, December 8). FDA Pfizer/BioNTech vaccine efficacy results are great, but aren’t nearly as great as presented for severe infections. Everyone has seen fig below on cases in vaccine (blue) & placebo (red) over time. Thread. Https://t.co/vlZyZgJ7hr https://t.co/9ZWeWCko1x [Tweet]. @DiseaseEcology. https://twitter.com/DiseaseEcology/status/1336446195284070400
-
- Nov 2020
-
github.com github.com
-
I wonder if it's worth archiving the repository (while leaving the site running) with a message that we're transitioning the content to MDN (so folks don't get the wrong idea and a bad experience when filing issues).
-
-
webpack.js.org webpack.js.orgConcepts1
-
DevtoolThis option controls if and how source maps are generated.
If the option is (only) about source maps, then it should be called something like sourceMapTool instead.
-
-
-
I was confused as to why there is a dual system running on, there might be reasons for that but let's fix this situation by only using Webpacker to generate our assets.
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
just don't work for a company that forces you to support IE6. this can't be a good company anyways.
-
-
www.basefactor.com www.basefactor.com
-
Just let the user fill in some fields, submit it to the server and if there are any errors notify them and let the user start over again. Is that a good approach? The answer is no, you don't want users to get frustrated waiting for a server round trip to get some form validation result.
-
-
twitter.com twitter.com
-
ReconfigBehSci on Twitter. (n.d.). Twitter. Retrieved October 25, 2020, from https://twitter.com/SciBeh/status/1318119595497168897
-
-
studybreaks.com studybreaks.com
-
One of my favorite things to do with my friends is watching and ridiculing bad rom-coms, and Netflix has several to offer.
There are many poorly made romcoms on Netflix that I am not proud to say I watched.
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Looks like the problem is that debounce defaults to waiting for 0 ms ... which is completely useless!
It would be (and is) way to easy to omit the 2nd parameter to https://lodash.com/docs/4.17.15#debounce.
Why is that an optional param with a default value?? It should be required!
There must be some application where a delay of 0 is useless. https://www.geeksforgeeks.org/lodash-_-debounce-method/ alludes to / implies there may be a use:
When the wait time is 0 and the leading option is false, then the func call is deferred until to the next tick.
But I don't know what that use case is. For the use case / application of debouncing user input (where each character of input is delayed by at least 10 ms -- probably > 100 ms -- a delay of 0 seems utterly useless.
-
-
humanwhocodes.com humanwhocodes.com
-
Once again, this isn’t good or bad, it’s just the most efficient way to create something that is similar to something else
-
This isn’t to say that multiplying code is good or bad – it’s a characteristic of all code regardless of quality.
-
-
-
just saying that if you're going to try to go with a markup approach, at least go all the way, instead of the frankenstein that is JSX
-
mixing the turing complete of javascript with the markup of HTML eliminates the readability of JSX so that it is actually harder to parse than a solution like hyperscript
-
I'm okay with an overall design that allows people to plugin the parts they need in order to be able to generically support a compile-to-javascript language, but to bake in support for one singular solution because its popular is simply bad engineering.
-
hyperscript is much simpler to refactor and DRY up your code than with JSX, because, being vanilla javascript, its easier to work with variable assignment, loops and conditionals.
Tags
- it's just _
- hard to make it work in _all_ cases
- template language: bad: by not reusing existing language constructs; forced to reinvent equivalents which are inferior and unfamiliar
- Turing complete
- plugins
- can't support everything / all cases
- special cases
- JSX
- hybrid/mixture
- good point
- adding special cases only for certain popular things but not others
- javascript
- reuse existing language constructs
- bad engineering
- react-hyperscript
- can't do everything
- commit fully / go all in
- not:
- hyperscript
- favoring/catering to the needs of … over …
- extensibility
- JavaScript
- template language vs. reusing existing language constructs
- making it easy for later refactoring
- bad combination/mixture/hybrid/frankenstein
- comparison with:
- missing out on the benefits of something
Annotators
URL
-
-
icla2020b.jonreeve.com icla2020b.jonreeve.com
-
cloud
I noticed how Collins use ‘cloud’ constantly in this narrative, which perhaps foreshadowing a bad omen to come.
Tags
Annotators
URL
-
-
twitter.com twitter.com
-
Dr Natalie Shenker on Twitter. (n.d.). Twitter. Retrieved October 13, 2020, from https://twitter.com/DrNShenker/status/1314475759508107265
-
-
doi.apa.org doi.apa.org
-
Long-term effectiveness of inoculation against misinformation: Three longitudinal experiments. - PsycNET. (n.d.). Retrieved October 10, 2020, from /doiLanding?doi=10.1037%2Fxap0000315
-
- Sep 2020
-
engineering.mixmax.com engineering.mixmax.com
-
There are two ways of handling this with Rollup, as described by the troubleshooting link from the warning. Unfortunately, both Rollup and React recommend the wrong one.
-
-
github.com github.com
-
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.
Tags
- forced to fork/copy and paste library code because it didn't provide enough customizability/extensibility / didn't foresee some specific prop/behavior that needed to be overridable/configurable (explicit interface)
- forking to add a desired missing feature/change
- ugly/kludgey
- workarounds
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- Svelte: how to affect child component styles
Annotators
URL
-
-
github.com github.com
-
The problem with working around the current limitations of Svelte style (:global, svelte:head, external styles or various wild card selectors) is that the API is uglier, bigger, harder to explain AND it loses one of the best features of Svelte IMO - contextual style encapsulation. I can understand that CSS classes are a bit uncontrollable, but this type of blocking will just push developers to work around it and create worse solutions.
Tags
- key point
- +0.9
- arbitrary limitations leading to less-than-ideal workarounds
- Svelte: CSS encapsulation
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- Svelte: how to affect child component styles
- missing out on the benefits of something
- important point
Annotators
URL
-
-
twitter.com twitter.com
-
Adam Kucharski on Twitter. (n.d.). Twitter. Retrieved September 22, 2020, from https://twitter.com/AdamJKucharski/status/1307231588732764161
-
-
twitter.com twitter.com
-
Carl T. Bergstrom on Twitter. (n.d.). Twitter. Retrieved September 22, 2020, from https://twitter.com/CT_Bergstrom/status/1306995362368954369
-
-
twitter.com twitter.com
-
ReconfigBehSci on Twitter. (n.d.). Twitter. Retrieved September 21, 2020, from https://twitter.com/SciBeh/status/1307289623526285315
-
-
github.com github.com
-
In a similar vein to (#33), it is arguably just something that compensates for the lack of power in the template language relative to JavaScript.
-
-
github.com github.com
-
Even without going to that extreme, the constraint of having a single <style> can easily force component authors to resort to the kinds of classes-as-namespaces hacks that scoped styles are supposed to obviate.
-
-
github.com github.com
-
The complaint is that by choosing less powerful languages, template-based frameworks are then forced to reintroduce uncanny-valley versions of those constructs in order to add back in missing functionality, thereby increasing the mount of stuff people have to learn.
-
-
-
Is the 4C Mortality Score fit for purpose? Some comments and concerns. (2020). https://www.bmj.com/content/370/bmj.m3339/rr-3
-
-
github.com github.com
-
strict: only validate the input, and skip any coercion or transformation
transform
would have been a more descriptive name.strict
is pretty ambiguous.
-
-
retractionwatch.com retractionwatch.com
-
Marcus, A. A. (2020, September 8). COVID-19 arrived on a meteorite, claims Elsevier book chapter. Retraction Watch. https://retractionwatch.com/2020/09/08/covid-19-arrived-on-a-meteorite-claims-elsevier-book-chapter/
-
-
www.newscientist.com www.newscientist.com
-
Scientist, N. (n.d.). How to sniff out the good coronavirus studies from the bad. New Scientist. Retrieved July 1, 2020, from https://www.newscientist.com/article/2242835-how-to-sniff-out-the-good-coronavirus-studies-from-the-bad/
-
- Aug 2020
-
www.nature.com www.nature.com
-
Vuong, Q.-H. (2020). Reform retractions to make them more transparent. Nature, 582(7811), 149–149. https://doi.org/10.1038/d41586-020-01694-x
-
-
twitter.com twitter.com
-
Mario Elia on Twitter: “While I commend them for this work, a few things jump out at me right away looking at the data tables. The sample of the patients was heavily skewed towards a few demographics. 1/” / Twitter. (n.d.). Twitter. Retrieved July 11, 2020, from https://twitter.com/supermarioelia/status/1280709931235184641
-
-
twitter.com twitter.com
-
Darren L Dahly, PhD on Twitter: “If you find @MicrobiomDigest’s spot the duplication challenges a bit tooooo challenging, I’ll give you an easy one. See if you can spot the batshit crazy in this table 1, which is supposedly describing a nationally representative sample. https://t.co/dDdsq0YjR7” / Twitter. (n.d.). Twitter. Retrieved July 11, 2020, from https://twitter.com/statsepi/status/1280995113439834114
-
-
twitter.com twitter.com
-
mike johansen on Twitter: “This paper has got some MAJOR problems. I don’t know why this paper was accepted for publication (nor submitted for publication to be frank). Let’s dive in. 1/” / Twitter. (n.d.). Twitter. Retrieved July 11, 2020, from https://twitter.com/mikejohansenmd/status/1280728008643555328
-
-
retractionwatch.com retractionwatch.com
-
Marcus, A. A. (2020, August 16). Hydroxychloroquine, push-scooters, and COVID-19: A journal gets stung, and swiftly retracts. Retraction Watch. https://retractionwatch.com/2020/08/16/hydroxychloroquine-push-scooters-and-covid-19-a-journal-gets-stung-and-swiftly-retracts/
-
-
www.youtube.com www.youtube.com
-
The Cost of Correcting Bad Science. (2020, July 9). RIOT Science Club - YouTube. https://www.youtube.com/watch?v=LZBHGzQ8lVg
-
-
www.newscientist.com www.newscientist.com
-
Marshall, M. (n.d.). Everything you need to know about Russia’s coronavirus vaccine claims. New Scientist. Retrieved August 18, 2020, from https://www.newscientist.com/article/2251722-everything-you-need-to-know-about-russias-coronavirus-vaccine-claims/
Tags
- lang:en
- bad science
- immunology
- safety
- transparency
- spike protein
- development
- efficacy
- public health
- vaccine
- Russia
- is:news
- strategy
- concern
- COVID-19
Annotators
URL
-
-
www.biorxiv.org www.biorxiv.org
-
Besançon, L., Peiffer-Smadja, N., Segalas, C., Jiang, H., Masuzzo, P., Smout, C., Deforet, M., & Leyrat, C. (2020). Open Science Saves Lives: Lessons from the COVID-19 Pandemic. BioRxiv, 2020.08.13.249847. https://doi.org/10.1101/2020.08.13.249847
-
-
www.latimes.com www.latimes.com
-
C. L., & Print. (2020, August 14). Op-Ed: We rely on science. Why is it letting us down when we need it most? Los Angeles Times. https://www.latimes.com/opinion/story/2020-08-14/replication-crisis-science-cancer-memory-rewriting
-
-
onlinelibrary.wiley.com onlinelibrary.wiley.com
-
Collins, G. S., & Wilkinson, J. (n.d.). Statistical issues in the development a COVID-19 prediction models. Journal of Medical Virology, n/a(n/a). https://doi.org/10.1002/jmv.26390
-
- Jul 2020
-
Local file Local file
-
the key method for conformation comparison used in this artical is wrong, so the result is not very informative.
-
-
www.youtube.com www.youtube.com
-
COVID-19: Why has the UK response struggled? (w Professor Richard Horton). (2020, July 21). https://www.youtube.com/watch?v=riJS-zXN9nM&feature=youtu.be
-
-
twitter.com twitter.com
-
Maarten van Smeden on Twitter: “This is a kind reminder that most issues with data (e.g. measurement error, incomplete data, confounding, selection) do not disappear just because you have N = ginormous” / Twitter. (n.d.). Twitter. Retrieved July 19, 2020, from https://twitter.com/MaartenvSmeden/status/1283313496382373890
-
-
www.theguardian.com www.theguardian.com
-
But the business model that we now call surveillance capitalism put paid to that, which is why you should never post anything on Facebook without being prepared to face the algorithmic consequences.
I'm reminded a bit of the season 3 episode of Breaking Bad where Jesse Pinkman invites his drug dealing pals to a Narcotics Anonymous-type meeting so that they can target their meth sales. Fortunately the two low lifes had more morality and compassion than Facebook can manage.
-
-
www.smashingmagazine.com www.smashingmagazine.com
-
In fact, developers often tend to forget a simple, almost elementary fact: if users want to close the application or leave a site, they will — doesn’t matter which obstacles are placed on their path to the exit-button. The more obstacles there are the more negative the user experience will be.
-
Users also don’t like to deal with dozens of opened tabs and some visitors tend to become quickly angry with the disabled back button. Furthermore, some visitors may not even realize that a new window was opened and hit the back-button mercilessly — without any result. That’s not user-friendly, and that’s not a good user experience we, web designers, strive for.
-
-
twitter.com twitter.com
-
but not as two methods called Array#- and Array#difference. As something like Array#set_difference maybe, or even Array#subtract_all, maybe.
-
- Jun 2020
-
www.metaphant.net www.metaphant.netPYMS1
-
Meta-Scientists (PYMS), P. for Y. (n.d.). PYMS. PYMS. Retrieved June 22, 2020, from /
-
-
www.reddit.com www.reddit.com
-
BehSciMeta repost. (2020, May 22). "Great piece by James Heathers on how preprints have turned into publicity vehicles and researchers are being irresponsible in not responding to criticism" Reddit. https://www.reddit.com/r/BehSciMeta/comments/go6lik/great_piece_by_james_heathers_on_how_preprints/
-
-
twitter.com twitter.com
-
Good Morning Britain on Twitter: “‘The thing I find the saddest is we knew the entire story of what’s unfolded in Britain in the last 4 months by January 31.’ Editor of @theLancet, @richardhorton1 answers @Piersmorgan’s question on why he thinks the UK has handled the coronavirus pandemic so badly. https://t.co/EhiAIQg9Fy” / Twitter. (n.d.). Twitter. Retrieved June 16, 2020, from https://twitter.com/GMB/status/1272776730554650624
-
-
twitter.com twitter.com
-
Kazemi, D. (2020, May 23). "NPR is promoting this article again. Without access to the study we have no way of knowing how "bot" was estimated or measured, we simply have to go on the reputation and past research of this lab, which I dug into last night here: https://twitter.com/tinysubversion..." Twitter. https://twitter.com/tinysubversions/status/1263965246416318465
-
-
-
Brodeur, A., Cook, N., & Heyes, A. (2020). A Proposed Specification Check for p-Hacking. AEA Papers and Proceedings, 110, 66–69. https://doi.org/10.1257/pandp.20201078
-
-
twitter.com twitter.com
-
van Smeden, M. (2020, May 26). "RT @MaartenvSmeden: Often more than 300 COVID-19 related scientific articles published per day Data from @evidencelive." Twitter. https://twitter.com/SciBeh/status/1265657595307667457
-
-
www.bmj.com www.bmj.com
-
Glasziou, P. P., Sanders, S., & Hoffmann, T. (2020). Waste in covid-19 research. BMJ 2020;369. doi: https://doi.org/10.1136/bmj.m1847
-
-
www.buzzfeednews.com www.buzzfeednews.com
-
Lee, S. M. (2020, April 22) Two Antibody Studies Say Coronavirus Infections Are More Common Than We Think. Scientists Are Mad. https://www.buzzfeednews.com/article/stephaniemlee/coronavirus-antibody-test-santa-clara-los-angeles-stanford
-
-
www.buzzfeednews.com www.buzzfeednews.com
-
Lee, S. M. (2020, May 15) JetBlue’s Founder Helped Fund A Stanford Study That Said The Coronavirus Wasn’t That Deadly. BuzzFeed News. https://www.buzzfeednews.com/article/stephaniemlee/stanford-coronavirus-neeleman-ioannidis-whistleblower
-
-
twitter.com twitter.com
-
Angner, E. (2020, May 11). "Terrific assessment of projections of demand for Swedish ICU beds. The first two panels are model-based projections by academics; the third is a simple extrapolation by the public-health authority; the fourth is the actual outcome /1." Twitter. https://twitter.com/SciBeh/status/1260121561861939200
-
-
signal.org signal.org
-
Bad people will always be motivated to go the extra mile to do bad things.
-
Meanwhile, criminals would just continue to use widely available (but less convenient) software to jump through hoops and keep having encrypted conversations.
-
-
-
Security agency frustration at the lack of lawful interception for encrypted messaging is understandable, but the problem with global over-the-top platforms is that once those weaknesses are inbuilt, they become potentially available to bad actors as well as good.
-
-
www.forbes.com www.forbes.com
-
They also argue that it cannot fall to them to determine good actors from bad—not all governments are forces for good, and who decides how each one should be treated.
-