TheDoctor

joined 7 months ago
[–] [email protected] 2 points 13 hours ago

Rhizomes stay winning

[–] [email protected] 13 points 17 hours ago

Put Netanyahu, Assad, Erdogan, Khamenei and their cabinets and top people from Hezbollah in Hague then we can talk.

So what you’re saying is Assad must go? who-must-go

[–] [email protected] 60 points 20 hours ago (21 children)

Now if he could start making cuts to the military…

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

The dude who admitted on national tv to never washing his hands? Lmao

[–] [email protected] 0 points 4 days ago

Wasn’t this election significantly less close than 2020?

[–] [email protected] 22 points 6 days ago

Reading through the specifics of what the guy’s said and done, clearly a good move

[–] [email protected] 11 points 1 week 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 week 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 1 week 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 1 week 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 1 week 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.

 

I’m thinking of learning it

 

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 ›