770 karma · joined Mar 14, 2017 (9y ago) · 107 submissions
comment 1y ago · link · parent
You don't have to update the injection points, because the injection points don't know the concrete details of what's being injected. That's literally the whole point of dependency injection.
Edited to add: Say you have a class A, and this is a dependency of classes B, C, etc. Using dependency injection, classes B and C are passed instances of A, they don't construct it themselves. So if you add a dependency to A, you have to change the place that constructs A, of course, but you don't have to change B and C, because they have nothing to do with the construction of A.
2.
An Introduction to Recursion Schemes(blog.sumtypeofway.com ↗)
1 points · by culturedsystems · 2y ago · 1 comment
comment 2y ago · link · parent
I may be wrong, but I don't think using JavaScript vs using the standard HTML <link> element to prefetch makes a difference here. I don't see anything in the HTML specs about preload or prefetch delaying cookie setting to sometime after the resource is actually loaded (although admittedly I find this bit of the spec somewhat hard to read, as it's dense with references to other parts of the spec). I tried it out, and, both Firefox and Chrome set the cookies for preloaded and prefetched links when the resource is loaded, even if the resource is never actually used.
4.
Design document on nullability and value types(mail.openjdk.org ↗)
2 points · by culturedsystems · 2y ago · discuss
comment 2y ago · link · parent
Worse, permitting this conversion at compile time means developers will ignore the warning, so we'll have actual codebases which include these conversions. Any later change to enforce nullability checking at compile time will then have a significant backwards compatibility cost.
comment 2y ago · link · parent
That's right, I think it's really "soft deletion as a blanket rule" which is the anti-pattern; soft-deletion is one option which (IMO) is used too often without thinking about specifically what you need to achieve. If soft-deletion is used as a blanket rule, you're more likely to want to try and abstract it away via an ORM or similar, which tends to be fragile (I agree views aren't fragile, but they do add another layer of complexity in defining the relationship between the application logic and the schema). If soft deletion is chosen judiciously and represented explicitly in the business logic, it's less likely to cause problems (the "archived state" in the post is kind of an explicitly represented soft delete).
7.
Avoiding the soft delete anti-pattern(cultured.systems ↗)
61 points · by culturedsystems · 2y ago · 55 comments
comment 2y ago · link · parent
[1] https://tc39.es/ecma262/multipage/ecmascript-data-types-and-...
9.
Predicate Functor Logic(en.wikipedia.org ↗)
3 points · by culturedsystems · 2y ago · discuss
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
1: http://onward-conferences.org/2009/files/steimannessay.pdf
13.
If there's a concern, it's your concern(cultured.systems ↗)
1 points · by culturedsystems · 3y ago · discuss
comment 3y ago · link · parent
That's technically true, but who cares? The instance timeline isn't a "community", it's just a particular filter applied to the global timeline. The communities of videogame and music enthusiasts are larger than any one instance, and can follow one another across instances, and see each others' tagged posts in searches across instances.
comment 4y ago · link · parent
[1]: https://www.theguardian.com/music/2017/aug/31/bad-blood-is-t...
comment 4y ago · link · parent
18.
Minecraft and NFTs(minecraft.net ↗)
11 points · by culturedsystems · 4y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
KIxy -> Iy -> y
Similarly, because true is defined as K, and false as KI, if you evaluate Mxy where x and y are K or KI, and keep evaluating, you'll eventually end up with either K or KI, depending on whether (x or y) is true or false. I agree, though, that is confusing that the post didn't explain any of this; I assume it's not finished yet.comment 4y ago · link · parent
This is somewhat ironic because, if memory serves, the original reason people started adding this to their HTML was because of some dubious scaling behaviour on iOS Safari (I think, if you didn't disable zooming, Safari responded to rotation by zooming the page to fill the new width, rather than laying out the page again).
comment 4y ago · link · parent
26.
A Critique of the Remote Procedure Call Paradigm (1988) [pdf](cs.vu.nl ↗)
19 points · by culturedsystems · 4y ago · 9 comments
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent