7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 10y ago · link · parent
To figure out what to learn next you have to have some kind of filtering criteria or you will just be randomly jumping between technologies (which isn't a terrible idea for beginners, but would get highly wasteful for experts).
comment 10y ago · link · parent
The reason is that the optimizer reorders operations. So, a tricky person can write the query in a way that, for example, throws a divide-by-zero error if someone's account balance is within a certain range, even if they don't have permission to see the balance. Then they can run a few queries to determine the exact balance.
RLS builds on top of something called a "security barrier view" which prevents certain kinds of optimizations that could cause this problem.
It also offers a nicer interface that's easier to manage.
comment 10y ago · link · parent
Two servers independently committed conflicting transactions, which is always a possibility for multi-master in the general case. You can't have independence and dependence on the same variable at the same time.
Now, maybe BDR could do better for the case the author is concerned about, but the author hasn't explained what it should do and why it's better.
The author seems to want the entire conflicting transaction to be rejected, but it's already been committed on the remote node so I don't see how that helps. They will never be back in sync again until you sort it out.
You should use BDR in cases where you can come up with some reasonable conflict resolution. For instance, allow inventory to go negative, and inform one customer of a delay with their order.
comment 10y ago · link · parent
Even high earners spend maybe 25% of their life as high-earners and the rest of their life as low-income. That does not mean poor, just low-income. They might be college students, PhDs, doctors in residency, or just building up their careers still.
comment 10y ago · link · parent
Microkernels are basically solving an engineering problem. That's exciting when engineering is the bottleneck holding up a bunch of really innovative ideas.
So what are those amazing kernel ideas being held back by engineering difficulties?
comment 10y ago · link · parent
The problem is that early adopters have a choice: python3, or a completely different language. And there are a lot of good languages to choose from, and early adopters are a more radical by nature.
That's why breaking backwards compatibility is almost always worse than it looks like on paper: the early adopters you are counting on to get you through the transition are also the most likely to leave your platform completely.
comment 10y ago · link · parent
I do not feel competent to take part in a decision about the reserve requirement.
I guess you could set up a system where you delegate your vote to a third party on an issue-by-issue basis. An interesting thought experiment, but quite a few things to work out. My guess is, at the end, it would be similar to the system we have.
comment 10y ago · link · parent
I think the right approach is to compliment specific groups and people and behaviors; and criticize only behaviors. The specific people/groups who are behaving well will value the personal credit and build on it; the specific people behaving badly can take impersonal criticism without feeling the need to be defensive.
Occasionally naming names is warranted in criticism, but that's the exception.
comment 10y ago · link · parent
Finding moral fault in others is often just a way to explain their own lack of accomplishment.
Not always, of course. But something to be very careful of.
comment 10y ago · link · parent
I think a lot of that is due to the untyped nature of unix. Everything is text, so you constantly have to specify details about what the actual input is.
Not sure if that applies to lisp or not.
Granted, that's not the only reason.
comment 10y ago · link · parent
For instance, if there's some kind of minor obstruction, a human may decide to drive over it or go into the oncoming lane or get out and pick it up or follow an officer's instructions.
comment 10y ago · link · parent
Supply and Demand says the opposite. The supply curve slopes upward, meaning that a higher per-unit price is required when the aggregate supply is higher.
Economies of scale apply in some situations, but people generally place way too much weight on them.
comment 10y ago · link · parent
I'm open to other ideas too, but that seemed like the simplest way to get the error handling out of the way.
Ordinarily I try hard not to complain about syntax, but this seems to cause people to use .unwrap() where it's not safe (like a library).
comment 10y ago · link · parent
For instance, we typically think of gang shootings as violence caused by greed or desire for power. But it's also common to frame it as a moral issue, such as "they shouldn't have been operating in my territory without paying" or "they were going to double-cross me".
Why do we take the moral explanation at face value? Just because the ostensible reason is morality doesn't mean that's the real reason. They may have already decided what they were going to do, and rationalized it with morality later.
comment 10y ago · link · parent
You could imagine a college student from a middle-class background earning very little from 20-30, then being middle-income from 30-40, then upper-income from 40-65, then retired until 85.
Their independent life (20+) is 65 years, of which 30 are low-income, 10 middle-income, and 25 high income.
comment 10y ago · link · parent
I'm not saying this is what's happening, but based on the numbers and definitions, it's possible.
In general, this kind of snapshot definition trying to capture the middle class is misleading. You should follow individuals over their life to see whether they are thriving or struggling.
This is not even a class mobility issue. It's more of a life cycle issue.
comment 11y ago · link · parent
slowly?! We've amassed huge collections of detailed knowledge in mere decades, and it's all searchable and discoverable.
"not one big pool of knowledge"
The real fantasy is centralization and taxonomies of everything. Distributed isn't a lazy thing we've settled on; it's the best approach. Each island grows about as far as it makes sense, and connects to other islands where it makes sense.
Sure, it may be imperfect and some datasets are hidden in corporations, but open data is certainly a healthy and growing ecosystem in no danger of extinction.
comment 11y ago · link · parent
But the same principle applies to government social programs. All money comes with strings attached.
comment 11y ago · link · parent
By that I mean that learning something about programming is a prerequisite for such a wide range of things that you will be left in the dark without basic programming knowledge.
Machines have been complex for a long time, far too complex for everyone to understand. But generally, even a novice can understand any one particular detail if they care to. Engines are complex, but you can quickly read up on the cycle it goes through, and get a vague understanding.
Except how the valves are controlled, because now those are computer-controlled, so you must know how a computer works to understand. Before, you could have asked some questions and got an explanation about push rods or cams or something, and walked away feeling comfortable with that explanation.
So programming has become a fundamental dependency to understanding a wide range of things
comment 11y ago · link · parent
Assuming your correct, it probably has a lot of other contributing factors. The federal government gets by far the largest share of tax revenue, but a lot of transportation issues are felt more at the state and local level.
I doubt transportation problems are due to a lack of federal tax revenue. Keep in mind most governments in the world are smaller than a big US state. Incentives and priorities get distorted a lot when you have one entity responsible for trillions of dollars of annual expenditures.
comment 11y ago · link · parent
That doesn't seem like a bad trade to me, especially since rich people have fairly low marginal tax rates.
comment 11y ago · link · parent
Program something in it, and if you get a good feeling, then probably a lot of other people will too, and the language will take off.
Larry Wall is a linguist, and I think that is probably what sets perl apart more than anything.
But yes, it happens to have the kitchen sink, too.
[1] Unless you have hard requirements, like control over memory or runtime environment.