7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 11y ago · link · parent
It would be nice if they expanded on that. What other trends are at work, aside from technology, that might also coincide with this "decoupling". Globalization and immigration are two things that merit more discussion. Why do they think technology predominates?
comment 11y ago · link · parent
With postgres, I always had an explanation why it was doing so much work on every update, and why replication was so hard, and why checksums were impossible to implement efficiently, and why index only scans wouldn't work, and...
After seeing that all of these things were fixed by people who didn't think that way, I changed my mind.
This Go behavior is surprising behavior and non-deterministic. Changing a constant can have some bizarre action at a distance that breaks your code. It affects ordinary code even if the author doesn't care about these details. I really don't see anything good about it even if you do understand it.
comment 11y ago · link · parent
I think that should be:
"DO UPDATE SET description=excluded.description;"
And doesn't it also need an inference clause or constraint specification for DO UPDATE?
Please update example code to be self-contained, so that readers can copy/paste.
The example itself -- upserting product descriptions from another data source -- is a great one though.
comment 11y ago · link · parent
First, it's not teaching standard SQL, it appears to be teaching MySQL. That means any user who tries out any other system will immediately run into confusing error messages about the double quotes. Not ideal, and totally unnecessary -- sticking to standard SQL should work reasonably well in MySQL anyway (at the beginner level, at least).
Second, in the section "Creating Tables and Inserting Data", the teacher jumps into surrogate keys immediately. Again, I feel that is unnecessary and will just lead to confusion. The beauty of a relational database is that it connects with the real world; and having arbitrary numbers floating around destroys that beauty.
I really hate to criticize, because I really support the effort. Hopefully my feedback is useful.
comment 11y ago · link · parent
Things like assignment, pointers, variable/value confusion, etc., that trip up novices in any high-level language are fairly trivial to understand if you teach them with machine language.
People talk about a bimodal distribution in CS classes, and suggest that some people just can't learn these topics well. Perhaps I'm naive, but I have a hard time believing that they are incapable of learning these fundamentals if presented using machine language.
comment 11y ago · link · parent
If you haven't found it already.
comment 11y ago · link · parent
Success is not random. Therefore, if you are successful, there is something different about you. Therefore, you are a monopolist. Therefore, competition can't make you successful.
But that's not very helpful. Every business on the planet can claim some kind of differentiation -- maybe their supply chain is more efficient, or their company structure is superior, or their sales channels are smarter, or...
More differentiation might be "better" in some sense, but differentiation is often decided after the fact. It wasn't obvious that Google was differentiated until they took over the market.
comment 11y ago · link · parent
I think most people would agree that the video should come into evidence if someone ends up dead. Also, most people would agree that videos should not all be released publicly. But there are a lot of difficult situations between those two extremes.
Even if the rules about releasing footage are quite restricted, I think body cameras will influence the behavior of police. Not always for the better necessarily, but I think they will reduce the number of fatal police shootings.
comment 11y ago · link · parent
Isolated preemptible processes are a more successful abstraction than GC or threads. Why are threads the comparison point for concurrent abstractions?
comment 11y ago · link · parent
(Of course, this is pure speculation based on a third-hand one-sided account.)
If so, it has nothing to do with discrimination.
comment 11y ago · link · parent
It would be foolish for a client to issue a COMMIT and then assume the transaction aborted because of a connection drop. The client should wait until the connection can be reestablished and determine the real transaction state before making a decision based on it.
It's the same issue as with a power failure during fsync. The durability of that transaction is indeterminate, but it doesn't matter because the system is down. Before the system comes back, it will go through recovery, and either find the commit record or not, thus getting back to a determinate state.
comment 11y ago · link · parent
If you want to avoid that kind of problem, use 2PC.
Do you (or the author) see this as a bug, or just something that might surprise people who haven't thought through the guarantees?
comment 11y ago · link · parent
Source? It seems contrary to what wikipedia says on the subject:
"The northern Central Valley has a hot Mediterranean climate; the more southerly parts in rainshadow zones are dry enough to be Mediterranean steppe or even low-latitude desert." -- http://en.wikipedia.org/wiki/Central_Valley_%28California%29...
comment 11y ago · link · parent
He's helping people, and probably learning in the process, which is great. But it would be even better if he could add a touch of "help people help themselves"; otherwise I'm concerned that the OSS process will feel a little more sterile.
comment 11y ago · link · parent
For instance, try comparing the next person you meet with a hyena. It's not likely to be taken as a neutral thought experiment.
comment 11y ago · link · parent
PostgreSQL generally builds things from the bottom up -- first working really hard to get the fundamental infrastructure right, and then the utility starts falling into place.
This has a few advantages:
* The fundamental infrastructure tends to be more general, so many different functional improvements come out quickly after the infrastructure is in place.
* It forces everyone involved to think through the edge cases first, leading to a more robust feature and a better-tested feature.
* When things go wrong, all of the parts make more sense individually, so it's easier to understand what happened and fix it.
* Eventually, the usability issues are addressed in a way that's not dependent on a lot of black magic.
Anecdotally, when things go wrong in $MAGICALLY_REPLICATING_DB, they tend to go very wrong, very fast. I am skeptical by nature, so I generally assume that $MAGICALLY_REPLICATING_DB glosses over a lot of the finer points, which don't get exercised in a normal testing environment. I haven't presented any facts here, so you may disagree.
A lot of people share my skepticism, and are willing to put up with a few rough edges in the usability as long as the pieces make sense and they feel they can understand and trust them. I was at a presentation by Instagram, and replication was one of the primary reasons they went with postgres. They used a tiny engineering team (one and a half engineers working on the database) to scale to tens of millions of active users (also using sharding; another thing that is harder to use but easier to understand in postgres).
comment 11y ago · link · parent
I realize that prolog is a language, but it's much harder to learn things when they are purely abstract. A good implementation and a good library go a long way.
I don't have a problem with non-mainstream languages. I like erlang.
I tried learning haskell, too. I didn't get hung up on monads; I ran into a wall when I found out there was no good way to use haskell as an embedded language or call a haskell library from something else without pulling in a big runtime (which interferes with non-trivial host applications). Correct me if I'm wrong.
comment 11y ago · link · parent
I, too, have moved away from most kinds of news. I only read tech news, and I could make an argument that tech news is more actionable. But even that, I spend less time on fewer sites. I used to look forward to a chance to catch up on HN, now I read it mostly during moments when I'm waiting for something else.
So, what am I (and the author) missing? Or what is society missing because we don't participate in the news cycle?
comment 11y ago · link · parent
I guess you are saying that deaths-per-trip is an even better number. That would be interesting to see, I agree, but as an additional number, not a replacement.
comment 11y ago · link · parent
Also, it doesn't offer a good way to compare against things like air travel.