Readit News logoReadit News
ldlework commented on Julia Roberts reveals Martin Luther King Jr paid the hospital bill for her birth   cnn.com/2022/10/31/entert... · Posted by u/Tomte
sottol · 3 years ago
So I can equate a fully deregulated market-based libertarian society with anarchy?
ldlework · 3 years ago
Unironically, yes. That's exactly how anarcho-capitalists see it. To them, Anarchy just means "no coercion/state", it doesn't mean a lack of structure, delegation or coordination.
ldlework commented on Abusing the type system for fun and profit   github.com/poteat/hkt-too... · Posted by u/mpoteat
ldlework · 3 years ago
This is quite cool.
ldlework commented on The Gigerian Farce (DALL-E 2)   youtube.com/watch?v=UqVOQ... · Posted by u/ldlework
ldlework · 4 years ago
Created this short visual narrative with Dall-E in the style of H.R. Giger.

Human figures live their lives in a surreal dystopian world, until they find a hole leading to an even stranger one.

Video was made with React Remotion which was pretty cool. If anything, check that out.

ldlework commented on Minimalist dependency injection in Python (2021)   oddbit.dev/post/python/di... · Posted by u/BerislavLopac
pansa2 · 4 years ago
> Minimalist dependency injection in Python

When an object requires other objects for its work, pass references to those other objects into its __init__ method. That’s it.

ldlework · 4 years ago
All you've done is push the burden of constructing the dependency to whomever is calling an passing that dependency to __init__

Consistently applied, all construction gets pushed to the entry-point of the program. Congratulations, you've just discovered the so-called "composition root".

Now that all construction is taking place at once, the order matters as you can't pass a dependency to its dependent until the dependency has been constructed. But it may have its own dependencies. So now there is a topological sorting problem.

Turns out computers are really good at topological sorting. So, someone made the computer do it, and we call that a dependency injection container. Tada.

ldlework commented on Show HN: Create slide presentations with your voice   nextslide.lol/... · Posted by u/jameswilsterman
ldlework · 4 years ago
When this was first being presented at the Hackathon where it was created, I joined a few seconds late due to some camera trouble. My first thoughts where "Wow, they really went above and beyond, so tightly choreographing their presentation to their slides." Then it slowly dawned on me what was happening. Funny stuff.
ldlework commented on TypeScript 4.4 Beta   devblogs.microsoft.com/ty... · Posted by u/bpierre
typescriptual · 5 years ago
From time to time I come across amazing things made with seemingly advanced type system of typescript (eg. sql engine). What is the trail I should follow if I want learn how to do such things?

Dead Comment

ldlework commented on YouTube is down because of minified dev build being deployed   youtube.com/... · Posted by u/olafura
ldlework · 5 years ago
I'm still having this issue.
ldlework commented on Cyclic dependencies are evil (2013)   fsharpforfunandprofit.com... · Posted by u/nojito
Smaug123 · 5 years ago
If I may, that sounds horrifying. Please, for the sake of my sanity and the IDE, always do things at compile time rather than runtime if you can!
ldlework · 5 years ago
If the code is implementing against interfaces, why would late binding mess up your IDE experience at all?

u/ldlework

KarmaCake day156February 8, 2013View Original