Readit News logoReadit News

Dead Comment

Dead Comment

dmitriid commented on There Were Half As Many Affordable Homes For Sale In 2022 As There Were In 2021   redfin.com/news/share-of-... · Posted by u/jackcosgrove
midoridensha · 2 years ago
The declining population has nothing to do with houses being viewed as a depreciating asset: it was like that long before the population started declining. Houses were (are) simply seen as disposable, having an expected service life, just like a car. After the service life is over, it's demolished and something new built in its place, since the land retains value (and may gain value, depending on local demand). Why anyone would value an older building over a new one, I have no idea, as it's entirely irrational, unless the building has real historic value.

The things that make housing affordable here are the zoning codes and laws which basically prevent neighbors from restricting development. Lack of stupid laws dictating how development must be done help a lot too: things like setbacks, parking requirements, etc.

dmitriid · 2 years ago
> Why anyone would value an older building over a new one, I have no idea, as it's entirely irrational

Because new buildings these days are invariably the same boring gray dull shit that robs any place of its identity?

dmitriid commented on What Are Signals?   signia.tldraw.dev/docs/wh... · Posted by u/sanketpatrikar
satvikpendem · 2 years ago
Redux Toolkit is very impressive, especially with TypeScript. I'd agree that there was a lot of boilerplate in the before-times, but today, it's not "marginally less," it's significantly less boilerplate. The debugging tools are top notch as well, I can trace values and their changes pretty easily these days.

The main point of Redux is that it follows functional programming paradigms of immutable data, which makes reasoning about changes much easier. Compare that to the global state everywhere of signals/reactive/observables-based approaches like MobX or RxJS.

dmitriid · 2 years ago
> Compare that to the global state everywhere of signals/reactive/observables-based approaches like MobX or RxJS.

What are you on about? Redux is literally about global state everywhere. But with three to four layers of abstractions between.

You define your state globally. Then use hooks to fetch data from that global state, and then "dispatch" aka call actions on that global state. If something else somewhere else updates data in that global state your component will be affected if it uses that data.

But it also requires you to write an insane amount of useless stuff like "define your store, then reducers, then slices, then god knows what" to arrive at almost the same code:

   // redux

   import { useSelector, useDispatch } from 'react-redux'
   import { decrement, increment } from './counterSlice'

   export function Counter() {
     // note how we reach into magical global state that useSelector knows about
     const count = useSelector((state: RootState) => state.counter.value)
     const dispatch = useDispatch()

     return <>
        <button onClick={() => dispatch(increment())}>Increment</button>
        <span>{count}</span>
        <button onClick={() => dispatch(decrement())}>Decrement</button>
     </>;
   }


   // solid

   // state is immutable. It's also not magical, you explicitly refrence and import it
   //
   // increment and decrement would use a `set` function to update the store to required value
   // see https://www.solidjs.com/docs/latest/api#createstore
   // and https://www.solidjs.com/docs/latest/api#updating-stores
   //
   import { state, increment, decrement } from './counter-store';

   export function Counter() {
     return <>
        <button onClick={() => increment()}>Increment</button>
        <span>{state.count}</span>
        <button onClick={() => decrement()}>Decrement</button>
     </>;
   }

dmitriid commented on What Are Signals?   signia.tldraw.dev/docs/wh... · Posted by u/sanketpatrikar
satvikpendem · 2 years ago
Dan Abramov replied to those as well. Personally, the purity of the React model with bringing in only local rather than global state in every function is what appeals to me. Even hooks are still local state, if you change the value in useState, you're not going to suddenly have something change elsewhere, where it wasn't explicit where you changed it.
dmitriid · 2 years ago
useEffect, useContext, and usSyncExternalStore are no longer about "local only".

And you never use only local state. You advocate for Redux in a different comment which is literally a global state where you are going to have something suddenly change somewhere from the point of view of a component.

dmitriid commented on ChatGPT broke the EU plan to regulate AI   politico.eu/article/eu-pl... · Posted by u/kvee
vishal0123 · 2 years ago
I have hard time believing it is not intentional. I think Europe could easily enforce consistent UI which could be automated through ad blocker, but now they know that most companies would rather stop serving Europe than not track users for ad.

Dead Comment

dmitriid commented on ChatGPT broke the EU plan to regulate AI   politico.eu/article/eu-pl... · Posted by u/kvee
int_19h · 2 years ago
Czechia is a European country you want to look at for an example that you can have gun laws that allow civilians to own handguns and carry them for defensive purposes without problems.

US is somewhat unique in the Western world across the board - no public healthcare, generally poor social safety net etc - which means that exercises in causal linking of those unique traits to outcomes are wild guesswork, if one is taking a charitable perspective. A non-charitable one is that people mostly just cherry-pick things that compare favorably for whatever political cause they're advancing, and will often outright refuse to believe a similar comparison that is contradictory.

dmitriid · 2 years ago
> Czechia is a European country you want to look at for an example that you can have gun laws that allow civilians to own handguns and carry them for defensive purposes without problems.

Let's see:

--- start quote ---

A gun in the Czech Republic is available to anybody subject to acquiring a firearms license. Gun licenses may be obtained in a way similar to a driving license – by passing a gun proficiency exam, medical examination and having a clean criminal record.

the issuing authority (police) firearm owners' database is connected to information needed for a background check and red flags any incidents that may lead to loss of license requirements. Similarly, health clearance by the general practitioner is needed for periodical renewal of license (every ten years).

* also very specific restrictions depending on license *

Obtaining the license requires passing a theoretical and practical exam.

https://en.wikipedia.org/wiki/Gun_law_in_the_Czech_Republic

--- end quote ---

Oh look, already more strict than many states in the US (and some states are busy removing any restrictions).

dmitriid commented on ChatGPT broke the EU plan to regulate AI   politico.eu/article/eu-pl... · Posted by u/kvee
akomtu · 2 years ago
You are right to feel insulted, because this relationship is upside down. The founders of "the land of the free" were aware of this problem and that's why everywhere in the founding documents they talk about "the people" that must have liberties, vs "the state" that must be kept on leash. The civil forfeiture problem shows just that: the state has insatiable desire to control the people, and it finds way to do so despite an elaborate framework to keep its tentacles short.
dmitriid · 2 years ago
And yet all of these issues, when they come up, are invariably happening in the "land of the free", not in the "totalitarian state dystopia of the EU and neighboring countries".
dmitriid commented on Activity Pub vs. Web Frameworks   danpalmer.me/2023-01-08-a... · Posted by u/danpalmer
fabrice_d · 2 years ago
IPFS would still be a good candidate for media attachments in Mastodon, potentially saving quite a bit of resources in bandwidth and storage.

The performance of ipfs gateways has improved a lot lately, so even without a native ipfs:// protocol handler that could work nicely in clients.

dmitriid · 2 years ago
If no one is paying, content on IPFS will disappear, and very soon.

u/dmitriid

KarmaCake day7372February 19, 2008View Original