- Last 7 days
-
-
McCabe, Stefan, Leo Torres, Timothy LaRock, Syed Arefinul Haque, Chia-Hung Yang, Harrison Hartle, and Brennan Klein. ‘Netrd: A Library for Network Reconstruction and Graph Distances’. ArXiv:2010.16019 [Physics], 29 October 2020. http://arxiv.org/abs/2010.16019.
-
-
github.com github.com
-
Tree Navigation
-
- Feb 2021
-
en.wikipedia.org en.wikipedia.org
-
Most C++ template idioms will carry over to D without alteration, but D adds some additional functionality
-
-
wiki.haskell.org wiki.haskell.org
-
Comparison to imperative languages
-
-
www.nytimes.com www.nytimes.com
-
I wanted to keep reviewing restaurants, but I didn’t want to go back into their dining rooms both because of the risk and because I was afraid readers would take it as an all-clear signal. When the governor halted indoor dining again in December, my selfish reaction was relief. Then I briefly got depressed. How would restaurants survive? And how would I keep writing about them?One answer had already started to appear on sidewalks and streets in the form of small greenhouses, huts, tents and yurts. Inside these personal dining rooms, you can (and should) sit just with people from your own household. If the restaurant thoroughly airs the space out between seatings, any germs you breathe in should be the same ones that are bouncing around your home. Many restaurants instruct their servers to stay outside the structures as much as possible, though some don’t.
Syntax of question and answer reveals itself again. His doubts and negativity are addressed within the first highlighted paragraph with a question coming to Pete's mind. He realized his influence as a critic and decided to take the right step to prevent anything bad from occurring. Despite his sacrifice, the next paragraph he discusses the clever solutions restaurants had come up with which solved his problem for the most part. This description underlines yet more change that brought upon good things, which is the main idea he is relating to the food scene. He creates a comparison between an at home setting along with the solutions restaurants have come up with to further emphasize his point of safety amidst COVID.
-
Before the pandemic, I normally called chefs after I’d written a review of their restaurant but before it was published, to check facts. The chefs usually sounded as if I were calling with the results of a lab test. One chef called me back from a hospital and told me his wife was in the next room giving birth to their first child, but — oh no, don’t worry, it’s fine, he said; in fact, I’d picked a perfect time to call! These were, in other words, awkward conversations.The ones I had last spring were different. It was as if the fear and distrust all chefs feel toward all critics were gone. They talked about going bankrupt, they talked about crying and not wanting to get out of bed. What did they have left to lose by talking to me?
Pete highlights a key change that came with COVID, except he emphasizes the good that came from it. This compare and contrast allows the reader to see how the personalities have developed along with the times. There was a silver lining amidst the "crying and not wanting to get out of bed". The drastic comparison of his importance before and after the pandemic with a chef giving equal importance to Pete and his first child underlines just how wrong priorities were previously. His diction, utilizing awkward perfectly to encapsulate the environment surrounding his job before COVID, pushing forth the idea that good can result from change.
-
-
twitter.com twitter.com
-
ReconfigBehSci on Twitter: ‘@parnyman @ErikAngner I’m happy to move to more refined statistical measures where there is good reason for them, and, as a scientist, I am happy to take whatever answer the data give us’ / Twitter. (n.d.). Retrieved 21 February 2021, from https://twitter.com/SciBeh/status/1362755616327032832
-
-
twitter.com twitter.com
-
ReconfigBehSci on Twitter: ‘@JAndreen @ErikAngner details about human contact networks matter, as epidemiologists pointed out last spring. Https://t.co/DC5FoW5ChY If you think I am wrong about the relevant parameters for Sweden, I’d love to hear more. One place to start is saying how it differs from other Nordic countries’ / Twitter. (n.d.). Retrieved 21 February 2021, from https://twitter.com/SciBeh/status/1362757183121854466
-
-
github.com github.com
-
There are times where it is useful to know whether a value was passed to run or the result of a filter default. In particular, it is useful when nil is an acceptable value.
Yes! An illustration in ruby:
main > h = {key_with_nil_value: nil} => {:key_with_nil_value=>nil} main > h[:key_with_nil_value] => nil main > h[:missing_key] # this would be undefined in JavaScript (a useful distinction) rather than null, but in Ruby it's indistinguishable from the case where a nil value was actually explicitly _supplied_ by the caller/user => nil # so we have to check for "missingness" ("undefinedness"?) differently in Ruby main > h.key?(:key_with_nil_value) => true main > h.key?(:missing_key) => false
This is one unfortunate side effect of Ruby having only
nil
and no built-in way to distinguish betweennull
andundefined
like in JavaScript.
-
-
twitter.com twitter.com
-
Erik Angner. (2021, February 18). Periodic reminder that in terms of outcomes, Swedish corona policy is thoroughly average in EU comparison – not exactly a model to be emulated by the rest of the world, nor a crime against humanity that should be prosecuted in the Hague. Https://t.co/E1CHBFMs6S [Tweet]. @ErikAngner. https://twitter.com/ErikAngner/status/1362319246378872832
-
-
jointoucan.com jointoucan.com
-
That’s it, plain and simple. But if you want the legalese version, dive into it here.
Tags
Annotators
URL
-
-
www.nature.com www.nature.com
-
magazine, C. A., Nature. (n.d.). COVID-19 Herd Immunity Strategies Could Bring ‘Untold Death and Suffering’ Scientific American. Retrieved 18 February 2021, from https://www.scientificamerican.com/article/covid-19-herd-immunity-strategies-could-bring-untold-death-and-suffering/
-
-
www.theguardian.com www.theguardian.com
-
Behind the numbers: How to make sense of ‘excess’ deaths | David Spiegelhalter. (2021, January 17). The Guardian. http://www.theguardian.com/commentisfree/2021/jan/17/statistics-explained-covid-19-excess-deaths-david-spiegelhalter
-
-
github.com github.com
-
This would be more useful if there was an easy way to actually compare the differences...
This is how I did it:
cd user-example diff -r -u10 before/ after/ # then compare after/app/forms, which was only in after
Linked to from https://hyp.is/5YyPAnFNEeu0Vv94pLaypA/github.com/railsgsoc/actionform
Tags
Annotators
URL
-
-
github.com github.com
-
You can find a list of applications using this gem in this repository: https://github.com/m-Peter/nested-form-examples . All the examples are implemented in before/after pairs. The before is using the accepts_nested_attributes_for, while the after uses this gem to achieve the same functionality.
Tags
Annotators
URL
-
-
github.com github.com
-
Compared to existing Ruby desktop frameworks, such as Shoes, Bowline's strengths are its adherence to MVC and use of HTML/JavaScript.
-
-
www.imperial.ac.uk www.imperial.ac.uk
-
Goossens, K. (2021). Covid-19: Global attitudes towards a COVID-19 vaccine. Imperial College London.
-
-
store.steampowered.com store.steampowered.com
-
Transport Tycoon is easily one of the best Tycoon games, this variant offers indepth control over your logistic networks and zero breakdowns but with loads of new tools to get to grips with you will need to search up a guide.The other variant, OpenTTD, wants to remain more like the original. its not as precise in its logistics but much simpler to pick up and play.Both are multiplayerBoth are freeIf Simutrans feels abit obtuse, try OTTDIf OTTD feels too simple, try Simutrans
-
-
ctf0.wordpress.com ctf0.wordpress.com
-
www.youtube.com www.youtube.com
-
if PopOS! really wants to be what Ubuntu was 10 years ago they need to step up and make dual booting easier.
Tags
Annotators
URL
-
- Jan 2021
-
ubuntu.com ubuntu.com
-
Snaps each pick a ‘base’, for example, Ubuntu18 (corresponding to the set of minimal debs in Ubuntu 18.04 LTS). Nevertheless, the choice of base does not impact on your ability to use a snap on any of the supported Linux distributions or versions — it’s a choice of the publisher and should be invisible to you as a user or developer.
Snaps sound a lot like container images in this respect.
-
-
blog.hubspot.com blog.hubspot.com
-
Taglines are more often next to the company's logo on official advertisements, and are dedicated more specifically to brand awareness than slogans. Slogans carry a brand's values and promises as the company grows and evolves, and can be promoted under an overarching company tagline.
-
Although both "slogan" and "tagline" tend to be used interchangeably, they actually serve two different purposes.
-
Companies have slogans for the same reason they have logos: advertising. While logos are visual representations of a brand, slogans are audible representations of a brand. Both formats grab consumers' attention more readily than the name a company or product might. Plus, they're simpler to understand and remember.
-
In many ways, they're like mini-mission statements.
-
-
css-tricks.com css-tricks.com
-
And since auto is entirely based on content, we can say it is “indefinitely” sized, its dimensions flex. If we were to put an explicit width on the column, like 50% or 400px, then we would say it is “definitely” sized.
-
-
forums.theregister.com forums.theregister.com
-
A bind mount is basically where you mount a given directory on top of an existing one. Suppose you have a RAID array where you have a partition mounted at /home2, containing some larger user accounts. If you wanted to remount /home2/user to /home/user (to sidestep issue #1), without the issues that come along with symlinks (it is not a directory, just a token that points to it), you'd do something like mount --bind /home2/bob /home/bob and the directory will then be traversable from both locations. The target folder must exist, same as any mount point. The end result is somewhat similar to a symlink, but instead of creating a special filesystem object, it utilizes the operating system's filesystem mounting machinery to do it, which makes it more transparent to running software. Tools like 'du' and 'find' will still be aware that they are cross filesystem boundaries, and will also behave as such if the bind mount is entirely within a given filesystem. Finally, as they're transient by nature (unlike symlinks), they need to be placed in fstab or some startup script to make them persistent.
-
-
-
Spinney, L. (2020). What are COVID archivists keeping for tomorrow’s historians? Nature, 588(7839), 578–580. https://doi.org/10.1038/d41586-020-03554-0
-
-
experts.umn.edu experts.umn.edu
-
Toff, B. J., Badrinathan, S., Mont’Alverne, C., Arguedas, A. R., Fletcher, R., & Nielsen, R. K. (2020). What we think we know and what we want to know: Perspectives on trust in news in a changing world. Reuters Institute for the Study of Journalism. https://experts.umn.edu/en/publications/what-we-think-we-know-and-what-we-want-to-know-perspectives-on-tr
-
-
www.nature.com www.nature.com
-
Lewis, D. (2020). Why many countries failed at COVID contact-tracing—But some got it right. Nature, 588(7838), 384–387. https://doi.org/10.1038/d41586-020-03518-4
-
-
stackoverflow.com stackoverflow.com
-
The use:action method seems cleaner, but aside from that, are there any underlying differences between these two methods that would make one preferred over the other in certain situations?
-
-
atomiks.github.io atomiks.github.io
-
Both are elements positioned near a "reference" element, and are hidden until they are triggered. They help conserve space by hiding secondary information or functionality behind a hover or click. They are positioned outside the normal flow of the document so when they are triggered, they are overlaid on top of the existing UI without disrupting the flow of content.
-
-
stackoverflow.com stackoverflow.com
-
While there are always going to be cases where one is more appropriate than the other, border-bottom offers much more precise control over text-decoration and is therefore probably the preferred method. Here's a quick (likely not exhaustive) list of properties that border-bottom can control/enable that text-decoration cannot:
-
-
-
Popover is similar to tooltips; it is a pop-up box that appears when user click or hover on an element.
-
-
askubuntu.com askubuntu.com
-
How do you know this? I've looked all over the internet and can't find any proof that Lightdm is more "lightweight" (whatever this means) or faster.
-
LightDM always felt rather sluggish to me. gdm3 appears to be a lot more snappy.
-
-
www.shopify.com www.shopify.com
-
All in all, building icon systems with SVG isn’t that hard! If you have the right tools available, it can be a pretty easy switch. The benefits of SVG sprites have been discussed at length, and the consensus in the web community is that SVG icon systems come out on top when compared with iconic fonts.
-
- Dec 2020
-
programmingwithmosh.com programmingwithmosh.com
-
sessionStorage (a storage that persists for duration of the session, comparable to session cookies)
-
localStorage (a persistent storage, which can be compared to persistent cookies)
-
-
github.com github.com
-
React abstracts the DOM with functionally pure declarative rendering and provides escape hatches back to mutable imperative DOM land. This is a profound philosophical difference that Rich gave a talk about.
-
It's true that Svelte does not allow you to map over children like React, but its slot API and <svelte:component> provide similarly powerful composition. You can pass component constructors as props and instantiate them with <svelte:component>, and use slots and their let bindings for higher order composition. It sounds like you're thinking in virtual DOM idioms instead of Svelte's.
-
My frustration is mainly from Svelte's choices that are very un-JavaScript-like. It doesn't have to be "like React/Vue". React is React because it doesn't restrict what you can do with JavaScript for the most part. It's just common FP practice to fold/map.
-
-
www.cnn.com www.cnn.com
-
CNN, P. N. (n.d.). Canada crushed the Covid-19 curve but complacency is fueling a deadly second wave. CNN. Retrieved December 9, 2020, from https://www.cnn.com/2020/12/08/world/canada-covid-second-wave/index.html
-
-
github.com github.com
-
I think the main difference between the two are the way API are served. Some smelte components need you to input big chunk of json as props, while i prefer keep props as primitive types and in the other hand give you different components tags to compose.
-
-
developers.cloudflare.com developers.cloudflare.com
-
Around https://youtu.be/vHHLLJA0b70?t=7667 (https://www.youtube.com/watch?v=CgfF1Otav_o&feature=emb_logo) he compared it with localStorage or sessionStorage or IndexedDB
-
- Nov 2020
-
advances.sciencemag.org advances.sciencemag.org
-
Charoenwong, B., Kwan, A., & Pursiainen, V. (2020). Social connections with COVID-19–affected areas increase compliance with mobility restrictions. Science Advances, 6(47), eabc3054. https://doi.org/10.1126/sciadv.abc3054
-
-
www.reddit.com www.reddit.com
-
Really? I've been using Flutter for about a week and Svelte seems an order of magnitude better designed. I find Flutter overly complicated.
-
Svelte by itself is great, but doing a complete PWA (with service workers, etc) that runs and scales on multiple devices with high quality app-like UI controls quickly gets complex. Flutter just provides much better tooling for that out of the box IMO. You are not molding a website into an app, you are just building an app. If I was building a relatively simple web app that is only meant to run on the web, then I might still prefer Svelte in some cases.
-
Unfortunately it is not just the semantic that is broken. There are lot of things.For example if you look at some of the examples (https://flutter.github.io/samples/#/) - you can see that indeed there are some div and p tags but it is not entirely normal DOM elements. For example you can't even select text anywhere on the screen. And there are more and more little things like that.Just to be clear - Flutter for web is great, I'm happy it exists, but it is not comparable to React/Vue or Svelte.IMO Flutter for web is good to post live examples of Flutter code or maybe some last-minute-boss-request to make a web version of existing app, but for not for full-blown web app. :)
-
-
uxdesign.cc uxdesign.cc
-
github.com github.com
-
For use$ since svelte is never going to support actions for components, i designed something that reminds React hooks that will in some ways replace this feature.
Isn't that what use$ is trying to do already? How is that "something that reminds React hooks" any different? Will be interested to see...
-
-
geoexamples.com geoexamples.com
-
SVG has the advantage that integrates very well with Svelte, since it’s an XML and the nodes can be managed as if they were HTML. On the other hand, Canvas is more efficient, but it has to be generated entirely with JavaScript.
-
-
github.com github.com
-
-
In Svelte, all reactive statements are memoized. Instead of const var = useMemo(() => expression, dependencies), you can use $: var = expression. Notice with Svelte, you don't need to declare the dependencies. The compiler infers them for you.
-
-
boardgamegeek.com boardgamegeek.com
-
I prefer light stock taking games like American Rails.
-
-
-
Kaveladze, B., Chang, K., Siev, J., & Schueller, S. (2020). The COVID-19 Pandemic’s Impact on OCD Symptoms Varies Widely. PsyArXiv. https://doi.org/10.31234/osf.io/h8wyt
-
-
en.wikipedia.org en.wikipedia.org
-
That is, if Company A owns 80% or more of the stock of Company B, Company A will not pay taxes on dividends paid by Company B to its stockholders, as the payment of dividends from B to A is essentially transferring cash from one company to the other.
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
If you were to check the return status of every single command, your script would look like this:
Illustrates how much boilerplate set -e saves you from.
Update: Oops, if you read a comment further below, you learn that:
Actually the idiomatic code without
set -e
would be justmake || exit $?
True that.
-
-
webpack.js.org webpack.js.orgConcepts1
-
The webpack repository contains an example showing the effect of all devtool variants. Those examples will likely help you to understand the differences.
-
-
news.ycombinator.com news.ycombinator.com
-
Frontend frameworks are a positive sum game! Svelte has no monopoly on the compiler paradigm either. Just like I think React is worth learning for the mental model it imparts, where UI is a (pure) function of state, I think the frontend framework-as-compiler paradigm is worth understanding. We're going to see a lot more of it because the tradeoffs are fantastic, to where it'll be a boring talking point before we know it.
-
-
github.com github.com
-
You may know several Procfile process management tools, but Overmind has some unique, extraterrestrial powers others don't:
-
- Oct 2020
-
www.aeaweb.org www.aeaweb.org
-
Ferraro, P. J., Miranda, J. J., & Price, M. K. (2011). The Persistence of Treatment Effects with Norm-Based Policy Instruments: Evidence from a Randomized Environmental Policy Experiment. American Economic Review, 101(3), 318–322. https://doi.org/10.1257/aer.101.3.318
-
-
www.basefactor.com www.basefactor.com
-
React Final Forms is a great library, an enhanced version of Redux Form
-
-
99-percent.org 99-percent.org
-
How Did We Get Into This Mess? (2020, October 15). 99%. https://99-percent.org/how-did-we-get-into-this-mess/
-
-
github.com github.com
-
Indeed, it looks like svelte-hooks did add support for clean-up functions to their useEffect in devongovett/svelte-hooks@1d39d95! ... which is great, though @DylanVann's much simpler and zero-dependency version is even better in some ways.
Tags
Annotators
URL
-
-
twitter.com twitter.com
-
Paul Edbrooke MP on Twitter. (n.d.). Twitter. Retrieved October 21, 2020, from https://twitter.com/paul4frankston/status/1317362188097519616
-
-
www.guru99.com www.guru99.com
-
www.nature.com www.nature.com
-
Schiermeier, Q., Else, H., Mega, E. R., Padma, T. V., & Gaind, N. (2020). What it’s really like to do science amid COVID-19. Nature. https://doi.org/10.1038/d41586-020-02815-2
-
-
twitter.com twitter.com
-
David Rothschild on Twitter. (n.d.). Twitter. Retrieved October 17, 2020, from https://twitter.com/DavMicRot/status/1316429651988877312
-
-
www.newscientist.com www.newscientist.com
-
Vaughan, A. (n.d.). England & Wales had most excess deaths in Europe’s covid-19 first wave. New Scientist. Retrieved October 16, 2020, from https://www.newscientist.com/article/2256986-england-wales-had-most-excess-deaths-in-europes-covid-19-first-wave/
-
-
thisthat.dev thisthat.dev
-
Source at: https://github.com/phuoc-ng/this-vs-that
-
-
-
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
-
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
- Turing complete
- template language: bad: by not reusing existing language constructs; forced to reinvent equivalents which are inferior and unfamiliar
- hyperscript
- reuse existing language constructs
- bad combination/mixture/hybrid/frankenstein
- missing out on the benefits of something
- good point
- making it easy for later refactoring
- react-hyperscript
- template language vs. reusing existing language constructs
- javascript
- JSX
- it's just _
- JavaScript
- comparison with:
- hybrid/mixture
Annotators
URL
-
-
www.npmjs.com www.npmjs.comhyperx1
-
This module is similar to JSX, but provided as a standards-compliant ES6 tagged template string function.
-
-
github.com github.com
-
const { getByRole } = render(<input bind_value={text}>)
Directly compare to: https://hyp.is/T2NGMA5ZEeu2k6dW8hBd9g/github.com/kenoxa/svelte-htm
-
-
github.com github.com
-
const { getByRole } = render(html`<input bind:value=${text} />`)
Directly compare to: https://hyp.is/KXd5yA5ZEeu9_K_HXsDR2w/github.com/kenoxa/svelte-jsx
-
-
2ality.com 2ality.com
-
To suggest template literals cover the level of abstraction that JSX has to offer is just dumb. They're great and all, but c'mon now...
-
-
medium.com medium.com
-
Then at some moment I just stumbled upon limitations and inexpressiveness of templates and started to use JSX everywhere — and because JSX was not a typical thing for Vue I switched to React over time. I don’t want to make a step back.
-
-
-
Arguably, it leans into JSX land—including logic in the templates.
-
-
www.theguardian.com www.theguardian.com
-
Continual lockdowns are not the answer to bringing Covid under control | Devi Sridhar. (2020, October 10). The Guardian. http://www.theguardian.com/commentisfree/2020/oct/10/continual-local-lockdowns-answer-covid-control
-
-
letconst.com letconst.com
Tags
Annotators
URL
-
-
deno.land deno.land
-
Comparison to Node.js
Tags
Annotators
URL
-
-
twitter.com twitter.com
-
Adam Kucharski on Twitter. (n.d.). Twitter. Retrieved October 10, 2020, from https://twitter.com/AdamJKucharski/status/1313760847932596224
-
-
unhosted.org unhosted.org
-
Solid is similar to remoteStorage in that it allows apps and services (including unhosted web apps) to store the user's data under the user's control.
-
-
-
createState and createSignal are improvements over React's useState as it doesn't depend on the order of calls.
-
Solid is a declarative JavaScript library for creating user interfaces. It's kinda like if React and Svelte had a baby.
-
-
github.com github.com
-
Comparison to useReducer
-
-
twitter.com twitter.com
-
Luke O’Neill on Twitter. (n.d.). Twitter. Retrieved October 7, 2020, from https://twitter.com/laoneill111/status/1313542640391139329
-
-
www.washingtonpost.com www.washingtonpost.com
-
Long, H., correspondentEmailEmailBioEmailFollowEmail, H. L., Dam, rew V., Fowers, rew V. D. focusing on economic dataEmailEmailBioEmailFollowEmailAlyssa, visualization, A. F. reporter focusing on data, data, analysisEmailEmailBioEmailFollowEmailLeslie S. S. reporter focusing on, & storytellingEmailEmailBioEmailFollowEmail, multimedia. (n.d.). The covid-19 recession is the most unequal in modern U.S. history. Washington Post. Retrieved October 2, 2020, from https://www.washingtonpost.com/graphics/2020/business/coronavirus-recession-equality/
-
- Sep 2020
-
www.scientificamerican.com www.scientificamerican.com
-
Haseltine, W. A. (n.d.). Lessons from AIDS for the COVID-19 Pandemic. Scientific American. https://doi.org/10.1038/scientificamerican1020-35
-
-
sapper.svelte.dev sapper.svelte.dev
-
Next.js is a React framework from Vercel (formerly ZEIT), and is the inspiration for Sapper. There are a few notable differences, however:
Tags
Annotators
URL
-
-
svelte.dev svelte.dev
-
for example, reactive declarations essentially do the work of React's useMemo, useCallback and useEffect without the boilerplate (or indeed the garbage collection overhead of creating inline functions and arrays on each state change).
-
In Vue, your markup must be wrapped in a <template> element, which I'd argue is redundant.
-
-
github.com github.com
-
If you're using Rollup with rollup-plugin-svelte, this will happen automatically.
Tags
Annotators
URL
-
-
rollupjs.org rollupjs.orgRollup1
-
If you need to call the function repeatedly, this is much, much faster than using eval.
-
-
www.sciencedirect.com www.sciencedirect.com
-
Han, E., Tan, M. M. J., Turk, E., Sridhar, D., Leung, G. M., Shibuya, K., Asgari, N., Oh, J., García-Basteiro, A. L., Hanefeld, J., Cook, A. R., Hsu, L. Y., Teo, Y. Y., Heymann, D., Clark, H., McKee, M., & Legido-Quigley, H. (2020). Lessons learnt from easing COVID-19 restrictions: An analysis of countries and regions in Asia Pacific and Europe. The Lancet, 0(0). https://doi.org/10.1016/S0140-6736(20)32007-9
-
-
medium.com medium.com
-
Rollup also does something very different compared to the other bundlers. It only tries to achieve one simple goal: Bundle ES modules together and optimise the bundle.
-
-
-
github.com github.com
-
Allow creating custom components with the same abilities as native dom. By all means keep the same level of encapsulation, don't push class on components, but allow a component to mark the class property or another as a CSS Class property, in which case you could pass it through the same transformation that native elements go through
-
-
github.com github.com
-
I think Svelte's approach where it replaces component instances with the component markup is vastly superior to Angular and the other frameworks. It gives the developer more control over what the DOM structure looks like at runtime—which means better performance and fewer CSS headaches, and also allows the developer to create very powerful recursive components.
-
-
github.com github.com
-
Does it look like a decorator plugin in Ractive, right
-
-
-
<LazyLoad component="img" data-src="giant-photo.jpg" class="my-cool-image" />
-
<LazyLoad> <img data-src='giant-photo.jpg'/> </LazyLoad>
-
-
github.com github.com
-
Re Object.keys(undefined), I think I'm ok with that failing. AFAIK it would also fail in React
-
The more I think about this, the more I think that maybe React already has the right solution to this particular issue, and we're tying ourselves in knots trying to avoid unnecessary re-rendering. Basically, this JSX... <Foo {...a} b={1} {...c} d={2}/> ...translates to this JS: React.createElement(Foo, _extends({}, a, { b: 1 }, c, { d: 2 })); If we did the same thing (i.e. bail out of the optimisation allowed by knowing the attribute names ahead of time), our lives would get a lot simpler, and the performance characteristics would be pretty similar in all but somewhat contrived scenarios, I think. (It'll still be faster than React, anyway!)
-
-
-
twitter.com twitter.com
-
Adam Kucharski on Twitter. (n.d.). Twitter. Retrieved September 22, 2020, from https://twitter.com/AdamJKucharski/status/1307231588732764161
-
-
journals.sagepub.com journals.sagepub.com
-
Salvador, C. E., Berg, M. K., Yu, Q., Martin, A. S., & Kitayama, S. (2020). Relational Mobility Predicts Faster Spread of COVID-19: A 39-Country Study: Psychological Science. https://doi.org/10.1177/0956797620958118
-
-
www.euromomo.eu www.euromomo.eu
-
Graphs and maps from EUROMOMO. (n.d.). EUROMOMO. Retrieved September 18, 2020, from https://euromomo.eu/dev-404-page/
-
-
blog.carbonfive.com blog.carbonfive.com
-
Like with React, you can pass in callback props like onSave and onDelete, which is the main way you send data out of a component to a parent.
-
-
www.codingwithjesse.com www.codingwithjesse.com
-
In most component frameworks, you need to write some code to define your component. With React, the simplest component is an empty function. In other frameworks, you need to import a library and call a special function to define and create your component. With Svelte, you just create a new .svelte file.
If you compare these two:
- With React, the simplest component is an empty function.
- With Svelte, you just create a new .svelte file.
Creating a new empty function is actually easier/faster than creating and importing a new file. Because you don't have to create a new file just to create a new one-line component. You can create simple helper components within the same file as the main component they help with, and sometimes it is nice to have the flexibility and freedom to compose your files however you want, including the freedom to group multiple closely related components together in the same file.
In fact one thing I've sometimes found very useful and handy is to be able to define very simple helper components (functions) within the definition of my main component.
So I would actually put this comparison in the "win" category for React, not Svelte.
-