1,787 karma · joined Apr 7, 2008 (18y ago) · 360 submissions
I'm also a co-author of the Gosu programming language:
http://gosu-lang.org/
My e-mail is akeefer at gmail
comment 16y ago · link · parent
I think it's your last point that's the most important one here. From a purely pragmatic standpoint, lawsuits are a massive, massive distraction. The startup landscape is littered with the carcasses of startups that got distracted by things other than building and selling their core product, and who thus ran out of cash before achieving any kind of revenue stability. Distractions like this can easily be the death of a startup, and they should be avoided wherever possible. Even if you win the lawsuit, by the time it's all over you'll be far behind where you should be in terms of product development, which will probably more than offset any net win in terms of a legal settlement.
comment 16y ago · link · parent
I definitely agree, and that implies that the right question to ask is not "should there be IP rights?" but rather "what rights should be associated with IP?" How you answer those questions depends on your perspective and probably the origin of your country's IP laws (are they explicitly pragmatic, as in the US, or rooted in a theory of natural/inherent rights, as in other countries?), but will undoubtedly involve questions about pragmatism (what's the cost/benefit to society of having a particular type of right) and about fairness or ethics in general.
Starting from that perspective and then arguing why particular rights are either unethical or harmful to society makes for a much more compelling argument than just railing against all IP, as (unfortunately) some activists or commentators tend to do.
comment 16y ago · link · parent
The other primary difference, and the real problem with patents, is that intellectual property laws can give you de facto rights over the product of someone else's labor; if I independently invent something that someone else has already invented, they own what I just made and I have no right to it. That's what gets most software developers in trouble.
The problem is that it's difficult to distinguish between independent invention and theft, because the goods are non-rival. If I accuse someone of stealing my car, it's pretty easy to verify that A) I no longer have the car, B) the other person does, and C) it has the VIN number of my car. If I have code that does X and so does someone else, how do you tell if it was stolen or independently arrived at, or kind-of-stolen in the sense that you arrived at it independently but only after you heard that I had done something kind of like X? As it turns out, patent law doesn't bother to try: it just says that if it does X you've stolen it, end of story.
That's why patents are supposed to be non-obvious: the chance of independently coming to the same solution should be low enough that, in the case of some kind of duplication, you should be 99.9% sure that it's due to theft. As soon as that breaks down (as it does with software patents), you have all kinds of problems that don't have any analog in physical property and that the law is totally unable to cope with.
Painting all IP with the same brush and saying it should be abolished is surely ridiculous, but equating IP with physical property is also a fallacy. They're fundamentally different, even if legally they can be treated similarly in many cases, and they need to be understood, treated, analyzed, and justified differently.
comment 16y ago · link · parent
I really took issue with your initial comment because "pointing the finger" has some connotation of assigning blame unfairly or unreasonably; I 100% agree that companies with a culture of blame are poisonous, and that people should err on the side of accepting too much responsibility rather than too little, and do their best to not pass blame on to other people.
There's certainly a line, however, across which I think it's reasonable to call someone else out. Where that line is depends on the situation and your relationship: the bar for doing it within your team is astronomically high (you should basically always deal with those things internally), within even the same company is still incredibly high (likewise), but it's lower when it comes to vendor relationships. Where you draw the line is probably different from where I draw it.
So while I agree that he should have waited, I don't think that publicly expressing his anger with his hosting provider after the fact would count as "pointing the finger" or "passing the buck" or otherwise indicative of a lack of personal responsibility; to me it would be understandable frustration and anger out of having been so dramatically let down by a third-party you were contracting with. And honestly, that sort of negative public publicity is one of the strongest checks we have on companies, be they hosting companies or retail stores or any other type of establishment.
More to the point: even if he did have backups, if they really lost his data and were unable to recover it themselves, I think he'd still be justified in outing their failure publicly after the fact. But again, you're definitely right that he should have waited and given the host a chance to resolve the issue before saying anything.
comment 16y ago · link · parent
That's not too far from saying that it's your fault if you get hit by a car while walking across a crosswalk because you didn't jump out of the way fast enough.
They failed, they failed in a catastrophic way, and they deserve to have it made public knowledge and to lose business over it. He should do a better job backing up his own stuff, but he's right to be angry with his hosting provider and to call them out.
comment 17y ago · link · parent
Unfortunately, people do often attempt to start from the pattern, which gives the whole idea of patterns a bad name, since most people's primary exposure to them comes from Some Guy In The Office Who Just Read The Gang Of Four Book And Now Tries To Use Patterns For Everything He Does. And everyone, rightly, hates working with that guy or his code. The same thing happens with XP/Agile/TDD, where most people's exposure to them is from some annoying zealot rather than someone a little more experienced and pragmatic.
comment 17y ago · link · parent
To use their example, it should be much more like:
Collections.sort(list, \str1, str2 -> str1.length() - str2.length());
instead of:
Collections.sort(list, #(String str1, String str2) { return str1.length() - str2.length(); });
There's no technical reason you couldn't do the former in Java (and their proposal seems to infer the return type just fine?), but no one involved with the Java language seems to really value conciseness.
comment 17y ago · link · parent
That said, the BGGA proposal is a bit of a disaster in my opinion: the distinction between "restricted" and "unrestricted" closures, along with non-local returns, just makes no sense. My assumption is that they want to use closures for things like control structures, which they're just totally inappropriate for, rather than as just anonymous functions, which is what they really ought to be.
Basically, it's what they did with generics: take a relatively sensible concept, then add a bunch of baroque edges to it for no good reason. Honestly: => and ==> are almost equivalent things with totally different semantics as far as control structures? Really?
People are going to understand that about as well as they understand why they can't add an Object to List<? extends Object>, or why they can't pass a List<String> back from a method that says it returns List<Object>. By which I mean, not at all.
comment 17y ago · link · parent
http://www.straightdope.com/columns/read/805/did-a-state-leg...
Apparently the trend of legislators voting for things that sounded good but that they didn't understand in the least has remained in changed for at least the past 112 years.
comment 17y ago · link · parent
What does that mean, exactly? Any code you write is obviously in the service of some goal. Some code, like a method to split a String that's part of a standard library, is its own end: it's a complete API, so it should be tested as such.
A whole lot of other code, though, is in service of some larger component. Maybe you've got 15 classes that all work together to form the e-mail component, and hopefully only one or two of those classes really encapsulate the external API (whether it's an explicit API or just implied) exposed to other components, and the rest are logically part of the implementation. So instead of unit testing every one of those, you get more mileage testing at the level of that API. That lets you change the implementation of that component without having to rewrite a bunch of tests, and the tests themselves then become a much clearer documentation of that API.
But plenty of times, the overall API is so complex that there's a combinatorial explosion if you try to test at that higher level; in that case you have to find smaller chunks that have few enough paths through them that they can be tested thoroughly. Sometimes those chunks are the level of a single class or method; often they're still a collection of things.
Rather than starting from the classes and say "let's test everything," you look for logical groupings that form logical or explicit APIs, say "let's test this API," and then push the tests down a level only insofar as you can't test that API thoroughly enough to execute all the code paths in the related code.
To put that yet another way: test APIs, not implementation details, and the more things you can treat as implementation details, the less friction your tests will exert on your development process and the more value you'll get from them as a result.
comment 17y ago · link · parent
comment 17y ago · link · parent
comment 17y ago · link · parent
I might suggest that the longer you're with a company the easier it is to discern success from failure, at least. Something that looks like a good idea in year one might look terrible by year three or four. I have no idea how that applies to your personal experiences, though. I haven't yet left my first startup-employee experience (after more than 7 years), so perhaps it's too early for me to say I've learned that much, since I haven't really had to put that knowledge to the test (except when it comes to correcting problems and making forward-looking decisions). I certainly feel like I've seen a lot of things done well and a lot of things done not so well, and like I've been around long enough to see many of those decisions play out for a fairly long time. I don't think I would be able to say that if I'd only been here for one or two years.
On some level, though, you personally often have to make mistakes in order to learn from them; as much as we all want to learn from the mistakes of others, it's hard.
So perhaps I'm being overly optimistic and will be doomed to a future of repeating mistakes that I should theoretically know better than to make . . . ask me again in ten years, I guess . . .
comment 17y ago · link · parent
There are invaluable lessons that you can really only learn by going through those things, and you can still learn them (and perhaps even be more objective about it) when you're not a founder.
And if your startup isn't transparent enough that you can learn those sorts of lessons, you should consider that a major strike against it.
comment 17y ago · link · parent
comment 17y ago · link · parent
comment 17y ago · link · parent
If someone says "We're actively developing this" I'm not going to just assume I'm being mislead and say, "Sure, but do you have code?" The statement implies an answer to the question, so I'll feel like I already have an answer to the question, and I'd be wrong.
So no, it's not a direct answer to a question, but it's meant to imply an answer to the question so people don't ask anything further. Deliberately attempting to mislead people is just as bad as outright lying in my book, and I can't see the way that statement is worded as anything less than an attempt to mislead the potential customer.
comment 17y ago · link · parent
comment 17y ago · link · parent
Part of the reason it's so hard to sell software is that so many people have historically sold vaporware, which makes life harder for those of us that go out of our way to be honest with customers about what's implemented, what's a mockup, what's planned, and what's promised. Customers don't trust us because they've been screwed over by decades of shady sales guys.
Please, let's not contribute to the horrible, shameful record of software companies lying to customers in order to get sales. (And yes, I personally count "deliberately misleading" and "outright lying" as approximately the same thing: if lying about X is unethical, so is deliberately misleading someone about X.)
comment 17y ago · link · parent
The places I've seen TDD lead to less-than-desirable design is when some larger problem is broken into such tiny pieces with so many interfaces that it becomes hard to read through the code and follow the flow of control. That's certainly testable, but often times I personally get as much mileage out of writing tests one level up, against some higher-level abstraction or API that those other things are all components of, and not being so religious about breaking up all the little parts. In my experience those slightly-higher-level tests (they're not even "integration" tests, since they're still strictly against one logical component) tend to provide the same amount of value in terms of preventing regressions while requiring fewer compromises to make the little parts testable and giving more flexibility as to future refactoring. Essentially, you're treating a whole bunch of classes/parts as internal implementation details.
comment 17y ago · link · parent
There's that ever-elusive "it improves design" argument for TDD, but that one's far harder to prove either way, and I've personally seen it cut both ways: sometimes things end up more nicely decomposed, and sometimes they end up wayyyyy too decomposed.
comment 17y ago · link · parent
There's a ton of overlap as far as techniques (threads, monitors, locks, actors, and so on), but those two high-level goals have very different optimal strategies, and different languages and programming paradigms have different strengths and weaknesses relative to those two. Concurrency is generally more of a high-level consequence of the core algorithm you're using; parallelism is a low-level implementation detail around how a given function or process completes. Concurrency isn't generally going to be retrofitted automatically by the compiler; parallelism can be deduced either statically or at runtime or explicitly signaled by the programmer.
comment 17y ago · link · parent
According to pragmatism, the truth of an idea is at least partially determined by the effects of that idea.
comment 17y ago · link · parent
In other words, with unit tests the linkage between the code being tested and the test tends to be pretty tight; with UI tests it tends to be very, very loose, and that makes the tests correspondingly more fragile and much harder to debug.
We essentially do typesafe metaprogramming on our web UI that generates compile-time-checked constants for all the labels, buttons, etc. so that our tests don't compile if the UI changes, which has gone a long way to keeping the tests stable; it's the best solution we've come up with, but it's a huge investment, and our attempts to do testing of our Swing client have met with less success so far.
comment 17y ago · link · parent
While burnout and recruitment are both good reasons (you don't want core people to burn out and leave, and people don't want to come work for a bunch of slave-drivers), the less-often-cited reason to not work "harder," and one of our explicit motivations for it, is because often times saying "we'll just work harder" prevents you from having to make tough prioritization decisions, and that can mask bad decisions that have been made and that are costing you time.
As with all rules, there are exceptions, and there are times when you just need (or want) to crank hard on something. But in this case, we've found that the constraints imposed by working normal hours helps to improve your decision making and focus your priorities.
comment 17y ago · link · parent
A patent is a very, very, very sharp tool: it grants someone monopoly rights to that "invention" for 17 years (or 20, if it's international). Anything that most people could come up with inside 2 days, or even 2 weeks, of thinking about a problem shouldn't be patentable; that's ludicrous, and counts as "obvious" in my book. Things that are obvious combinations or extensions of existing inventions aren't supposed to be patentable.
So a lot of this software/business patent nonsense would go away if the patent office would apply a more ruthless standard of patent obviousness. Most software patents are things that at least 10% of the engineering population would come up with inside a week of trying to solve the same sort of problem; many of them are the sort of thing that 90% of engineers would come up with inside 4 hours. That doesn't apply to RSA, or to MP3, or to most algorithmic things, but it does apply to things like "method for holding online auction" or "method for allowing purchaser to assemble a shopping cart" or the other ludicrous sorts of things people patent.
So I totally agree, RSA should be patentable: it's a non-obvious invention, and if you're using RSA without their permission there's a 100% chance it's because you stole it/reverse engineered it. But most software patents are the sort of thing you accidentally stumble onto in the course of solving the same sets of problems, and patents were never intended to (and should not) preclude other people from solving those same problems. You can't patent the idea of holding an auction in meatspace, but suddenly because it involves software it's patentable? Etc. Most software patents are much closer to business process patents than to mechanical patents.
Personally, I'd settle for simple ruthless application of the obviousness principle. The USO PTO granted more than 40,000 software patents last year. If you only included things that were really novel, that a decent engineer wouldn't come up with on their own in a few days or weeks of thinking about a problem, and that you'd have a hard time accidentally infringing, I bet that number would be more like 500.
Keep in mind, there are plenty of other things that aren't patentable: story ideas, for example. So yes, you're going to draw an arbitrary line about what's patentable, but that's the job of congress and the patent office: to draw that line in the place it maximizes utility.Remember, there is no natural right to a patent in the US. Congress has the power to determine what's patentable and what's not, and is explicitly directed by the constitution to do so in a way that maximizes progress. The way it's done for software hinders progress right now.
comment 17y ago · link · parent
It's amazing how many resources lawyers suck up, and how long patent lawsuits last (we were sued in December 2007, and we're still nowhere near trial). It's easily the sort of thing that can cost millions of dollars to fight, which is obviously the sort of expense that can put a startup out of business.
However, I'm not too hopeful anything will get done about it any time soon: it seemed from the discussion the other day that the HN community wasn't even solidly against them, and if this kind of community isn't, then the anti-software-patent movement clearly isn't mainstream enough to make any kind of impact yet.