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?
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?
Now if he could start making cuts to the military…
The dude who admitted on national tv to never washing his hands? Lmao
Reading through the specifics of what the guy’s said and done, clearly a good move
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.
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.
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.
colden the relations with Israel
I thought this was a forum for Linux discussion, not promotion of fascists
What did they realize that they open sourced their product a decade too late for anyone to actually revive it?
I have every gog installer I’ve ever downloaded for this exact reason. You can’t rescind the bytes that are already on my drive.
I wasn’t insulted by what you said and I’m not a man
This is insulting as fuck. I grew up as a boy with plenty of reactionary beliefs because patriarchy is a fucking prison. And as I got older and got called out for it, you know what I didn’t do? Become a fucking fascist. I wasn’t pushed towards fascism. I was already reactionary and fascism would have required less work of me. That’s not the same thing. And it lets people off the hook to suggest otherwise.
dozen = 12 + 1; // one extra for the baker!
I got mad at this when I first saw it but then I remembered there’s some code at work that defines an hour as 50 minutes
When versioning and feature flags are too hard: just use git and hope for the best
My old senior used to do this before he got laid off and now I’m charge of code that’s littered with old commented out code and no way to know why it was commented out.
I often use comments as ways to say, “I know this is cursed, but here’s why the obvious solution won’t work.” Like so:
/**
* The column on this table is badly named, but
* renaming it is going to require an audit of our
* db instances because we used to create them
* by hand and there are some inconsistencies
* that referential integrity breaks. This method
* just does some basic checks and translates the
* model’s property to be more understandable.
* See [#27267] for more info.
*/
Edit: to answer your question more directly, the “why not what” advice is more about the intent of whether to write a comment or not in the first place rather than rephrasing the existing “what” style comments. What code is doing should be clear based on names of variables and functions. Why it’s doing that may be unclear, which is why you would write a comment.
Rhizomes stay winning