29 Matching Annotations
- May 2024
-
martin.kleppmann.com martin.kleppmann.com
-
If authentication of updates is desired, i.e. if it is importantto know which node generated which update, then updatescan additionally be cryptographically signed. However, thisis not necessary for achieving Strong Eventual Consistency
-
- Feb 2023
-
github.com github.com
-
There should thus be an option to give npm a list of vulnerability IDs (CVEs etc.) that it does not need to defend because the admin has decided it does not apply to their edge case.
should be optional
Tags
Annotators
URL
-
- Aug 2021
-
www.ruby-lang.org www.ruby-lang.org
-
Here is one of the most confusing cases: def foo(x, **kwargs) p [x, kwargs] end def bar(x=1, **kwargs) p [x, kwargs] end foo({}) #=> [{}, {}] bar({}) #=> [1, {}] bar({}, **{}) #=> expected: [{}, {}], actual: [1, {}]
-
- Jun 2021
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
I am not sure if this is an improvement. To me it does not seem very pretty. Of course I am biased since I also prefer () in method definitions if they have arguments; although I think it is fine that ruby does not mind omitting the (). For my brain, I like the () for visual separation.
-
- Feb 2021
-
dry-rb.org dry-rb.org
-
In other words, once you've used Maybe you cannot hit nil with a missing method. This is remarkable because even &. doesn't save you from omitting || "No state" at the end of the computation. Basically, that's what they call "Type Safety".
-
Another solution is using the Safe Navigation Operator &. introduced in Ruby 2.3 which is a bit better because this is a language feature rather than an opinionated runtime environment pollution
Tags
- monad: Maybe
- optional chaining/safe navigation operator
- reuse existing language constructs
- polluting the global scope/environment
- opinionated
- type safety
- remarkable
- don't modify objects you don’t own (monkey patching)
- good point
- good explanation
- programming languages: features
- make it impossible to get wrong/incorrect
Annotators
URL
-
- Jan 2021
-
github.com github.com
-
You should default to the most permissive option imo and there really is no reason to check anything until you really need to If it were left to me I'd just use optional chaining, as it also eliminates the need for no-ops
(lazy checking)
-
-
fontawesome.com fontawesome.com
-
Attribution is no longer required as of Font Awesome 3.0 but is much appreciated:
Tags
Annotators
URL
-
- Nov 2020
-
imfeld.dev imfeld.dev
-
Directives like ng-if="info.report.revenue" sort of work in Angular if info.report is undefined, in that the ng-if becomes false. But the Svelte equivalent {#if info.report.revenue} throws an error. For now we're using lodash get in places where we need to and looking forward to Svelte support for optional chaining.
-
-
sveltematerialui.com sveltematerialui.com
-
That file is mandatory, but it can contain nothing, if you want the default theme.
Optional but still kind of mandatory. Odd.
Tags
Annotators
URL
-
-
github.com github.com
-
Just coming here to voice my agreement that these warnings are annoying and exist in other libraries as well. For me this happened with svelma. I didn't write the library code, so I don't have complete control over it even though I agree there is an argument to be had around whether I should be notified anyway. In either case, these warnings should be easily disabled since libraries don't always get updated over night.
-
- Oct 2020
-
-
Rubin, M. (2020, October 20). Does preregistration improve the credibility of research findings?. https://doi.org/10.20982/tqmp.16.4.p376
-
-
github.com github.com
-
// `lodash/padStart` accepts an optional `chars` param. _.padStart('a', 3, '-') // ➜ '--a' // `lodash/fp/padStart` does not. fp.padStart(3)('a'); // ➜ ' a'
-
- Sep 2020
-
github.com github.com
-
Allow creating custom components with the same abilities as native dom. By all means keep the same level of encapsulation, don't push class on components, but allow a component to mark the class property or another as a CSS Class property, in which case you could pass it through the same transformation that native elements go through
-
-
github.com github.com
-
handle?.destroy?.()
-
-
github.com github.com
-
And normally, accepting a class prop is documented in the component's props, so passing a class prop to a component that doesn't utilize it, and see no effect is not surprising at all, in the sense that passing any undocumented prop normally mean that it will have no effect.
-
The nice thing with this implementation is that it doesn't have any overhead or modified behavior for code that doesn't use the feature. If you don't like, no harm done, you can just ignore it.
Tags
Annotators
URL
-
- May 2020
-
docs.gitlab.com docs.gitlab.com
-
Enable the sub-chart The way we’ve chosen to implement compartmentalized sub-charts includes the ability to disable the components that you may not want in a given deployment. For this reason, the first setting you should decide on is enabled.
-
- Apr 2020
-
www.troyhunt.com www.troyhunt.com
-
A middle ground would be to recommend the user create a new password without necessarily enforcing this action. The obvious risk is that the user clicks through the warning and proceeds with using a compromised password, but at least you've given them the opportunity to improve their security profile.
-
-
www.driftingruby.com www.driftingruby.com
-
This gives your users the option to increase the level of security to their account and help prevent unauthorized access.
-
- Mar 2020
-
dmv.ny.gov dmv.ny.gov
-
Watch our REAL ID Video on YouTube!
optional information video information
Tags
Annotators
URL
-
- Dec 2019
-
github.com github.com
-
Optional Dependencies
Tags
Annotators
URL
-
- Oct 2019
-
devblogs.microsoft.com devblogs.microsoft.com
-
TypeScript 3.7 implements one of the most highly-demanded ECMAScript features yet: optional chaining
-
- Sep 2019
-
tom-jaeschke.blogspot.com tom-jaeschke.blogspot.com
- Aug 2019