TheDoctor

joined 7 months ago
[–] [email protected] 11 points 1 day ago

Children throwing a tantrum because their team lost. Same libs who are always on about “I don’t know how to teach you empathy”

[–] [email protected] 32 points 1 day ago

If not every state is fascist, then the conditions for fascism must be more specific than the presence of a state

[–] [email protected] 2 points 3 days ago

In the way that’s common in languages like Java where you’re making a property read-only, yes. But there’s a whole protocol in Python called descriptors where you can override the . on a field. The most common form of these is class methods annotated with the @property annotation, which makes it so the method can be accessed as if it were a property.

[–] [email protected] 5 points 3 days ago (1 children)

Yeah. I can understand the use case when it’s something relating to keeping simple state in sync by replacing it with derived state. But this particular case was flushing a cache after each get, which made each get of the property non-deterministic based on the class’s state.

[–] [email protected] 10 points 3 days ago (5 children)

I helped a friend debug a script last week that was working inconsistently in really weird ways. I looked at the script and it was all event hooks littered with sleep calls. I told him he was basically fuzz testing his own script and then getting surprised when he found race conditions. Shit was wild. Also, sometimes getters in Python are a mistake.

[–] [email protected] 20 points 3 days ago

The US’s currently level of military aid is unsustainable, even for the most wealthy empire in history. Domestic production has been showing signs of not being able to keep up for a while now.

[–] [email protected] 0 points 6 days ago* (last edited 6 days ago) (2 children)

I use PHP daily. The only thing that seems overly magical on a cursory glance is Livewire, but I’ll probably end up using Solid for the frontend anyway.

 

I’m thinking of learning it

[–] [email protected] 1 points 1 week ago

spoilersShe got what she deserved

[–] [email protected] 8 points 1 week ago

colden the relations with Israel

doubt

[–] [email protected] 14 points 1 week ago (1 children)

I thought this was a forum for Linux discussion, not promotion of fascists

 

I just bought a handheld emulator (Anbernic RG35XX) and I’m now overwhelmed with options.

I’m also expecting to be destroyed by the games some of you were playing as children, but whatever. Anything PS1 and older is appreciated.

view more: next ›