390 karma · joined Jul 13, 2013 (13y ago) · 73 submissions
BTC: 14XGBG7NcZgqZ7ER4sFmVJAkniZGBFu644 LTC: LPvzKSRtecQRv5AgC4gNtPwkZTFK5UuCwq
comment 11y ago · link · parent
I know this isn't a popular opinion, but these correctness issues really matter. For example, you can see the impact these choices in the JVM and the standard library had on the Scala community, ultimately forcing Paul Phillips to fork the compiler.
comment 11y ago · link · parent
For example, because the generics are just sugar for casts, you can't specialize them. Because you can't specialize them, you have to put behavior in the "wrong place". Take for example a hash map from Double -> T. Because IEEE floats don't actually form an equivalence class (NaN != NaN), they don't make great keys to a hash table (if you put NaN in, you can't get it out). But, rather than specializing the hash table for floats to give special NaN handling, Java had to make Double(NaN) == Double(NaN), so when they're boxed, they do form an equivalence class.
And if that were the only inconsistent behavior in primitives versus their boxed counterparts, that would be great...
EDIT: To those who downvote, would you discuss your objections? I understand that I may come off a bit caustic, but having been burned by the myriad correctness issues in Java, it's hard not to. These aren't abstract problems that don't come up in practice -- for a public example, look at what Paul Phillips has to say about the JVM and standard libraries.
comment 11y ago · link · parent
People defend it, and it hasn't been taken out in 1.0, but it seems like an all downside trade.
I see the value of Easter eggs, but the fact that this issue keeps coming up should be enough of a sign that it isn't worth it in this case.
comment 11y ago · link · parent
Of course, the larger problem isn't the anonymity of the authors. It's why the bible should be accepted over any other text. Perhaps it should, but that would have to be argued separately.
comment 11y ago · link · parent
One of the classical ideas in epistemology is the justified true belief theory of knowledge [1]. This has flaws (see: the Gettier problem [2]), but it's a reasonable approximation. Obviously what qualifies as justified is a debated topic, but it's generally agreed that "no justification" is not a justification.
comment 11y ago · link · parent
Also, in this particular case, it seems that the people interested in that sort of thing could figure it out anyway. Obscurity isn't security.
comment 12y ago · link · parent
In fact, these are widely debated questions. Materialism is only one of many philosophies that seek to answer these questions (e.g. dualism). Be careful about accepting answers like that if you haven't examined at least the major alternatives.
comment 12y ago · link · parent
You can go through life upset that the world doesn't work the way it "should" - you can even refuse to participate like the original poster. But you will generally have a worse outcome, so is it worth it? Why not play along, just a little?
Same thing goes for: dressing up (why should it matter if I'm in a suit?), sending thank yous (why should it matter if I already said thank you?), and just about any other social grace.
comment 12y ago · link · parent
Sloppiness like this wouldn't fly in actual finance. It would get you fined and possibly more. Lacking any sort of internal controls, even something as simple as balancing your books and verifying all transactions... It's shocking and negligent. Even more so for a YC company. Shame on you.
comment 12y ago · link · parent
For me, this sentence captured the entire article. Of course the wages are low-- the jobs require no skills and have been largely automated by Kiva et al.
It's hard to argue that performance pressure is a bad thing -- logistics is an industry where performance matters. And again, the competition is robots.
Complaining that contracts are short term does have some legitimacy. That said, it's clearly a seasonal business; do the unions honestly expect them to hire people year round when they just aren't needed?
I really want to be on the side of the people, but I'm afraid that asking for more money/longer contracts/etc. is just a way to make the automation even more compelling.
comment 13y ago · link · parent
As far as maintenance, it's unreasonable to expect that you could have a zero maintenance configuration. What other software does that? Your operating system doesn't. Your browser doesn't either. Nothing is immune to entropy.
comment 13y ago · link · parent
As far as I can tell, a lot of people assumed it worked like a SQL database. It doesn't, which disappointed them. I'll even admit that some of the original defaults like the write concerns didn't really make sense as defaults. But that was all in the introductory documentation. Major subsystems like databases deserve at least a skim of the documentation if not a full read; if not up front then at least before putting them into production.
comment 13y ago · link · parent
* didn't read the manual
* poor schema
* didn't maintain the database (compactions, etc.)
In this case, they hit several:
" Its volume on disk is growing 3-4 times faster than the real volume of data it store;"
They should be doing compactions and are not. Using PostgreSQL does not avoid administration; it simply changes the administration to be done.
"it eats up all the memory without the possibility to limit this"
That's the idea -- that memory isn't actually used though; it's just memory mapping the file. It will swap out for something else that needs the space unless you are actively using all the data, in which case you really are using all your memory. Which is why you should put it on its own server...
"it begins to slow down the application because of frequent disk access"
"Finally we sleep quietly, and don’t fear that mongodb will drive out redis to swap once again."
You should be running Mongo on a server by itself. At the very least, if you're having disk contention issues, don't run it on the same server as your other database.
I'm not sure you always need to read the manual for everything, but for your production database, it's probably worth it.
comment 13y ago · link · parent
Also, it's demonstrably less safe to give your Bitcoin wallet to a site than to give your cash to a bank. To imply that the security and insurance of these sites is comparable to banks is laughable -- you frequently hear about sites getting hacked and losing all of their BTC.
Of course, banks have other problems (depending especially on how you view the Fed), but disingenuous claims like this do nothing to help Bitcoin.
comment 13y ago · link · parent
In all seriousness, if you really believe this, I suggest you pick up a copy of that book. History doesn't repeat itself, but it does rhyme, and you'd be surprised just how similar this time is.
[1] http://www.amazon.com/This-Time-Different-Centuries-Financia...
comment 13y ago · link · parent
Really, it would be best if there was some way to retain the original commits while rebasing to clean the history. Time for a new DVCS?
comment 13y ago · link · parent
comment 13y ago · link · parent
Tangentially, the best side effect of HFT seems to be that a lot of technical people have become more sophisticated in understanding incentive structures and contracts. I wonder how that affects funding decisions for startups of the ex-HFT crowd.
comment 13y ago · link · parent
Honestly, how can people on HN actually be this against reading? Especially things that are really important? Sure, don't read the contest rules for your McDonald's monopoly. But if the data for your livelihood depends on something, there's no excuse for not reading the documentation.
comment 13y ago · link · parent
You don't need to read every word of everything, but some things are worth it. Do you sign contracts without reading them too since it's a "terrible use of" your time?
comment 13y ago · link · parent
Any time I deploy something as critical as a database, I carefully read about what it does and how it works. Not doing so is like signing a contract without reading it.
comment 13y ago · link · parent