Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions

Submissions

comment 15y ago · link · parent

"selling what you believe you can do"

People buy from startups knowing that you're a startup, usually. There are always ethical issues when it comes to selling, but I don't think that "ability to execute" is the biggest one, as long as you actually believe it could happen, and try.

"someone doing it with their own money and doing it with someone else's money mean two different things"

I think it's legitimate to point out that there is not a lot of personal money risk for the founders. They probably went without much income for a while, and work a lot. But if the startup fails, and they pick up a job afterward, they probably won't be in the negative.

I agree that "making big decisions" should not be equated with "taking a big risk". They are related but not the same.

comment 15y ago · link · parent

"the different engines provided are for different tasks"

You should think of them more like separate DBMSs that are tied together in one system. The semantics change depending on the storage engine, so they aren't just drop-in replacements.

"MyISAM for example supports fulltext indexes..."

PostgreSQL has supported full text search for a long time.

comment 15y ago · link · parent

DBMSs are complex things. Any DBA proficient in both systems can show you a query (and table layout) in PostgreSQL that outperforms InnoDB and vice versa.

comment 15y ago · link · parent

"How many people believe otherwise?"

That's kind of the point, I think. Stating an obvious fact is often used to suggest some kind of action. And it sounds like that happened here.

I feel bad for the guy, surely. He made a small mistake and paid disproportionately. But once you get branded as a cheater, even if by accident, then advertisers will run away from you.

TV isn't a good analogy, because it's a different business model, so this kind of cheating is impossible.

comment 15y ago · link · parent

It's not as much about clarity of communication as it is clarity of thought.

Also, a program is not a single message being sent to the computer. A program is revised over time, and testing helps ensure the integrity of the program through revision.

comment 15y ago · link · parent

To build a culture of quality, the best way to start is a mandatory code review system. Code doesn't go in until it's peer-reviewed by at least one person.

Code review is critically important: it instills a different attitude in the programmer (someone is going to read this, so I won't get away with sloppiness); and it puts the focus on readability. Tests provide at least two benefits to readability: the reviewer knows what the code is supposed to do (provides better context), and the reviewer also has greater confidence that you didn't break existing basic functionality.

Even without mandating tests, reviewers will soon start to return patches with comments like "Broken when X,Y,Z happen. Add a few tests around that tricky code path." Then, it will eventually escalate to general comments like "where are the tests?", because reviewers will get tired of testing basic functionality.

comment 15y ago · link · parent

Languages with powerful type systems do allow the programmer to ensure consistency without duplicating code, to a degree. And I suspect that it does reduce the testing burden substantially when used correctly.

There will always be some need for all of the following: static checking (e.g. compiler checking the types), tests, and code review. There's a simple economic reason for this: if you omit any one of those strategies, then the cheapest way to find the next bug will almost certainly be the one that you omitted.

You're right that tests are redundant (you could say the same thing about type annotations, perhaps), but redundancy is underrated. Redundancy aids readability, and it also helps catch mistakes when there's an inconsistency. If you put code and tests near each other, it might be helpful to think of it like: "<code>. In other words, <test>." Similar things could be said for type annotations, declarations, and constructors; or code comments.

comment 15y ago · link · parent

Interestingly, the same thing could be said about using a powerful type system or not.

It's easy to assume that the compiler errors you are getting are just wasting your time, forcing you to put arcane type declarations, annotations, and constructors around your code. But that time might reduce the testing burden, because the compiler can make more guarantees for you; and therefore it might actually save time.

comment 15y ago · link · parent

I am having trouble reconciling the following two quotations:

"[MongoDB is] so simple and natural to use from dynamic languages"

and:

"In my test code, I had an 'async' remove() call (ie. I didn’t wait for it to finish) and was then inserting new entries, and previous remove() happiliy removed them (all of them, or some, or none, depending on the race). Those were very confusing few hours."

comment 15y ago · link · parent

Honest question: does that really include all of your data? All the messages, comments, friends, any friend ID or contact info (email addresses, IM names, phone numbers, addresses, etc.)?

In other words, is it enough data that you can just export and jump ship to another social network without much interruption (assuming some reasonable transformation effort for the data)?

comment 15y ago · link · parent

"something like [Facebook] is practically required for most women to communicate over the internet."

Can you please elaborate? I honestly don't know what you mean.

Do you mean that women prefer to communicate in this particular medium?

comment 15y ago · link · parent

I don't think there is any common ground between the FSF and Facebook.

The FSF might use a different presentation for greater effect; but ultimately, the message is: the FSF doesn't want Facebook around any more. Period.

2593.

Exclusion Constraints are generalized SQL UNIQUE(thoughts.j-davis.com ↗)

2 points · by wireprotocol · 16y ago · discuss

1
8384858687