- Feb 2021
-
sobolevn.me sobolevn.me
-
Write special-case classes. For example, you will have User base class with multiple error-subclasses like UserNotFound(User) and MissingUser(User). It might be used for some specific situations, like AnonymousUser in django, but it is not possible to wrap all your possible errors in special-case classes. It will require too much work from a developer. And over-complicate your domain model.
-
-
trailblazer.to trailblazer.to
-
Things could go wrong in two places here. First, the validation could fail if Github sends us data we don’t understand. Second, we might not know the user signing in, meaning the “find user” logic has to error-out
-
-
linusakesson.net linusakesson.net
-
Beware, though: What you are about to see is not particularly elegant. In fact, the TTY subsystem — while quite functional from a user's point of view — is a twisty little mess of special cases. To understand how this came to be, we have to go back in time.
-
-
github.com github.com
-
No one has requested it before so it's certainly not something we're planning to add.
-
To give a little more context, structures like this often come up in my work when dealing with NoSQL datastores, especially ones that rely heavily on JSON, like Firebase, where a records unique ID isn't part of the record itself, just a key that points to it. I think most Ruby/Rails projects tend towards use cases where these sort of datastores aren't appropriate/necessary, so it makes sense that this wouldn't come up as quickly as other structures.
-
-
en.wikipedia.org en.wikipedia.org
-
Uses
-
-
github.com github.com
-
The main realization came when I figured out that the main_model was just another association. This means we can move a lot of logic to just that class and reason about it a lot better.
-
-
psyarxiv.com psyarxiv.com
-
Lalwani, P., Fansher, M., Lewis, R., Boduroglu, A., Shah, P., Adkins, T. J., … Jonides, J. (2020, November 8). Misunderstanding “Flattening the Curve”. https://doi.org/10.31234/osf.io/whe6q
-
-
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
-
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.
-
- 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.
-
-
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.
-
-
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
-
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.
-
-
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
-
stackoverflow.com stackoverflow.com
-
The main reason to use these lower-level components is if you need to customize your form input in some way that isn't supported using TextField.
-
-
mywiki.wooledge.org mywiki.wooledge.org
-
However, this construct is not completely equivalent to if ... fi in the general case.
The caveat/mistake here is if you treat it / think that it is equivalent to if a then b else c. That is not the case if b has any chance of failing.
-
-
-
You could decide to trust yourself and your teammates to always remember this special case. You can all freely use short-circuiting, but simply don't allow a short-circuit expression to be on the last line of a script, for anything actually deployed. This may work 100% reliably for you and your team, but I don't believe that is the case for myself and many other developers. Of course, some kind of linter or commit hook might help.
-
-
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
-
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
-
-
-
Please raise an issue if your use case is not theoretical.
Tags
Annotators
URL
-
- Oct 2020
-
www.cnn.com www.cnn.com
-
CNN, N. P. W., Jo Shelley and William Bonnett. (n.d.). Doctors and nurses face abuse as UK coronavirus cases soar but social distancing wanes. CNN. Retrieved 29 October 2020, from https://www.cnn.com/2020/10/28/europe/coronavirus-blackburn-icu-second-wave/index.html
-
-
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
- react-final-form: submission errors
- not considering all use cases
- assumptions
- learning from others
- can't support everything / all cases
- they've thought of everything
- testing/challenging one's assumptions (either validating or invalidating them)
- invalidating one's assumptions
- surprising
- different way of thinking about something
- author of software answering questions in community (support)
- not:
- use cases
- sincere
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.
-
-
-
I don't want Svelte to go out of its way to try to catch all these edge cases. It would require lots of fragile heuristics in the compiler. I want a solid compiler I can trust, not something magic but often out of service. I want it the simplest possible.
-
-
medium.com medium.com
-
These are fine and do not cause any issues.
-
-
www.vox.com www.vox.com
-
Belluz, J. (2020, October 20). Europe’s new Covid-19 wave, explained. Vox. https://www.vox.com/21514530/europe-covid-second-wave-update
-
-
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.
-
-
final-form.org final-form.org
-
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.
-
-
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.
-
-
-
I'm okay with an overall design that allows people to plugin the parts they need in order to be able to generically support a compile-to-javascript language, but to bake in support for one singular solution because its popular is simply bad engineering.
-
This is the problem with baking in support for frameworks with special cases in the codebase. You can never support all the frameworks. :-(
-
-
-
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.
-
-
svelte.dev svelte.dev
-
twitter.com twitter.com
-
Shauna Brail on Twitter. (n.d.). Twitter. Retrieved October 9, 2020, from https://twitter.com/shaunabrail/status/1313818873163067392
-
-
stackoverflow.com stackoverflow.com
-
Always fascinated to discover a use case I'd never have considered.
-
-
twitter.com twitter.com
-
Travelling Tabby on Twitter. (n.d.). Twitter. Retrieved October 8, 2020, from https://twitter.com/travellingtabby/status/1313882542425112579
-
-
covid-19.iza.org covid-19.iza.org
-
IZA – Institute of Labor Economics. ‘COVID-19 and the Labor Market’. Accessed 6 October 2020. https://covid-19.iza.org/publications/dp13664/.
-
- Sep 2020
-
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?
-
-
-
And to illustrate another way actions are helpful, take your above example and put the button into a {{#each}}. It gets more complicated.
-
I have created an action for form validation and its really working well
-
Drag and drop might be done better with hooks than components.
-
-
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.
-
-
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.
-
-
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.
-
-
developer.mozilla.org developer.mozilla.org
-
async function onEdit() { editing = true // enter editing mode await tick() nameEl.focus() }
-
- Aug 2020
-
-
Carl, N. (2020). An Analysis of COVID-19 Mortality at the Local Authority Level in England. https://doi.org/10.31235/osf.io/dmc2v
-
-
twitter.com twitter.com
-
Dr Emma Hodcroft [@firefoxx66} (2020) In June, after reopening, #SARSCoV2 #COVID19 cases in Florida began to rise. Hospitalisations & deaths, however, stayed low. Perhaps it just wasn't so bad after all? Perhaps something had changed? We see similar trends in Europe now. So what happened in Florida? Let's see. Twitter. Retrieved from: https://twitter.com/firefoxx66/status/1296080753013534721
-
-
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.
-
-
twitter.com twitter.com
-
Eric Topol [@EricTopol] On the rise as proportion of total infections. Twitter. Retrieved from: https://twitter.com/ReconfigBehSci/status/1295727589823254529.
-
-
uk.reuters.com uk.reuters.com
-
‘Germany Records Biggest Jump in New Coronavirus Cases since Early May’. Reuters, 12 August 2020. https://uk.reuters.com/article/uk-health-coronavirus-germany-cases-idUKKCN25809X.
-
-
news.sky.com news.sky.com
-
Sky News. ‘Coronavirus: UK Records Highest Daily Number of COVID-19 Cases for Nearly Two Months’. Accessed 12 August 2020. https://news.sky.com/story/coronavirus-uk-records-highest-daily-number-of-covid-19-cases-for-nearly-two-months-12047385.
-
-
-
Dias, C. S., & Verona, A. P. (2020). Confirmed cases and deaths by COVID-19: A comparison among the BRICS countries [Preprint]. Open Science Framework. https://doi.org/10.31219/osf.io/dmtfy
-
-
covid-19.iza.org covid-19.iza.org
-
Pandemic Meets Pollution: Poor Air Quality Increases Deaths by COVID-19. COVID-19 and the Labor Market. (n.d.). IZA – Institute of Labor Economics. Retrieved July 31, 2020, from https://covid-19.iza.org/publications/dp13418/
-
- Jul 2020
-
osf.io osf.io
-
Cruz, C. J. P., Ganly, R., Li, Z., & Gietel-Basten, S. (2020). Imported cases, community action, policy and institutional systems drive Hong Kong’s COVID-19 experience [Preprint]. SocArXiv. https://doi.org/10.31235/osf.io/5zuv7
-
-
twitter.com twitter.com
-
ReconfigBehSci on Twitter: ‘RT @ObsoleteDogma: The U.S. is averaging more new covid cases than any continent is right now https://t.co/O70nj0I4Xo’ / Twitter. (n.d.). Twitter. Retrieved 16 July 2020, from https://twitter.com/SciBeh/status/1282953988774727680
-
-
twitter.com twitter.com
-
ReconfigBehSci on Twitter: ‘RT @ProjectLincoln: Of course teachers and families are afraid. https://t.co/oQsVtPIlEf’ / Twitter. (n.d.). Twitter. Retrieved 16 July 2020, from https://twitter.com/SciBeh/status/1283272405297897477
-
-
www.thelancet.com www.thelancet.com
-
Lancet, T. (2020). COVID-19: The worst may be yet to come. The Lancet, 396(10244), 71. https://doi.org/10.1016/S0140-6736(20)31517-8
-
-
marginalrevolution.com marginalrevolution.com
-
Affairs, C., & Medicine. (2020, July 7). Southeast Asia coronavirus update. Marginal REVOLUTION. https://marginalrevolution.com/marginalrevolution/2020/07/southeast-asia-coronavirus-update.html
-
- 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.
-
-
twitter.com twitter.com
-
Twitter. (n.d.). Twitter. Retrieved June 22, 2020, from https://twitter.com/scibeh/status/1274970675854311424
-
-
-
COVID-19: Have we forgotten our children in all this? (n.d.). CEBM. Retrieved June 22, 2020, from https://www.cebm.net/covid-19/covid-19-have-we-forgotten-our-children-in-all-this/
-
-
twitter.com twitter.com
-
Katz, M. MD. (2020, June 21). "Amazing what a difference four weeks makes since Memorial Day Weekend in #COVID19 New cases/day by U.S. region, adjusted for population". Twitter. https://twitter.com/subatomicdoc/status/1274702408317374466
-
-
twitter.com twitter.com
-
Prof Shamika Ravi on Twitter: “1) ACTIVE cases...shows which countries have 1) Peaked: Germany, S Korea, Japan, Italy, Spain... 2) Plateaued: France 3) Yet to peak: US, UK, Brazil, India...active cases still rising. 4) Second wave: Iran and.... Spain (?) https://t.co/C5c3gAhINc” / Twitter. (n.d.). Twitter. Retrieved June 2, 2020, from https://twitter.com/ShamikaRavi/status/1267664491040440322
-
-
www.bbc.co.uk www.bbc.co.uk
-
Coronavirus updates as they happened: US markets down amid fears of second virus surge. (n.d.). BBC News. Retrieved June 13, 2020, from https://www.bbc.co.uk/news/live/world-53003283
-
- May 2020
-
twitter.com twitter.com
-
Howard Forman on Twitter
-
-
docs.gitlab.com docs.gitlab.com
-
You want to execute SSH commands from the build environment to a remote server You want to rsync files from the build environment to a remote server If anything of the above rings a bell, then you most likely need an SSH key.
Tags
Annotators
URL
-
-
tools.ietf.org tools.ietf.org
-
This represents the leap second inserted at the end of 1990. 1990-12-31T15:59:60-08:00
Tags
Annotators
URL
-
- Apr 2020
-
stackoverflow.com stackoverflow.com
-
stackoverflow.com stackoverflow.com
-
Less than 1% of users in the world have Javascript turned off. So honestly, it's not worth anyones time accommodating for such a small audience when a large majority of websites rely on Javascript. Been developing websites for a very long time now, and 100% of my sites use Javascript and rely on it heavily. If users have Javascript turned off, that's their own problem and choice, not mine. They'll be unable to visit or use at least 90% of websites online with it turned off.
-
-
github.com github.com
-
I don't think this is a common enough use case to warrant this change (which would need documentation and tests if it were to be accepted). Overall, the goal has been to simplify the validators, and prune out edge cases. This use case can be easily accomplished by just using a method instead.
-
-
www.troyhunt.com www.troyhunt.com
-
As such, they're not in clear text and whilst I appreciate that will mean some use cases aren't feasible, protecting the individuals still using these passwords is the first priority.
-
-
www.cnet.com www.cnet.com
-
Well, as a home user, I also belong to an investment club with 10 members. I also have a medium size family who I like to send photo's to, and my son is on a soccer team. all those have greater than 5 people on the list. sooooooooo..... once again, the people with valid use of the internet have to 'deal' with those that abuse it.
-
-
haveibeenpwned.com haveibeenpwned.com
-
How does HIBP handle "plus aliasing" in email addresses? Some people choose to create accounts using a pattern known as "plus aliasing" in their email addresses. This allows them to express their email address with an additional piece of data in the alias, usually reflecting the site they've signed up to such as test+netflix@example.com or test+amazon@example.com. There is presently a UserVoice suggestion requesting support of this pattern in HIBP. However, as explained in that suggestion, usage of plus aliasing is extremely rare, appearing in approximately only 0.03% of addresses loaded into HIBP. Vote for the suggestion and follow its progress if this feature is important to you.
Tags
Annotators
URL
-
- Aug 2019
-
stackoverflow.com stackoverflow.com
-
Is it because package authors only consider the use case of installing their package from npm and not the case of installing it from a git repo?
-
- Aug 2018
-
scholarlykitchen.sspnet.org scholarlykitchen.sspnet.org
-
wide range of use cases for annotations
I have slides from a recent presentation on use cases that can be accessed here: https://docs.google.com/presentation/d/1LyD0cau4SFmztMTq_WE30DxBQ4TQOyZl-XGAEAtU21A/edit?usp=sharing
-
- Aug 2017
-
www.fbi.gov www.fbi.gov
-
Patty Hearst - good example of stockholm syndrome
-
- Aug 2015
-
medium.com medium.com
-
But if a URL link is for a quotation the problem disappears. Readers follow the link to the top of the sources, copy a few words of the quoted passage into the Control+F search box, and go directly to the passage cited.
-
Using URL referencing of the kind I employ in this blog, or other innovative methods, readers should be able to go directly (in a single click and in real time) to the specific part of the full text of source that is being cited
-
-
docs.google.com docs.google.com
-
Have you seen the ContentMine project at all? I met Peter Murray Rust at a Mozilla science event a couple of months ago and the use case he discussed sounded quite similar to this - mining large numbers of papers for facts.
-
- Apr 2015
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
his Web portal provides users with a flexible and expandable suite of resources to enable variant-, gene-, and exome-level sequence analysis in a secure, Web-based, and user-friendly fashion. Users can also elect to share data with other MSeqDR Consortium members, or even the general public, either by custom annotation tracks or through the use of a convenient distributed annotation system (DAS) mechanism
Need to look into the DAS and portals like this that are annotating sequences.
Tags
Annotators
URL
-