Luckily, there is absolutely no good reason not to use strict mode for everything — so the solution to this problem is to lobby the authors of those modules to update them.
- Sep 2020
-
github.com github.com
-
-
medium.com medium.com
-
small modules allow library authors to become lazy. Why include that six-line helper function when you can do a one-line `require`?
-
These are all things that make your life as a library author easier.
-
This happens because npm makes it ridiculously easy for people to release their half-baked experiments into the wild. The only barrier to entry is the difficulty of finding an unused package name. I’m all in favour of enabling creators, but npm lowers the barriers right to the floor, with predictable results.
-
I think I know why: it’s because the small modules philosophy favours library authors (like Sindre) at the ultimate expense of library users.
-
-
github.com github.com
-
I hope I won’t forget, but I’ll come back to you once we’ve got an idea on how to improve this Svelte API
-
-
github.com github.com
-
DX: start sapper project; configure eslint; eslint say that svelt should be dep; update package.json; build fails with crypt error; try to figure what the hell; google it; come here (if you have luck); revert package.json; add ignore error to eslint; Maybe we should offer better solution for this.
-
When the message say function was called outside component initialization first will look at my code and last at my configuration.
Tags
- can we do even better?
- web search for something brings me here
- error messages: should reveal/point to why/how error was caused and how to fix/prevent it
- errors
- reasonable expectation
- dev experience
- errors are helpful for development (better than silently failing)
- what a reasonable person would do
- expectations
- good point
- frustrating
- useless/unhelpful/generic error messages that don't reveal why/how error was caused
Annotators
URL
-
-
github.com github.com
-
GitHub issues aren't the right place for support questions like this. Please ask on StackOverflow or in our Discord chat room.
It was actually cross-posted here: https://stackoverflow.com/questions/62101637/urql-svelte-function-called-outside-component-initialization-if-not-in-onmou
-
-
stackoverflow.com stackoverflow.com
-
The recommended solution for onMount is the same as for useEffect — place an async function inside the handler
-
(Note that you're responsible for handling any race conditions that arise as a result of the component being destroyed before the promise resolves, though assigning state inside a destroyed component is harmless.)
-
-
-
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.
-
Also Svelte is so great because developer do not need to worry about class names conflict, except of passing (global) classes to component (sic!).
-
-
I wrote hundreds of Rect components and what I learned is that Componets should be able to be styled by developer who is using it.
-
Just throwing in <div class="{$$props.class || ''} otherChildClass"></div> seems the easiest, and it'll avoid undefined classes. I feel like many aren't noticing the undefined values getting inserted in their classes.
-
color: red; //doesn't apply this rule, because scoping doesn't extend to children
-
Say I want to style this javascript routing anchor tag on various pages (some may be buttons, plain links, images) it makes it incredibly difficult. Eg:
-
TBH It is a bit disheartening to see this issue closed when all proposed solutions do not sufficiently solve the issue at hand, I really like svelte but if this is how feature requests are handled I am probably not going to use it in the future.
-
The language should work for developers, not the other way around.
-
Having to wrap everything in a selector :global(child) { } is hacky
Tags
- missed opportunity
- who should have control over this? (programming)
- consistency
- not adding features that users really want/often request
- features
- easy mistake to make
- frustrating when maintainers stubbornly stick to opinions/principles/decisions and won't change despite popular user support
- surprising behavior
- +0.9
- common mistake
- key point
- feature request
- ugly/kludgey
- caveat
- how to affect child component components without their cooperation
- unfortunate
- missing feature
- ergonomics (software API)
- easy to miss / not notice (attention)
- framework taking care of responsibility so users can leverage it and not have to worry about that responsibility themselves
- easy to use
- good point
- Svelte: how to affect child component styles
- user can always abandon/quit/leave your site/app
Annotators
URL
-
-
-
I think instead, there would need to be some special way to make the distinction of what is a slot attribute and what is a slot prop to be consumed with let:. Maybe a new directive like <slot attr:class="abc"/>?
-
I can't add special props and keywords to every single component I have and will ever create for this to work.
-
There are work arounds, but nothing clean. I just feel like this should be functionality that should be part of the slot feature.
Tags
- too hard/difficult/much work to expect end-developers to write from scratch (need library to do it for them)
- distinction
- how to affect child component components without their cooperation
- library/framework could make this easier
- workarounds
- first-class support
- clean solution
- how to affect child components
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
Annotators
URL
-
-
github.com github.com
-
Explicitly exposing any attributes that might get overridden by a parent seems impractical to me.
-
feel like there needs to be an easy way to style sub-components without their cooperation
-
There's no way to change style incapsulation method without patching the compiler, and this means maintaing a fork, which is not desirable.
-
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
- +0.9
- missing out on the benefits of something
- key point
- how to affect child component components without their cooperation
- scalability
- impractical
- Svelte: CSS encapsulation
- important point
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- arbitrary limitations leading to less-than-ideal workarounds
- quotable
- interesting wording
- avoid forking if possible
- forking to add a desired missing feature/change
- Svelte: how to affect child component styles
- control (programming)
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
Annotators
URL
-
-
github.com github.com
-
There is a good amount of properties that should mostly be applied from a parent's point of view. We're talking stuff like grid-area in grid layouts, margin and flex in flex layouts. Even properties like position and and the top/right/left/bottom following it in some cases.
-
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.
-
Explicit interfaces are preferable, even if it places greater demand on library authors to design both their components and their style interfaces with these things in mind.
-
If you want this control then wrap them in a DOM node that the parent controls. If you want to pass in values then use props and if you want to pass in values from higher up the tree, the new style RFC may be able to help.
-
new style RFC
https://github.com/sveltejs/rfcs/blob/style-properties/text/0000-style-properties.md
-
This allows passing classes to child components with svelte-{hash} through the class prop and prevents removing such classes from css.
-
I think this is being rejected on grounds that are too arbitrary, and detract from what to me are the best things about Svelte -- it's fun and easy to use, and lets you write components in a way that's natural and expressive.
-
Web developers are well aware of the mess you can get into with global CSS, and the action of writing <Child class="foo"/> and <div class={_class}>` (or similar) in the child component is an explicit indication that, while taking advantage of all the greatness of style encapsulation by default, in this case you have decided that you want a very specific and controlled "leak", of one class, from one component instance to one component instance.
Tags
- who should have control over this? (programming)
- missed opportunity
- fun
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- being explicit
- expressiveness
- arbitrary rules/policies
- workarounds
- exceptions to the rule
- Svelte: components are their own boss (encapsulation)
- arbitrary
- be specific
- maintenance burden
- burden
- official opinion/stance/position
- feels natural
- make it a link if can be made a link to something useful/relevant
- official preferred convention / way to do something
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- ugly/kludgey
- explicit interfaces
- missed opportunity: link to what you are referring to
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- 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)
- specific/controlled exceptions to a general principle/rule/guideline
- forking to add a desired missing feature/change
- Svelte: how to affect child component styles
- easy to use
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
Annotators
URL
-
-
svelte.dev svelte.dev
-
github.com github.com
-
Would style .classInChild from your parent. The only drawback is that you might need an extra wrapping element.
-
-
github.com github.com
-
This has already forced me to forgo Svelte Material because I would like to add some actions to their components but I cannot and it does not make sense for them to cater to my specific use-case by baking random stuff into the library used by everyone.
-
The point of the feature is to not rely on the third-party author of the child component to add a prop for every action under the sun. Rather, they could just mark a recipient for actions on the component (assuming there is a viable target element), and then consumers of the library could extend the component using whatever actions they desire.
-
For my simple tooltip example, I could create a TooltipHitbox component with a <slot/> inside a <div use:myTooltip={tooltipProp}> and then wrap MatButton instances with that component.
-
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.
Tags
- Angular
- React
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- why this feature is needed
- flexibility
- extensibility
- programming paradigm
- Svelte: action (use:)
- arbitrary limitations leading to less-than-ideal workarounds
- reusability
- pass-through arguments/props/options
- feeling in control
- better/superior solution/way to do something
- comparison
- better than the alternatives
- contrast
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- powerful
Annotators
URL
-
-
github.com github.com
-
Lets not extend the framework with yet another syntax
-
Your LazyLoad image is now inextensible. What if you want to add a class? Perhaps the author of LazyLoad thought of that and sets className onto the <img>. But will the author consider everything? Perhaps if we get {...state} attributes.
-
I totally get not wanting to extend the syntax. I tried doing these things and in practice it was not easy or pretty. Actions provide a much cleaner and easier way to accomplish a certain set of functionality that would be much more difficult without it.
Tags
- keep things simple
- inextensible
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- programming: multiple ways to do the same thing
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- could be easier / more difficult than it needs to be
- extensibility
- library/framework could make this easier
- avoid complexity
- feature not needed; better to use a different approach/feature instead
- just use/do...
- clean solution
- you aren't going to need it
- clean
Annotators
URL
-
-
github.com github.com
-
<LazyLoad component="img" data-src="giant-photo.jpg" class="my-cool-image" />
compare to: https://hyp.is/Ngs_0v7VEeqTL8NOL_ME9A/github.com/sveltejs/svelte/issues/469
-
Why not just do something like this?
-
I'm still confused about the need for this, so at the expense of continuing to be that obnoxious kid at the playground, I'm going to stick my neck out again.
-
Devil's advocate: I'm not convinced the functionalities you list can't already be done within the JS of the component. Example: autofocus can simply be done w/ a method or oncreate.
-
Actions aren't necessary, otherwise they would have been implemented from the start. But they do allow for easier code-reuse and better shared libraries without exploding/complicating the ecosystem.
-
You'll have to create a new component that brings in the functionality of both. TooltipButton, TooltipLink, Link, and TooltipRoutedLink. We're starting to get a lot of components to handle a bit of added functionality.
-
For the tooltip example, if you had a whole bunch of tooltips on different elements, it would be annoying to have different event listeners and "should it be shown" variables for each one.
-
I'm just pushing on the "is this really a good idea" front
-
If this was tied into Svelte's flow with hooks this would not be necessary since it would know when it was being removed from the DOM.
-
You must: reference each element you are extending using refs or an id add code in your oncreate and ondestroy for each element you are extending, which could become quite a lot if you have a lot of elements needing extension (anchors, form inputs, etc.)
-
This is where hooks/behaviors are a good idea. They clean up your component code a lot. Also, it helps a ton since you don't get create/destroy events for elements that are inside {{#if}} and {{#each}}. That could become very burdensome to try and add/remove functionality with elements as they are added/removed within a component.
-
I would be willing to take a stab at it if you think it would be a task within reach.
-
This can and should be done with other components, IMHO.
-
the ability to pass around element names as strings in place of components
-
I'm a lot softer on this feature now - I'm starting to believe that every single use case that you would use a hook for, you could/should use a component for.
Tags
- different way of solving/implementing something
- from different perspective/point of view
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- difficult/hard
- could be easier / more difficult than it needs to be
- library/framework could make this easier
- Svelte: problem: how to pass dynamic element name
- reusability
- not strictly necessary but helpful / nice to have
- feature not needed; better to use a different approach/feature instead
- I want this too
- you aren't going to need it
- contributing: willing to attempt/try to implement it
- too hard/difficult/much work to expect end-developers to write from scratch (need library to do it for them)
- why this feature is needed
- scalability
- framework taking care of responsibility so users can leverage it and not have to worry about that responsibility themselves
- just use/do...
- comparison
- annotation meta: linking to/relationship between annotations
Annotators
URL
-
-
-
Perhaps at that point we're better off settling on a way to pass components through as parameters? <!-- App.html --> <Outer contents={Inner}/> <!-- Outer.html --> <div> <div>Something</div> <[contents] foo='bar'/> </div>
-
But some sort of official way to do that in the language would make this nicer - and would mean I would have to worry less about destroying components when their parent is destroyed, which I'm certainly not being vigilant about in my code.
-
I would hope for it to come with React-like behavior where I could pass in a string (like div or a) and have it show up as a normal div/a element when the child component used it.
Tags
- framework taking care of responsibility so users can leverage it and not have to worry about that responsibility themselves
- Svelte: problem: how to pass dynamic element name
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- flexibility
Annotators
URL
-
-
github.com github.com
-
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!)
-
Also, I'm starting to wonder if maybe it's okay to have multiple spreads? If the alternative to <Foo {...a} {...b} {...c} d={42}> is that people will write <Foo {...Object.assign({}, a, b, c)} d={42}> anyway, then do we gain anything with the constraint?
-
I'll work on a preliminary PR (which I expect will need some love from maintainers, sorry!)
-
The lack of spread continues to be a big pain for me, adding lots of difficult-to-maintain cruft in my components. Having to maintain a list of all possible attributes that I might ever need to pass through a component is causing me a lot of friction in my most composable components.
-
No worries, I was just thinking that this issue should probably get necro'd back to open.
Tags
- React
- reasonable
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- Svelte
- reviving old/style issue
- comparison
- unfounded concern (no need to worry about it)
- arbitrary limitations leading to less-than-ideal workarounds
- copying/doing the same as how another project/library did it
- necroposting (posting to a long-inactive discussion thread)
- arbitrary limitations
- code contribution: doing some of the work but leaving some for others to pick up/finish
- optimization
- javascript: spread syntax
Annotators
URL
-
-
github.com github.com
-
No, this is about using a string to create an element of that tag name.
-
Use case: Wrapper components that need to render an element (e.g. because they attach event listeners). You'd probably use a <div> there by default but there may be places where this is not desirable for semantic reasons (e.g. in lists).
-
-
{#each section as {tag, is_self_closing, props, content}} {#if is_self_closing} <{tag} {...props} /> {:else} <{tag} {...props}>{content}</{tag}> {/if}
-
-
-
const components = { Label, Tree, Menu };
-
-
www.imdb.com www.imdb.com
-
Via Hank.
-
-
neilyoungarchives.com neilyoungarchives.com
-
Via Whatever.
-
-
stackoverflow.com stackoverflow.com
-
Note that Array.entries() returns an iterator, which is what allows it to work in the for-of loop; don't confuse this with Object.entries(), which returns an array of key-value pairs.
-
-
developer.mozilla.org developer.mozilla.org
-
The value of dotAll is a Boolean and true if the "s" flag was used; otherwise, false. The "s" flag indicates that the dot special character (".") should additionally match the following line terminator ("newline") characters in a string, which it would not match otherwise: U+000A LINE FEED (LF) ("\n") U+000D CARRIAGE RETURN (CR) ("\r") U+2028 LINE SEPARATOR U+2029 PARAGRAPH SEPARATOR This effectively means the dot will match any character on the Unicode Basic Multilingual Plane (BMP). To allow it to match astral characters, the "u" (unicode) flag should be used. Using both flags in conjunction allows the dot to match any Unicode character, without exceptions.
-
-
journals.plos.org journals.plos.org
-
Jagan, Mikael, Michelle S. deJonge, Olga Krylova, and David J. D. Earn. ‘Fast Estimation of Time-Varying Infectious Disease Transmission Rates’. PLOS Computational Biology 16, no. 9 (21 September 2020): e1008124. https://doi.org/10.1371/journal.pcbi.1008124.
-
-
-
Part of the functionality that is returned are event handlers. I'd like to avoid needing to manually copy the events over one by one so the hook implementation details are hidden.
-
-
github.com github.com
-
The feature is highly likely to be implemented, the API and implementation are the only real topics of discussion right now.
-
-
-
Three tests to prove a small piece of behavior. Although it might seem overkill for such a small feature, these tests are quick to write—that is, once you know how to write them
-
-
-
To learn about canceling fetch requests, search the internet for
-
-
github.com github.com
-
You should install the packages individually. Alternatively, you can install all of them at once with the svelte-material-ui package.
-
-
-
github.com github.com
-
I don't plan to push this to npm, cause I'm in favour with Deno's approach.
Tags
Annotators
URL
-
-
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.
-
-
-
However, we've another unresolved problem - passing parent's styles to child components.
-
-
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.
-
-
jsrocks.org jsrocks.orgJS Rocks1
-
6to5 attempted to ship a quick and dirty TDZ static checking feature but had to retract it immediately afterwards due to various bugs in the algorithm.
-
-
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.
-
-
github.com github.com
-
Please focus on explaining the motivation so that if this RFC is not accepted, the motivation could be used to develop alternative solutions. In other words, enumerate the constraints you are trying to solve without coupling them too closely to the solution you have in mind.
Tags
- contribution guidelines: should explain motivation for change
- defining the problem clearly is as valuable coming up with specific implementation/solution
- iterative process: building on previous attempts/work
- iterative process
- okay for proposal to not be accepted
- answer the "why?"
Annotators
URL
-
-
-
I wonder at what point Svelte would add this feature if, for example, a majority of their users ended up migrating to a fork that added this missing feature (like this one)?
Would they then concede and give in to popular demand in order to avoid a schism of the community?
Kind of like Rails swallowed / consolidated with Merb after they saw how great its ideas were?
-
-
svelte.dev svelte.dev
-
www.w3.org www.w3.org
-
GitHub Issues are preferred for discussion of this specification.
-
-
github.com github.com
-
There are tools in Svelte that break this expectation to a degree, but they are a bit annoying to use, which makes it an active decision on the part of the developer. The API hints at the way we want you to do things because we feel that this will give the better experience.
-
-
Most of the linked issues, as well as this RFC, attempt to solve this problem by relaxing Svelte's CSS scoping rules, providing a better API with which to use global, or by manually passing down classes. We have never found this to be an acceptable solution which is why those issues have been closed. That position has not changed.
-
:global just feels like a hack for a feature that should already be there.
Tags
- missing feature that competitors have
- Svelte: how to affect child component styles
- being explicit
- intentional/well-considered decisions
- loophole/escape hatch
- intentional
- not adding features that users really want/often request
- opinionated
- kludge
- arbitrary limitations leading to less-than-ideal workarounds
- making it intentionally hard
- official preferred convention / way to do something
- discouraging something by making it verbose/unergonomic/painful/ugly/annoying
Annotators
URL
-
-
readingandwritingyour.world readingandwritingyour.world
-
github.com github.com
-
Or if we formally took a stance that the class prop is THE ordained way to pass class attributes, though I don't think this functionality warrants this restriction.
-
-
blog.carbonfive.com blog.carbonfive.com
-
But if you’ve spent time building front ends with components, it’s hard to go back. Svelte lets us do that with a minimum of fuss or code bloat.
-
-
-
Giles, J. R., Erbach-Schoenberg, E. zu, Tatem, A. J., Gardner, L., Bjørnstad, O. N., Metcalf, C. J. E., & Wesolowski, A. (2020). The duration of travel impacts the spatial dynamics of infectious diseases. Proceedings of the National Academy of Sciences, 117(36), 22572–22579. https://doi.org/10.1073/pnas.1922663117
-
-
docs.google.com docs.google.com
-
I’ve seen some version of this conversation happen more times than I can remember. And someone will always say ‘it’s because you’re too used to thinking in the old way, you just need to start thinking in hooks’.
But after seeing a lot of really bad hooks code, I’m starting to think it’s not that simple — that there’s something deeper going on.
-
-
www.codingwithjesse.com www.codingwithjesse.com
-
With Svelte, components and files have a one-to-one relationship. Every file is a component, and files can't have more than one component. This is generally a "best practice" when using most component frameworks.
-
-
stackoverflow.com stackoverflow.com
-
It was called a "virtual DOM" library because it didn't start out as isomorphic, but actually tied to the DOM from the start. It was an afterthought to make it isomorphic.
-
-
www.texastribune.org www.texastribune.org
-
ICE deported a key witness in investigation of sexual assault and harassment at El Paso detention center
-
-
www.propublica.org www.propublica.org
-
Climate Change Will Force a New American Migration
-
-
www.marxists.org www.marxists.org
-
Materialism and the Dialectical Method
to read
-
-
www.theguardian.com www.theguardian.com
-
Circe by Madeline MillerThis magnificent story of the famous witch goddess from Homer’s Odyssey was shortlisted for the 2019 Women’s prize for fiction. It is both hugely enjoyable, showing the very male classical epic from a female point of view, and profoundly affecting in its depictions of the trials of immortality. This book is the closest you can get to experiencing what it might really be like to be a goddess, with all its benefits and sacrifices.
-
-
tailwindcss.com tailwindcss.com
-
This is easily solved by extracting components, either as template partials/JavaScript components, or using Tailwind's @apply feature to create abstractions around common utility patterns.
-
Now I know what you're thinking, "this is an atrocity, what a horrible mess!" and you're right, it's kind of ugly. In fact it's just about impossible to think this is a good idea the first time you see it — you have to actually try it.
-
-
www.youtube.com www.youtube.com
-
Liquid Margins 009 | High School Social: Collaborative Annotation in Secondary EducationLM9 full
-
-
github.com github.com
-
When you visit location /one and the server redirects you to location /two, you expect the browser’s address bar to display the redirected URL. However, Turbolinks makes requests using XMLHttpRequest, which transparently follows redirects. There’s no way for Turbolinks to tell whether a request resulted in a redirect without additional cooperation from the server. To work around this problem, send the Turbolinks-Location header in the final response to a visit that was redirected, and Turbolinks will replace the browser’s topmost history entry with the value you provide.
-
-
www.joelonsoftware.com www.joelonsoftware.com
-
It’s harder to read code than to write it
-
-
daveceddia.com daveceddia.com
-
-
React doesn’t provide something like ng-class, but there is a great library called classnames that does the same and more. Install it:
-
-
github.com github.com
-
Force everything to the git root per NPM lameness
-
For a non-monorepo package you can simply point directly to the Github repo. This case is similar, but you want to scope it just to a single package within the repo. For those that make monorepos they don't necessarily need this feature. It's for those that use projects that use monorepos. Telling them to not organize their projects into monorepos doesn't help people who make use of these projects.
-
npm's inability to handle monorepos then i'd have designed my repos accordingly
-
-
ncase.me ncase.me
-
There are other mathematical models of institutionalized bias out there! Male-Female Differences: A Computer Simulation shows how a small gender bias compounds as you move up the corporate ladder. The Petrie Multiplier shows why an attack on sexism in tech is not an attack on men.
-
Schelling's model gets the general gist of it, but of course, real life is more nuanced. You might enjoy looking at real-world data, such as W.A.V. Clark's 1991 paper, A Test of the Schelling Segregation Model.
-
-
-
Can you try to delete node_modules folder and package-lock.json file.
-
clean node_modules
-
Between each step I did rm -rf node_modules package-lock.json && npm i. Just to be sure
-
-
-
Any typescript definitions exported from this library should be tested, otherwise it can cause real pain and doubt for ts users.
-
-
twitter.com twitter.com
-
Sir Anthony Seldon on Twitter. (n.d.). Twitter. Retrieved September 2, 2020, from https://twitter.com/AnthonySeldon/status/1300355492783554561
-
-
www.vox.com www.vox.com
-
Figures like Kenneth Hagin, his protégé Kenneth Copeland, Oral Roberts, and, of course, Osteen himself built up individual followings: followings that often grew as a result of cross-promotion (something religious historian Kate Bowler points out in her excellent Blessed, a history of the prosperity gospel movement). One preacher might, for example, feature another at his conference, or hawk his cassette tapes.
Some of this is the leveraging of individual platforms for cross-promotion here, which helped in a pre-social media space and which now happens regularly online, particularly in the "funnel" sales space.
-
-
www.ft.com www.ft.com
-
James Suzman’s ‘Work: A History of How We Spend Our Time’ is published next month by Bloomsbury.
-
- Aug 2020
-
github.com github.com
-
Triggers error messages to render after a field is touched, and blurred (focused out of), this is useful for text fields which might start out erronous but end up valid in the end (i.e. email, or zipcode). In these cases you don't want to rush to show the user a validation error message when they haven't had a chance to finish their entry.
-
Triggers error messages to show up as soon as a value of a field changes. Useful for when the user needs instant feedback from the form validation (i.e. password creation rules, non-text based inputs like select, or switches etc.)
-
-
pragmaticpineapple.com pragmaticpineapple.com
-
Now, you feel a sudden urge to use it. You ping your team lead or send a message to your whole team about this cool new way of doing things, and you suggest that you start using it.
-
Hackathons are a great way of testing new technology with your team, and a place where you can go crazy with solutions.
-
The hype is something common in our industry. Remember NoSQL? Or when everyone went crazy over microservices? Or the AI / Machine learning burst? The list goes on and on. People get excited about new and breakthrough technologies and ideas.
-
The idea of having to learn something new is good, and I agree with that, but how often should you do that? Looking at the world of JavaScript, a new idea, blog post, library, framework, and whatnot pops up very often. Things become trending, and people quickly try to adopt that. I’m not saying you should not adopt new things and consider different approaches to a solution, not at all! I am trying to propose the idea of doing that less often.
-
Knowing all this, what would you do? Which path would you choose and why? The answer might seem obvious now that you come from the future - React
Tags
- jumping on the bandwagon
- hype
- "hacker" meaning someone who loves to program and enjoys playful cleverness
- how to choose a dependency/library/framework
- excitement/urge to share what you've learned
- people's need to have/use the latest; newest; shiniest things
- funny
- "hacking"/"hacker" referring to programming rather than cracking
Annotators
URL
-
-
www.thelancet.com www.thelancet.com
-
Balsari, S., Sange, M., & Udwadia, Z. (2020). COVID-19 care in India: The course to self-reliance. The Lancet Global Health, 0(0). https://doi.org/10.1016/S2214-109X(20)30384-3
-
-
elizabethyin.com elizabethyin.com
-
Furthermore, incumbents who generally do a good job, often manage to continue reigning. According to Brad Gerstner, CEO of Altimeter Capital, who recently did a podcast on Invest Like The Best, large tech companies have managed to take even more market share than 10 years ago. Some people may argue this is because the large tech companies have improved their products over time to stay ahead due to their increased collection of data and better algorithms that feed on that data over time. That may be true for some companies but not all. This also applies to other products that have not made significant strides in their technology — Craigslist, Salesforce CRM, Turbotax, Quickbooks to name a few. Even Google Search which arguably had a better product in the 1990s compared to its peers is about on par with alternative search engines today, but 90% of people worldwide still use Google. Old habits die hard, and distribution matters more than ever if you are just starting a business. It’s hard to topple incumbents who have strong distribution and already large audiences — even if you can build a much better product.
Large incumbent tech companies have managed to retain their lead, partly due to network effects, but it also applies to companies that haven't made significant strides (e.g. Salesforce), probably because old habits die hard and success goes to the successful.
-
-
psyarxiv.com psyarxiv.com
-
Liu, Zihan, Drake Van Egdom, Rhona Flin, Christiane Spitzmueller, Omolola Adepoju, and Ramanan Krishnamoorti. ‘I Don’t Want to Go Back: Examining the Return to Physical Workspaces During COVID-19’. Preprint. PsyArXiv, 21 August 2020. https://doi.org/10.31234/osf.io/un2bp.
Tags
- flexible approaches
- is:preprint
- policy makers
- multi-generational households
- COVID-19
- decision making
- US
- employee perspectives
- United States
- blanket policies
- organizational strategies
- lang:en
- return to work
- willingness to return
- physical workspaces
- childcare
- non-caucasians
- concerns
- females
Annotators
URL
-
-
psyarxiv.com psyarxiv.com
-
Hong, Jihoon, Ikjae Jung, Mingeol Park, Kyumin Kim, Sungook Yeo, Joohee Lee, Yujin Hong, Jangho Park, and Seockhoon Chung. ‘The Attitudes of Medical Students for Their Roles and Social Accountability in the COVID-19 Pandemic Era’. Preprint. PsyArXiv, 19 August 2020. https://doi.org/10.31234/osf.io/478ef.
-
-
press.rebus.community press.rebus.community
-
We share our labor of love
Here's something to share from the margins--George Carlin. Like Carlin, we in the margins need is to crash into the open and yoke academic power (good ideas, clearly expressed, and openly political) to systemic change. Open education seems too tame to do that. Prove me wrong.
-
-
meta.stackexchange.com meta.stackexchange.com
-
FWIW, I would have raised it earlier if I thought it would have made a difference.
This is different from apathy; it's more like powerlessness.
-
If we've gone more than a year without this being a problem in the slightest, I don't see how the next year would be any different.
-
Can't upvote this enough. It is highly irritating to see language destroyed (and we wonder why kids bastardize the language..).
Tags
- combating widespread incorrectness/misconception by consistently doing it correctly
- empowering individual users
- soliciting contributions
- correctness
- powerless to change something but would if they could
- perpetuation
- empowering people
- encouraging/soliciting participation
- even if majority makes a mistake; it doesn't make it correct
- hoping/trying to convince others that your view/opinion/way is right by consistently sticking to it despite many being ignorant/mistaken/unaware/holding different opinion
- fallacy: because we've allowed a mistake to exist this long; we should continue to allow it
- people would say something if they thought it would make a difference
- soliciting feedback
- example of: using incorrect terms
Annotators
URL
-
-
english.stackexchange.com english.stackexchange.com
-
As a web designer, I hate that "log in" creates a visual space between the words. If you line up "Log In Register" - is that three links or two? This creates a Gestalt problem, meaning you have to really fiddle with spacing to get the word groupings right, without using pipe characters.
Sure, you can try to solve that problem by using a one-word alternative for any multi-word phrase, but that's not always possible: there isn't always a single word that can be used for every possible phrase you may have.
Adjusting the letter-spacing and margin between items in your list isn't that hard and would be better in the long run since it gives you a scalable, general solution.
"Log in" is the only correct way to spell the verb, and the only way to be consistent with 1000s of other phrasal verbs that are spelled with a space in them.
We don't need nor want an exception to the general rule just for "login" just because so many people have made that mistake.
-
I don't doubt that we will soon treat the process of logging in as a figurative point of entry, meaning that log into will make full conceptual sense (cf you don't physically delve into a problem or pile into an argument, yet both are correct grammatically because they are semantically [i.e. figuratively])
Tags
- language: figurative use of word
- solving/handling the general case
- word that has a generic/figurative meaning in addition to a specific/literal meaning
- should not infer as a general rule
- relying on luck/coincidence
- weak argument
- trying to make a general rule out of something that only works for certain specific cases
Annotators
URL
-
-
docs.gitlab.com docs.gitlab.com
-
New information that would be useful toward the future usage or troubleshooting of GitLab should not be written directly in a forum or other messaging system, but added to a docs MR and then referenced, as described above.
-
When you encounter new information not available in GitLab’s documentation (for example, when working on a support case or testing a feature), your first step should be to create a merge request (MR) to add this information to the docs. You can then share the MR in order to communicate this information.
-
-
github.com github.com
-
I really can't see how we can trust browsers accept headers. :'( More about the situation than about your statement.
-
-
github.com github.com
-
I will have to look at code to be sure but the rule that */* trumps all is applied only when the request is not an ajax request. So if you are making ajax request then you should be good.
-
I could add .json on the end, but that would mean hacking away at angularjs, which is doing the right thing. I would rather find a good solution and hack away at rails, which is doing the wrong thing :)
-
In that case I would suggest to use .xml or .json format to eliminate accept header parsing issue.
Avoid using a perfectly good feature (accept header negotiation) just because browsers screwed things up?
-
Safari sends following order application/xml (q is 1) application/xhtml+xml (q is 1) image/png (q is 1) text/html (q is 0.9) text/plain (q is 0.8) \*/\* (q is 0.5) So you visit www.myappp.com in safari and if the app supports .xml then Rails should render .xml file. This is not what user wants to see. User wants to see .html page not .xml page.
-
-
www.nber.org www.nber.org
-
Fujita, Shigeru, Giuseppe Moscarini, and Fabien Postel-Vinay. ‘Measuring Employer-to-Employer Reallocation’. Working Paper. Working Paper Series. National Bureau of Economic Research, July 2020. https://doi.org/10.3386/w27525.
-
-
en.wikipedia.org en.wikipedia.org
-
Historically, it was defined as one minute (1/60 of a degree) of latitude along any line of longitude. Today the international nautical mile is defined as exactly 1852 metres (about 1.15 miles).
-
-
www.nber.org www.nber.org
-
Correa, R., Du, W., & Liao, G. Y. (2020). U.S. Banks and Global Liquidity (Working Paper No. 27491; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27491
-
-
www.matthewbarby.com www.matthewbarby.com
-
having a completely distributed team can make it very difficult for team members to get to know each other on a personal level
There is lots that gets missed from the chance encounters of in-person interactions.
I've found this to be a challenge when onboarding at a new company.
Many of the ways we happen to meet people in a normal office environment can go away, the chance encounters need to become intentional ones.
It can feel awkward reaching out to someone over slack to ask for something if you have never had any kind of casual conversation or interaction with them before.
-
-
hyperlink.academy hyperlink.academy
-
Course as community onboarding
I like this idea - as when joining a community figuring out the 'rules of engagement' can be hard, and also
- who to go for what
- what do I need to know to start
- how does this community work
For team on-boarding, project on-boarding, etc - it can also guide people towards other courses / resources that may be more ongoing or of other types
-
-
-
As a result, I end up quoting multiple people, sometimes quoting several people back-to-back, before even writing my reply. In those instances it feels like I'm not properly citing those individuals. I feel like it might seem I'm not providing new readers appropriate context for a given quote. It might also be implied that separate quotes are from the same person, leading to mis-attribution.
-
-
gitlab.com gitlab.com
-
As a later iteration, it might be cool to see a link between the quoted content and my comment
-
-
unix.meta.stackexchange.com unix.meta.stackexchange.com
-
I went against the grain, applying other tools that people have written over the years to directly perform the job at hand which do not involve entering a program for awk or a shell to run, with answers like https://unix.stackexchange.com/a/574309/5132 and https://unix.stackexchange.com/a/578242/5132 . Others have done similar. https://unix.stackexchange.com/a/584274/5132 and https://unix.stackexchange.com/a/569600/5132 are (for examples) answers that show alternative tools to answers employing shell script and (yet again) awk programs, namely John A. Kunze's jot and rs (reshape), which have been around since 4.2BSD for goodness' sake!
-
"When an OP rejects your edit, please do not edit it back in!" Correspondingly, when a user repeatedly does try to edit, understand that something in your framing isn't working right, and you should reconsider it.
-
-
en.wikipedia.org en.wikipedia.org
-
It reused many ideas and classes from Doug Lea's Collections package, which was deprecated as a result.
-
-
blog.pragmaticengineer.com blog.pragmaticengineer.com
-
GTD strategies
Author refers to the [Getting Things Done book](https://www.goodreads.com/book/show/1633.Getting_Things_Done) by David Allen.
Also recommend complementing above with J. Knapp's excellent Make Time book
-
- Jul 2020
-
-
In our series, learning linked data, we've covered several topics related to querying linked data using several SPARQL features and techniques, producing linked data using RDFa and working with JSON-LD.
I don't see a link to the other articles in this series...
-
-
stackoverflow.com stackoverflow.com
-
Note that the point of JSON-LD is that it's just JSON, in this case using the schema.org context to interpret the values.
-
-
www.w3.org www.w3.org
-
Even as machine-readable data begins to permeate the web, it is typically distributed in a separate file, with a separate format, and very limited correspondence between the human and machine versions.
-
-
github.com github.com
-
But I'll definitely take underscore mixins over extending String.prototype or other clunky implementations any day.
-
-
lwn.net lwn.net
-
"that text has been removed from the official version on the Apache site." This itself is also not good. If you post "official" records but then quietly edit them over time, I have no choice but to assume bad faith in all the records I'm shown by you. Why should I believe anything Apache board members claim was "minuted" but which in fact it turns out they might have just edited into their records days, weeks or years later? One of the things I particularly watch for in modern news media (where no physical artefact captures whatever "mistakes" are published as once happened with newspapers) is whether when they inevitably correct a mistake they _acknowledge_ that or they instead just silently change things.
-
-
www.theregister.com www.theregister.com
-
"AOO is not, and isn't designed to be, the 'super coolest open source office suite with all the latest bells and whistles,'" Jagielski continued. "Our research shows that a 'basic,' functional office suite, which is streamlined with a 'simple' and uncluttered, uncomplicated UI, serves an incredible under-represented community.
-
-
-
The second situation occurs when a person says unpleasant things about another when he or she ought to have known they are false. A reasonable person generally refrains from sharing negative information about others if he or she has reason to doubt its veracity.
-
-
injury.findlaw.com injury.findlaw.com
-
Lastly, in order for a statement to be defamatory, it must be unprivileged. You cannot sue for defamation in certain instances when a statement is considered privileged. For example, when a witness testifies at trial and makes a statement that is both false and injurious, the witness will be immune to a lawsuit for defamation because the act of testifying at trial is privileged.
-
-
ecampusontario.pressbooks.pub ecampusontario.pressbooks.pub
-
Classes (synchronous sessions)
Read this during the day tomorrow
-
-
www.graphitedocs.com www.graphitedocs.comGraphite1
-
amp.dev amp.dev
-
The content should always be the same. For news articles, specify the “NewsArticle” type. The headline should match your article’s title. The image object refers to the hero image of the article.
-
If you can, use AMP like any other JavaScript library to build your site and forget about the canonical linking. Using AMP to build a whole website dramatically reduces your maintenance burden.
-
-
marketplace.digitalocean.com marketplace.digitalocean.com
-
real-time and paragraph-locking co-editing modes
-
-
www.iubenda.com www.iubenda.com
-
Under the GDPR, users have the right to object to certain processing activities in relation to their personal data carried out by the Controller. In a nutshell, the user can object to the processing of their data whenever the processing is based on the controller’s legitimate interest, or the performance of a task in the public interest/exercise of official authority, or for purposes of scientific/historical research and statistics. The user has to state a motivation for their objection, unless the processing is carried out for direct marketing purposes, in which case no motivation is needed to exercise this right.
-
-
github.com github.com
-
edpb.europa.eu edpb.europa.eu
-
Other examples of detriment are deception, intimidation, coercion or significant negativeconsequences if a data subject does not consent. The controller should be able to prove that the datasubject had a free or genuine choice about whether to consent and that it was possible to withdrawconsent without detriment.
-
Article 7(3) of the GDPR prescribes that the controller must ensure that consent can be withdrawn bythe data subject as easy as giving consent and at any given time. The GDPR does not say that givingand withdrawing consent must always be done through the same action.
-
consent is obtained through use of a service-specific user interface (for example, via a website, an app,a log-on account, the interface of an IoT device or by e-mail), there is no doubt a data subject must beable to withdraw consent via the same electronic interface, as switching to another interface for thesole reason of withdrawing consentwould require undue effort.
-
The controller informs customers that they havethe possibility to withdraw consent. To do this, they could contact a call centre on business daysbetween 8am and 5pm, free of charge. The controller in this example doesnotcomply with article 7(3)of the GDPR. Withdrawing consent in this case requires a telephone call during business hours, this ismore burdensome than the one mouse-click needed for giving consent through the online ticketvendor, which is open 24/7.
-
Controllers have an obligation to delete data that was processed on the basis of consent once thatconsent is withdrawn,assuming that there is no other purpose justifying the continued retention.56Besides this situation, covered in Article 17 (1)(b), an individual data subject may request erasure ofother data concerning him that is processed on another lawful basis, e.g.on the basis of Article6(1)(b).57Controllers are obliged to assess whether continued processing of the data in question isappropriate, even in the absence of an erasure request by the data subject.
-
For example, as the GDPR requires that a controller must be able to demonstrate that valid consentwas obtained, all presumed consents of which no references are kept willautomatically be below theconsent standard of the GDPR and will need to be renewed. Likewise as the GDPR requires a“statement or a clear affirmative action”, all presumed consents that were based on a more impliedform of action by the data subject (e.g.a pre-ticked opt-in box) will also not be apt to the GDPRstandard of consent.
-
Also,mechanisms for data subjects to withdraw their consent easily must be available and informationabout how to withdraw consent must be provided.
-
If a controller receives a withdrawal request, itmust in principle delete the personal data straight away if it wishes to continue to use the data for thepurposes of the research.
Tags
- consent
- detriment/disadvantage
- GDPR
- consent: obtaining renewed consent
- consent: must be as easy to withdraw/reject as it is to give/accept
- right to be forgotten
- implied consent
- consent: updating consent due to adding something new that needs consent
- proportionality
- consent: right to withdraw
- easy to use
Annotators
URL
-
-
www.iubenda.com www.iubenda.com
-
have EU based users (i.e any website running cookies that isn’t actively blocking EU based users);
-
-
www.iubenda.com www.iubenda.com
-
The cookie banner will be displayed any time a user visits your site for the first time or when you have decided to add a new vendor to your list of vendors (since it’s a new disclosure and potentially a consent request for that vendor may be required).
-