- Feb 2021
-
github.com github.com
-
ActiveInteraction also supports merging errors. This is useful if you want to delegate validation to some other object. For example, if you have an interaction that updates a record, you might want that record to validate itself. By using the #merge! helper on errors, you can do exactly that.
-
-
en.wikipedia.org en.wikipedia.org
-
Uses
-
-
-
I do think it's a common pattern that should be solved, and I am probably going to try and solve it as a Gem as opposed to simply writing code that we use in our code base
-
Like all best practices, I think the way you will resolve a problem will depend of the application you are doing.
-
I apologize for the slow development of Reform after the "explosion" when I released it initially. The reason for this is I changed jobs and didn't use Reform (yet).
Tags
- hard to find time/be motivated to build/maintain unless you use it yourself (motivation; maintenance)
- using your project at work
- common pattern
- best practices
- depends on use case / application
- sharing/publishing your code so others can use it/benefit too
- motivation
- general solution
Annotators
URL
-
-
github.com github.com
-
An additional usecase is where we would like to update multiple records
-
This can be useful in cases like multistep registration. Previously in # rails we used to stick all of the validations in the class and then we're # stuck validating them all everytime
-
-
-
Vigfusson, Y., Karlsson, T. A., Onken, D., Song, C., Einarsson, A. F., Kishore, N., Mitchell, R. M., Brooks-Pollock, E., Sigmundsdottir, G., & Danon, L. (2021). Cell-phone traces reveal infection-associated behavioral change. Proceedings of the National Academy of Sciences, 118(6). https://doi.org/10.1073/pnas.2005241118
-
-
maggieappleton.com maggieappleton.com
-
In this idealised utopia we obviously want to place value on sharing and curation as well as original creation, which means giving a small fraction of the payment to the re-publisher as well.We should note monetisation of all this content is optional. Some websites would allow their content to be transcluded for free, while others might charge hefty fees for a few sentences. If all goes well, we'd expect the majority of content on the web to be either free or priced at reasonable micro-amounts.
While this is nice in theory, there's a long road strewn with attempts at micropayments on the web. I see new ones every six months or so. (Here's a recent one: https://www.youtube.com/playlist?list=PLqrvNoDE35lFDUv2enkaEKuo6ATBj9GmL)
This also dramatically misses the idea of how copyright and intellectual property work in many countries with regard to fair use doctrine. For short quotes and excerpts almost anyone anywhere can do this for free already. It's definitely nice and proper to credit the original, but as a society we already have norms for how to do this.
-
-
www.honeybadger.io www.honeybadger.io
-
Honeybadger isn't a single page app, and it probably won't ever be. SPAs just don't make sense for our technical requirements.
-
-
stackoverflow.com stackoverflow.com
-
There is one situation where iframes are (almost) required: when the contents of the iframe is in a different domain, and you have to perform authentication or check cookies that are bound to that domain. It actually prevents security problems instead of creating them. For example, if you're writing a kind of plugin that can be used on any website, but the plugin has to authenticate on another domain, you could create a seamless iframe that runs and authenticates on the external domain.
-
-
stackoverflow.com stackoverflow.com
-
remember that for each loaded iFrame, a DOM is created, HTML requests are made and document wrappers are instantiated, eating memory and bandwidth in the process
-
-
stackoverflow.com stackoverflow.com
-
Usually, if you can do it without an iframe, that is a better option. I'm sure others here may have more information or more specific examples, it all comes down to the problem you are trying to solve.
-
think about them as a text/markup equivalent to the way a video or another media file would be embedded
-
but I wouldn't use a frameset for anything but a manual since it no longer exists in html5. Example: Game maker manual
-
- Jan 2021
-
www.zdnet.com www.zdnet.com
-
Systemd problems might not have mattered that much, except that GNOME has a similar attitude; they only care for a small subset of the Linux desktop users, and they have historically abandoned some ways of interacting the Desktop in the interest of supporting touchscreen devices and to try to attract less technically sophisticated users. If you don't fall in the demographic of what GNOME supports, you're sadly out of luck.
-
-
linuxmint-user-guide.readthedocs.io linuxmint-user-guide.readthedocs.io
-
Although it is open-source, Snap on the other hand, only works with the Ubuntu Store. Nobody knows how to make a Snap Store and nobody can. The Snap client is designed to work with only one source, following a protocol which isn’t open, and using only one authentication system. Snapd is nothing on its own, it can only work with the Ubuntu Store.
Tags
- importance of open-source
- proprietary protocol
- Snap
- monopoly
- use of proprietary hosted services
- proprietary hosted services as a competitive advantage
- proprietary software/service seeking broad support/integration/acceptance in/by other software/platforms/vendors
- proprietary software
Annotators
URL
-
-
-
css-tricks.com css-tricks.com
-
Use-case party I asked some CSS developers when they last used calc() so we could have a nice taste here for for how others use it in their day-to-day work.
-
-
wondertools.substack.com wondertools.substack.com
-
toppings on a spreadsheet sundae.🍨🍦
One of my fav toppings is to use Google Forms. Sheets is integrated completely there. In fact this is practically my only use case for google sheets so I am grateful for discussion of add-ons and other uses.
-
I use sheets for organizing lists of people, topics and grades, as well as managing budgets, ideas and plans.
Use case #1. How might I use it? How might others use it?
-
-
forums.theregister.com forums.theregister.com
-
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)
-
-
-
Maybe $$slots like $$props? My use case is that I'd like to wrap a slot's content in an element that applies styling that I'd like absent without the slotted content. Something like this: {#if $$slots.description} <div class="description"> <slot name="description"></slot> </div> {/if}
-
-
-
If components gain the slot attribute, then it would be possible to implement the proposed behavior of <svelte:fragment /> by creating a component that has a default slot with out any wrappers. However, I think it's still a good idea to add <svelte:fragment /> so everyone who encounters this common use case doesn't have to come up with their own slightly different solutions.
-
-
github.com github.com
-
I want to make some add-ons or wrappers on components e.g BigButton.svelte <script> import Button from './Button.svelte' </script> <Button fz="16" h="64" {...$$props}> <slot slot="prepend" name="prepend" /> <slot /> <slot slot="append" name="append" /> </Button>
-
-
-
I am trying to implements this usecase (a generic lazy loader component which forwards slots/events to the "real" component).
-
-
github.com github.com
-
It's more powerful to have them happen in definition order, because this lets you intercept thing in event handlers or in actions.
-
-
-
I wanted to use GitHub Gists which are a wonderfully low friction way of sharing code
-
-
developer.mozilla.org developer.mozilla.org
-
Moreover, you can add as many use:action directives as you want to an element.
-
With a few lines of code we can add functionality to regular HTML elements, in a very reusable and declarative way.
-
the use directive takes care of the component lifecycle for us.
-
-
stackoverflow.com stackoverflow.com
-
If it's behaviour that you can imagine needing to reuse among multiple components, or if it's something that you can imagine applying to an element inside an {#if ...} block (for example), then it probably belongs in an action. It it's something that 'belongs' to the component itself, rather than a specific element, then it's probably more of a lifecycle thing.
-
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?
-
-
github.com github.com
-
-
Popper for Svelte with actions, no wrapper components or component bindings required! Other Popper libraries for Svelte (including the official @popperjs/svelte library) use a wrapper component that takes the required DOM elements as props. Not only does this require multiple bind:this, you also have to pollute your script tag with multiple DOM references. We can do better with Svelte actions!
-
-
github.com github.com
-
A cleaner approach could be the use:action API.
-
-
web.hypothes.is web.hypothes.is
-
I don’t know how to use it on mobile browser.
-
-
discourse.ubuntu.com discourse.ubuntu.com
-
Disk space is an issue. Resource usage is an issue. Those new packages nowadays need huge amount of storage to finally do the exact same thing as their older and lighter deb counterpart. Whatever the price of storage, it’s the opposite of a progress, it’s not optimal at all.
-
-
css-tricks.com css-tricks.com
-
This is probably rare enough that you would probably make a class (e.g. .link-looking-button) that incorporates the reset styles from above and otherwise matches what you do for anchor links.
-
But of course, there are UX implications. For example, it can be harder to select the text, and the entire element needs fairly complex styling to create clear focus and hover states. There are also accessibility implications, like the fact that the content of the entire card is read before it is announced as a link.
-
The second example also opens up the possibility of including multiple links. You can’t nest links, so things get a little tricky if you need to. It’s possible though, by making the individual links set above the card-covering link with z-index.
-
-
css-tricks.com css-tricks.com
-
One lesser-appreciated user-behaviour is when a user would like to choose an alternative download location. On a download link, your user can right-click -> “save link as…” and place the download directly into a folder of their choice. Handy if you want something to go directly to removable media, for example. On a download button, there’s no such option.
-
This raises a very important point: we can’t know every user’s reason for why they’re visiting our website, but we can use the tools made available to us to help guide them along their way. If that means storing an HTML document for use offline, we’re empowered to help make the experience as easy as possible.
-
- Dec 2020
-
twitter.com twitter.com
-
Emily. J. Miller. - FDA {@FDASpox} (2020) Convalescent plasma has shown to be beneficial for 35% of patients. This risk reduction figure - shown in chart below - is from @MayoClinic data from expanded access program that was analyzed by FDAA for the emergency use authorization announced today. Twitter. Retrieved from: https://twitter.com/FDASpox/status/1297706985039835136
-
-
github.com github.com
-
Jbuilder gives you a simple DSL for declaring JSON structures that beats manipulating giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops.
-
-
hackernoon.com hackernoon.com
-
Saving form data across sessions — what do people hate more than filling out a form? Filling out a form twice!
-
Experiment with different states while developing — When working on an app, it’s often useful or necessary for the app to have a certain state to be able to work on particular styling and functionality, (e.g. styling a list of items and removing items requires items). Rather than recreating an app’s state on every refresh, Local Storage can persist that state, making development much more efficient and enjoyable.
-
A simple, fake backend for your frontend React projects — It’s often nice to add the appearance of a backend/database to your frontend portfolio projects. The extra functionality will take your app to the next level, improve the user experience and impress potential employers.
-
-
www.joyofsvelte.com www.joyofsvelte.com
Tags
Annotators
URL
-
-
www.codingwithjesse.com www.codingwithjesse.com
-
People really don't stress enough the importance of enjoying what you're programming. It aids creativity, makes you a better teammate, and makes it significantly easier to enter a state of flow. It should be considered an important factor in choosing a web development framework (or lack thereof). Kudos!
-
-
www.npmjs.com www.npmjs.com
-
# fix a bug in one of your dependencies vim node_modules/some-package/brokenFile.js # run patch-package to create a .patch file npx patch-package some-package
I love how directly this allows you to make the change -- directly on the source file itself -- and then patch-package does the actual work of generating a patch from it. Brilliant.
Tags
Annotators
URL
-
-
github.com github.com
-
Making UIs with Svelte is a pleasure. Svelte’s aesthetics feel like a warm cozy blanket on the stormy web. This impacts everything — features, documentation, syntax, semantics, performance, framework internals, npm install size, the welcoming and helpful community attitude, and its collegial open development and RFCs — it all oozes good taste. Its API is tight, powerful, and good looking — I’d point to actions and stores to support this praise, but really, the whole is what feels so good. The aesthetics of underlying technologies have a way of leaking into the end user experience.
-
-
hacks.mozilla.org hacks.mozilla.org
-
Better contribution workflow: We will be using GitHub’s contribution tools and features, essentially moving MDN from a Wiki model to a pull request (PR) model. This is so much better for contribution, allowing for intelligent linting, mass edits, and inclusion of MDN docs in whatever workflows you want to add it to (you can edit MDN source files directly in your favorite code editor).
-
-
-
node-sass may be faster than dart-sass, but as of writing this dart-sass is the only library which implements the @use rule, which is strongly recommended over @import. According to the official sass-lang website:
-
-
github.com github.com
-
I don't think this is what really matters at the end, since whatever is the implementation the goal should be to provide a library that people actually like to use.
-
-
developers.cloudflare.com developers.cloudflare.com
-
Workers KV is generally good for use-cases where you need to write relatively infrequently, but read quickly and frequently. It is optimized for these high-read applications
-
- Nov 2020
-
uxmovement.com uxmovement.com
-
You have 2 free member-only stories left this month.
-
-
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...
-
@monkeythedev can your work be used already? I would suggest not yet, i'm still doing core changes every day
Tags
- expect it to break / be broken frequently
- react hooks
- no good alternative
- alternative to:
- Svelte: action (use:)
- pre-release
- is it too early to use software/product? (pre-release / stability)
- comparison
- stability (works well enough / has few enough bugs)
- Svelte: problem: use actions on component
Annotators
URL
-
-
github.com github.com
-
But seriously, give snowpack a read to understand the benefits of leaning on standard esm imports, allowing you to avoid a bundling process entirely.
-
I don't need to support non-esm browsers for most projects and I really like the idea of a super light build process. By removing the complexity of configuration and the overhead of bundling, svelvet makes the development process an optimal experience for myself and hopefully others
-
-
www.snowpack.dev www.snowpack.devSnowpack2
-
It replaces heavier, more complex bundlers like webpack or Parcel in your development workflow.
-
-
-
github.com github.com
-
Allowing parent layer metadata to be saved for a layer, regardless if the parent layer is in the save command, would be a huge win for those of us working on CI/remote systems. Reusing parent layers used to be ridiculously easy. It would be good if we could get some comparably easy way to do it now.
-
-
en.wikipedia.org en.wikipedia.org
-
Broadly speaking, modularity is the degree to which a system's components may be separated and recombined, often with the benefit of flexibility and variety in use.
-
-
github.com github.com
-
How about renaming this to something more meaningful:
-
-
github.com github.com
-
I have a component, and want to let the user specify what HTML tags wrap certain text rendered by the component. So the component user can say use <b></b> or <h1></h1> etc.
Tags
Annotators
URL
-
-
github.com github.com
-
You can add actions to the components with use={[Action1, [Action2, action2Props], Action3]}.
-
-
sass-lang.com sass-lang.com
-
The rule is written @forward "<url>". It loads the module at the given URL just like @use, but it makes the public members of the loaded module available to users of your module as though they were defined directly in your module. Those members aren’t available in your module, though—if you want that, you’ll need to write a @use rule as well.
Just like how you have to also import (@use) a JS module if you want to use it locally, even if you export (@forward) it.
-
-
css-tricks.com css-tricks.com
-
The file is only imported once, no matter how many times you @use it in a project.
Is this @use sort of like import is in JavaScript (vs require?? does that import file again?)? Or maybe it's more like
require
vs.load
in Ruby? -
The new @use is similar to @import. but has some notable differences:
-
In brief, @import is being replaced with more explicit @use and @forward rules. Over the next few years Sass @import will be deprecated, and then removed.
-
-
github.com github.com
-
use: [] - An array of actions and/or action/property arrays.
-
-
-
Since 'using decorators' has come to mean 'smothering your code in @ symbols' it's probably no longer a great name.
-
-
github.com github.com
-
The success of JSX has proved that the second curly is unnecessary. Moreover, a lot of people — particularly those who have been exposed to React — have a visceral negative reaction to double curlies, many of them assuming that it brings with it all the limitations of crusty old languages like Mustache and Handlebars, where you can't use arbitrary JavaScript in expressions.
-
-
-
Please raise an issue if your use case is not theoretical.
Tags
Annotators
URL
-
- Oct 2020
-
hub.docker.com hub.docker.com
-
www.basefactor.com www.basefactor.com
-
Ok, I have seen that there are lot of built-in and third party validations, but sooner or later I will face a validation rule not covered by this buffet. Can I build a custom one? Of course you can!
-
-
xtzmf.csb.app xtzmf.csb.app
-
stackoverflow.com stackoverflow.com
-
Library author here. I'm always fascinated by new ways people can invalidate my assumptions. I mean that in a sincerely positive way, as it results in learning.
-
As I said above, the intervening time matters in my use case. The value can become invalid after a while, so I want to make sure that it gets checked just before it's submitted.
-
This is for a time picker. If you're picking times for today, you may pick a time that is 15 minutes from now. It's valid now because it's currently in the future. If you don't touch the form for the next 20 minutes then click submit, the submission should be prevented because your selected time is now 5 minutes in the past.
Tags
- surprising
- sincere
- author of software answering questions in community (support)
- assumptions
- testing/challenging one's assumptions (either validating or invalidating them)
- not considering all use cases
- not:
- can't support everything / all cases
- use cases
- react-final-form: submission errors
- invalidating one's assumptions
- learning from others
- they've thought of everything
- different way of thinking about something
Annotators
URL
-
-
-
Well. I also recall that people complained about this when I did it in redux-form, which resulted in a persistentSubmitErrors config parameter.
-
In other words, I do not want an error to appear/disappear as a user types the text that swaps it from invalid to valid.
-
-
medium.com medium.com
-
These are fine and do not cause any issues.
-
-
en.wikipedia.org en.wikipedia.org
-
Intercepting proxies are commonly used in businesses to enforce acceptable use policy, and to ease administrative overheads since no client browser configuration is required.
-
-
disqus.com disqus.com
-
That is certainly a good use-case. One thing you can do is to require something other than a user-chosen string as a username, something like an email address, which should be unique. Another thing you could do, and I admit this is not user-friendly at all, to let them sign up with that user name, but send the user an email letting them know that the username is already used. It still indicates a valid username, but adds a lot of overhead to the process of enumeration.
-
-
www.tiktok.com www.tiktok.com
-
you are granting us the right to use your User Content without the obligation to pay royalties to any third party
-
You or the owner of your User Content still own the copyright in User Content sent to us, but by submitting User Content via the Services, you hereby grant us an unconditional irrevocable, non-exclusive, royalty-free, fully transferable, perpetual worldwide licence to use, modify, adapt, reproduce, make derivative works of, publish and/or transmit, and/or distribute and to authorise other users of the Services and other third-parties to view, access, use, download, modify, adapt, reproduce, make derivative works of, publish and/or transmit your User Content in any format and on any platform, either now known or hereinafter invented.
-
-
final-form.org final-form.org
-
Wondering how to get field state from multiple fields at once? People coming from Redux-Form might be wondering where the equivalent of Redux Form's Fields component is, as a way to get state from several fields at once. The answer is that it's not included in the library because it's so easy to write one recursively composing Field components together.
-
Listening for External Changes By wrapping a stateful ExternalModificationDetector component in a Field component, we can listen for changes to a field's value, and by knowing whether or not the field is active, deduce when a field's value changes due to external influences.
Tags
- example
- so simple that they don't deserve ...
- use cases
- good point
- too easy/simple/trivial for end-developers to write from scratch to expect (don't need library to do it for them; don't need to provide feature)
- impressive
- feature not needed; better to use a different approach/feature instead
- they've thought of everything
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.
-
-
ponyfoo.com ponyfoo.comPony Foo1
-
Polyfills are great for methods like String.prototype.trim because they allow you to use the methods on String instances.
Tags
Annotators
URL
-
-
svelte.dev svelte.dev
-
Not all application state belongs inside your application's component hierarchy. Sometimes, you'll have values that need to be accessed by multiple unrelated components, or by a regular JavaScript module.
-
-
stackoverflow.com stackoverflow.com
-
I used a self made (for the experience) rule based sytem with the Svelte use:action element directive. FI: <input .. use:valid={prop, 'mandatory'}....>
-
-
github.com github.com
-
However, in function components there really isn't much need for this pattern since you can just use JS default arguments
-
-
github.com github.com
-
By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.
-
-
2ality.com 2ality.com
-
trusktr herman willems • 2 years ago Haha. Maybe React should focus on a template-string syntax and follow standards (and provide options for pre-compiling in Webpack, etc).
Well anywho, there's other projects now like hyperHTML, lit-html, etc, plus some really fast ones: https://www.stefankrause.ne...
React seems a little old now (and the new Hooks API is also resource heavy).
• Share ›  Michael Calkins trusktr • 4 years ago • edited That's a micro optimization. There isn't a big enough difference to matter unless you are building a game or something extraordinarily odd.
• Share › −  trusktr Michael Calkins • 2 years ago True, it matters if you're re-rendering the template at 60fps (f.e. for animations, or for games). If you're just changing views one time (f.e. a URL route change), then 100ms won't hurt at all.
-
-
facebook.github.io facebook.github.io
-
ECMAScript 6th Edition (ECMA-262) introduces template literals which are intended to be used for embedding DSL in ECMAScript.
-
-
-
I suppose it all comes down to tooling. It should be easy to author a pattern. A set of implicit (possibly explicit) patterns to author patterns may be useful.
Tags
Annotators
URL
-
-
-
if we create a new branch or scope for some corner cases, we should have full features of a component without creating a new file
-
This seems crucial, for example for #if inside #each {#each boxes as box} {@const b = box?.a?.b} {#if b} <p>{b}</p> {/if} {/each}
-
but this RFC addresses a significant pain point I've had with {#each} blocks doing data visualization and graphics.
-
-
github.com github.com
-
I'm suggesting there should be a way to write lifecycle related code that also responds to changing props, like how useEffect works. I think how React handles this could be a good source of inspiration.
-
-
svelte.dev svelte.dev
-
medium.com medium.com
-
Sometimes, you may be tempted to write that wrapper. Because all your (React or Vue or insert your reactive framework here) instincts tell you so.Resist the temptation. There is a better way. A svelter way. Introducing: the use-directive (a.k.a. “actions”).
-
-
covid-19.iza.org covid-19.iza.org
-
COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved October 10, 2020, from https://covid-19.iza.org/publications/dp13599/
-
-
covid-19.iza.org covid-19.iza.org
-
COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved October 10, 2020, from https://covid-19.iza.org/publications/dp13569/
-
-
-
I started Solid years ago before I thought anyone would be interested in using it. I only started promoting it because it had already achieved the goals I had set out for it.
-
-
stackoverflow.com stackoverflow.com
-
Always fascinated to discover a use case I'd never have considered.
-
-
www.npmjs.com www.npmjs.com
-
An action used on anchor tags to navigate around the application.
Tags
Annotators
URL
-
- Sep 2020
-
medium.com medium.com
-
In my opinion, because Webpack was one of the first bundlers, is heavily packed with features, and has to support swathes of legacy code and legacy module systems, it can make configuring Webpack cumbersome and challenging to use. Over the years, I’ve written package managers, compilers, and bundlers, and I still find configuring Webpack to be messy and unintuitive.
-
-
engineering.mixmax.com engineering.mixmax.com
-
But this is only a halfway decent way to clarify that this is an external dependency, because the only way to resolve a peer dependency warning is to install react from npm—there's no way to notify npm that you resolve the dependency to a browser global. So peer dependencies should be avoided in favor of external declarations. Then Rollup will take care of warning about "unresolved dependencies", even if external declarations can't express a particular version range with which your library is compatible like peer dependencies can.
Interesting. Didn't realize. From my perspective, I usually do install packages via npm, so wouldn't have known about this problem.
npm and rollup both try to solve this problem but in different ways that apparently conflict? So if a lib author lists peerDependencies then it can cause problems for those getting lib via browser (CDN)? How come so many libs use it then? How come I've never heard of this problem before?
-
-
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.
-
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.
-
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.
Tags
- Svelte: how to affect child component styles
- burden
- 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)
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- forking to add a desired missing feature/change
- ugly/kludgey
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
- fun
- arbitrary
- workarounds
- feels natural
- easy to use
- maintenance burden
- being explicit
- arbitrary rules/policies
- explicit interfaces
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- expressiveness
Annotators
URL
-
-
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.
-
They don't need to add a prop for every action. The action itself can be passed in as a prop. <script> export let action; </script> <div use:action>whatever</div> The argument for the action can be another prop or can be part of the same prop.
Tags
- pass-through arguments/props/options
- emergent
- reusability
- flexibility
- component properties (props)
- powerful
- extensibility
- Svelte: action (use:)
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- why this feature is needed
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- I didn't know you could do that / that was possible!
Annotators
URL
-
-
github.com github.com
-
Your tooltip component will have to wrap your image with a span tag or something, it can’t just add events to its children. And if you are adding multiple actions to it you will have to wrap it multiple times.
<Concern1> <Concern2></Concern2> </Concern1>
vs.
<img use:concern1 use:concern2>
-
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
- programming: multiple ways to do the same thing
- keep things simple
- scalability
- could be easier / more difficult than it needs to be
- clean
- verbose
- you aren't going to need it
- just use/do...
- extensibility
- Svelte: action (use:)
- library/framework could make this easier
- avoid complexity
- feature not needed; better to use a different approach/feature instead
- inextensible
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- why this feature is needed
- component/library author can't consider/know ahead of time all of the ways users may want to use it
- clean solution
Annotators
URL
-
-
-
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.
-
I have created an action for form validation and its really working well
-
I'm just pushing on the "is this really a good idea" front
-
Drag and drop might be done better with hooks than components.
-
This can and should be done with other components, IMHO.
-
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.
-
-
-
-
Any reason adding bind:foo to the <Outer/> element doesn't work for this case?
Tags
Annotators
URL
-
-
final-form.org final-form.org
-
A function that takes the value from the input and name of the field and converts the value into the value you want stored as this field's value in the form. Common usecases include converting strings into Numbers or parsing localized dates into actual javascript Date objects.
-
-
psyarxiv.com psyarxiv.com
-
Tillman, G. (2020). Disordered Social Media Use and Fear of COVID-19 and the Association with Stress and Depression. https://doi.org/10.31234/osf.io/dbg62
-
-
github.com github.com
-
Svelte:element as proposed here would nicely fit my use case and avoid some otherwise pretty ugly conditions I'll need to bake into Lists.svelte.
-
Maybe good for some cases but not a general solution for this I think.
-
-
-
Your solution is a very basic. The case above is more complex because using your solution you can't manipulate with fetched data outside of template and even outside {#await / } tag. So, if you need a read-only solution it's good but otherwise, it won't help you.
-
-
-
The language should work for developers, not the other way around.
-
-
www.w3.org www.w3.org
-
GitHub Issues are preferred for discussion of this specification.
-
-
github.com github.com
-
The code is short and simple, if you have specific needs you will probably be better off writing something custom for your application.
-
-
-
Joyce, K. M., Cameron, E. E., Sulymka, J., Protudjer, J., & Roos, L. E. (2020). Changes in Maternal Substance Use During the COVID-19 Pandemic [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/htny8
-
-
developer.mozilla.org developer.mozilla.org
-
async function onEdit() { editing = true // enter editing mode await tick() nameEl.focus() }
-
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
Judah, G., Aunger, R., Schmidt, W.-P., Michie, S., Granger, S., & Curtis, V. (2009). Experimental Pretesting of Hand-Washing Interventions in a Natural Setting. American Journal of Public Health, 99(Suppl 2), S405–S411. https://doi.org/10.2105/AJPH.2009.164160
-
-
psyarxiv.com psyarxiv.com
-
Granderath, J. S., Sondermann, C., Martin, A., & Merkt, M. (2020). The Effect of Information Behavior in Media on Perceived and Actual Knowledge about the COVID-19 Pandemic. https://doi.org/10.31234/osf.io/3y874
-
- Aug 2020
-
psyarxiv.com psyarxiv.com
-
Usher, E., Golding, J. M., Han, J., Griffiths, C. S., McGavran, M. B., Brown, C. S., Sheehan, E. A. (2020). Psychology Students’ Motivation and Learning in Response to the Shift to Remote Instruction During COVID-19. [Preprint]. PsyArXiv. 10.31234/osf.io/xwhpm
-
-
pragmaticpineapple.com pragmaticpineapple.com
-
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.
-
-
www.reuters.com www.reuters.com
-
Widespread mask-wearing could prevent COVID-19 second waves: Study. (2020, June 10). Reuters. https://www.reuters.com/article/us-health-coronavirus-masks-study-idUSKBN23G37V
-
-
english.stackexchange.com english.stackexchange.com
-
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])
-
-
www.newyorker.com www.newyorker.com
-
Romeo, N. (n.d.). What Can America Learn from Europe About Regulating Big Tech? The New Yorker. Retrieved August 19, 2020, from https://www.newyorker.com/tech/annals-of-technology/what-can-america-learn-from-europe-about-regulating-big-tech
-
-
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.
-
-
www.nber.org www.nber.org
-
Hamermesh, Daniel S. ‘Lock-Downs, Loneliness and Life Satisfaction’. Working Paper. Working Paper Series. National Bureau of Economic Research, April 2020. https://doi.org/10.3386/w27018.
-
-
certificates.creativecommons.org certificates.creativecommons.org
-
More information about limitations and exceptions to copyright
Under more information about limitations and exceptions to copyright add section titled Case Studies: Case studies provide valuable information relating to the state of affairs in various countries, as well as the opposing views when debating copyright issues.
- South Africa: a case study of politics and the global economics of limitations and exceptions to copyright. The current debate in South Africa regarding proposed amendments to the Copyright Bill allows showcases the different sides of the debate, and how legal frameworks, e.g. the Constitution of the Republic of South Africa also informs decision making.
- US Government Threatening To Kill Free Trade With South Africa After Hollywood Complained It Was Adopting American Fair Use Principles, by Mike Masnick, 4 November 2019.
- South Africa’s Copyright Amendment Bill – one year on, by Denise Nicholson, 30 March 2020. This work is licensed under a Creative Commons Attribution 4.0 International License.
- South Africa’s Copyright Amendment Bill Returned to Parliament for Further Consideration, Mike Palmedo, 22 June 2020. This work is licensed under a Creative Commons Attribution 4.0 International License.
- See the light and pass the Copyright Amendment Bill, by Mugwena Maluleke, Tebogo Sithathu, Jack Devnarain, Tusi Fokane, Ben Cashdan and Jace Nair, 24 June 2020. © Mail & Guardian Online.
- South African President’s Reservations to Copyright Bill Not Supported by Law, by Sean Flynn, 13 July 2020. This work is licensed under a Creative Commons Attribution 4.0 International License.
For a comprehensive list of materials relating to the South African Copyright Amendment Bill processes, see Copyright and Related Issues: USTR GSP trade threats re: Bill, list compiled and amended by Denis Nicholson
-
-
psyarxiv.com psyarxiv.com
-
Rezapour, T., Assari, S., Kirlic, N., Vassileva, J., & Ekhtiari, H. (2020). Enhancing Cognitive Resilience in Adolescence and Young Adults: A Neuroscience-informed Approach [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/enrv9
-
- Jul 2020
-
amp.dev amp.dev
-
The above errors can be resolved by simply adding the ⚡attribute to the <html> tag like so: <html ⚡ lang="en">
-
-
edpb.europa.eu edpb.europa.eu
-
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.
-
As mentioned earlier in these guidelines, it is very important that controllers assess the purposes forwhich data is actually processed and the lawful grounds on which it is based prior to collecting thedata. Often companies need personal data for several purposes, and the processing is based on morethan one lawful basis, e.g. customer data may be based on contract and consent. Hence, a withdrawalof consent does not mean a controller must erase data that are processed for a purpose that is basedon the performance of the contract with the data subject. Controllers should therefore be clear fromthe outset about which purpose applies to each element of data and which lawful basis is being reliedupon.
-
Also,mechanisms for data subjects to withdraw their consent easily must be available and informationabout how to withdraw consent must be provided.
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
If you're having to look at GitHub, it seems like you didn't find a situation yourself where the requested feature would make you happier. I would advice you not to attempt to find use cases beforehand, just let them find you.
-
-
stackoverflow.com stackoverflow.com
-
Ultimately though, I'd say the file structure that makes the most sense for your i18n workflow is the best one.
-
-
en.wikipedia.org en.wikipedia.org
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
So, which is better? t.inspect # => "2007-11-01 15:25:00 8483885939586761/68719476736000000 UTC" t.inspect # => "2007-11-01 15:25:00.123456789000000004307366907596588134765625 UTC"
-
-
www.youtube.com www.youtube.com
-
UCLA Connections—How is the global health crisis impacting alcohol habits/instances of addiction? (2020, May 20). UCLA. https://www.youtube.com/watch?v=t9bW2YnLrDY
-
-
osf.io osf.io
-
Mishra, S. V. (2020). COVID-19, online teaching, and deepening digital divide in India [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/wzrak
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
Matz, alas, I cannot offer one. You see, Ruby--coding generally--is just a hobby for me. I spend a fair bit of time answering Ruby questions on SO and would have reached for this method on many occasions had it been available. Perhaps readers with development experience (everybody but me?) could reflect on whether this method would have been useful in projects they've worked on.
-
-
en.wikipedia.org en.wikipedia.org
-
the overloaded operators ¬, =, ≠, and abs are defined
-
-
en.wikipedia.org en.wikipedia.org
-
Most of Algol's "special" characters (⊂, ≡, ␣, ×, ÷, ≤, ≥, ≠, ¬, ⊃, ≡, ∨, ∧, →, ↓, ↑, ⌊, ⌈, ⎩, ⎧, ⊥, ⏨, ¢, ○ and □) can be found on the IBM 2741 keyboard with the APL "golf-ball" print head inserted; these became available in the mid-1960s while ALGOL 68 was being drafted. These characters are also part of the Unicode standard and most of them are available in several popular fonts.
-
-
twitter.com twitter.com
-
Nathan Young on Twitter: “I refuse to subscribe to every newpaper that I read 3 articles from a month. I’m subscribed to @Blendle @Coil and @Medium for content that I pay per use. If news orgs want my money, let me pay only for what I use.” / Twitter. (n.d.). Twitter. Retrieved July 7, 2020, from https://twitter.com/nathanpmyoung/status/1280080625689669632
-
-
psyarxiv.com psyarxiv.com
-
Chatterjee, A., & Chatterjee, A. (2020). Managing through uncertain times: A study to understand the effects of conducting socio-academic life online during COVID-19. https://doi.org/10.31234/osf.io/vcbrw
-
-
idioms.thefreedictionary.com idioms.thefreedictionary.com
-
By extension, a situation in which problems continue to arise faster than one is able to solve or cope with them, resulting in piecemeal, incomplete, or temporary results.
-
- Jun 2020
-
medium.com medium.com
-
According to our understanding of the inconsistencies, the feature was likely trying to support too many edge cases. All caching strategies have weaknesses and eventually break down if the usage is not properly scoped.
-
-
www.pscp.tv www.pscp.tvWho @WHO1
-
Inc, T. (n.d.). Who @WHO. Periscope. Retrieved June 9, 2020, from https://www.pscp.tv/WHO/1mnGelyEyOqKX
Tags
Annotators
URL
-
-
psyarxiv.com psyarxiv.com
-
Xuereb, S., Kim, H. S., Clark, L., & Wohl, M. (2020). Substitution behaviors among casino gamblers during COVID-19 precipitated casino closures. https://doi.org/10.31234/osf.io/fvnmb
-
-
medium.com medium.com
-
State management is also easier. Instead of importing hooks and using setters, you just define a property within the script tags. You then change the value by re-assigning it (not mutating the original value).
-
But it’s impossible to argue with the value binding. You don’t have to worry about defining the value property and an onChange event for an input box in Svelte, bind:value does it all
-
As an engineer, it’s important to explore different technologies. It’s important to identify the tools available to tackle problems. And it’s important to expand your horizons because then you can look cool on your CV.
-
-
notes.peter-baumgartner.net notes.peter-baumgartner.net
-
But it has as an external service several disadvantages which opposed the philosophy of static websites diametrically.
-
-
stackoverflow.com stackoverflow.com
-
gist.github.com gist.github.com
-
discuss.rubyonrails.org discuss.rubyonrails.org
-
discuss.rubyonrails.org discuss.rubyonrails.org
-
rails.lighthouseapp.com rails.lighthouseapp.com
-
I ran in to what I thought was this issue, but I was using fragment caching. Since the partial was not executed again, the content_for was not called. content_for could be written differently to handle this.
-
-
gist.github.com gist.github.com
-
Supports nested 'cache do' blocks and some fixes
-
-
rails.lighthouseapp.com rails.lighthouseapp.com
-
stackoverflow.com stackoverflow.com
-
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.
-