Yeah but The Incredibles is basically Randian propaganda about how the unexceptional are intimidated by exceptional people and force them to perform inadequacy for the comfort of others and how this is a net loss for society.
Yeah but The Incredibles is basically Randian propaganda about how the unexceptional are intimidated by exceptional people and force them to perform inadequacy for the comfort of others and how this is a net loss for society.
Technology is great to discuss because it’s just logic and facts and objective arguments. But bring in politics and it becomes a mess and that’s the problem with this divide in the privacy community.
Good post in general, but I disagree with this in particular. All technology is political. Not in a Democrat/Republican way but in a “how do we distribute resources within society?” way. Not to mention a big selling point for privacy tools is that they can be used by political dissidents. I think a problem does arise when a community manages to fool itself into believing it’s apolitical when what it’s really done is develop an orthodoxy to shut down political discussion.
Neither of those things are going to break the country. It’s a matter of priorities. Dems sell themselves as the adults in the room who are going to fight against fascism. And this is what Biden is doing instead.
“Oh, they print in that order? That’s weird.”
I did both of these at once last week.
Added a breakpoint. Debugger didn’t break.
Added an echo "here";
. Debugger didn’t print.
Added a throw new Exception('fuck');
. Debugger didn’t throw.
Stepped through. Debugger wouldn’t let me step in.
It took me almost an hour to realize it wasn’t the debugger’s fault and that a variable I thought was guaranteed to be truthy at that point was actually falsey due to upstream changes in a spreadsheet parser. I felt kind of stupid for not trusting the debugger at that point.
For context: these are the original lines
Thank god
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.
Beat me to if
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
Statistically, this makes your code better
Yeah…. I’ve definitely been the next guy on a couple bad regexes that I wrote
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.
Then it breaks years after you’ve left and someone has no choice but to touch it
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.
Linux installs have gotten so quick and painless over the past decade or so. Usually just following a GUI, waiting like 5 minutes for the install, and suddenly you’re booted into a fresh desktop.
This does literally nothing to refute the interpretation. I could care less that the director heard the Rand comparison and thought that meant people thought he was a Republican or whatever.