Better HN
topnewbestaskshowjobs
Log inSign up

akeefer

1,787 karma · joined Apr 7, 2008 (18y ago) · 360 submissions

I'm a software engineer with Guidewire Software, and I pretty regularly publish articles on our development blog at http://guidewiredevelopment.wordpress.com/

I'm also a co-author of the Gosu programming language:

http://gosu-lang.org/

My e-mail is akeefer at gmail

Submissions

comment 16y ago · link · parent

That's true . . . but it's also true that if you want to have more equals to trade with, one good way to do that is to mentor younger employees, and that requires sharing time and knowledge with people who are not yet equals.

comment 16y ago · link · parent

> It's also not in their Plurk's interest to go legal as it will be a distraction from building software.

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

MLB does put their games online, but it's a pay service. Similarly, you can buy a cable/satellite package to watch out of town NFL/NHL/NBA games but those are all fairly expensive packages.

comment 16y ago · link · parent

I think you're saying, then, that starting from the question of "are there rights to intellectual property" is the wrong way to go about things; trying to make an argument that "you can't have rights to intellectual property because of X," as many people try to do, is rather myopic since it's demonstrably clear that you can indeed assign rights to IP, since the law does in fact do that, and is able to do so in a way that has a lot in common with other sorts of property rights.

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

I also don't agree with bundling all types of intellectual property in the same boat, but there is a fundamental difference: physical property is a rival, excludable good while intellectual property is a non-rival, non-excludable good.

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

Point taken regarding calling them out before the situation is resolved: it would be far more respectful to allow the provider a reasonable amount of time to correct the error before explicitly attacking them. In this situation, I can understand it a little more, as recovering the backups from various internet caches might seem like a time-critical operation, and it would be difficult to ask for help with that without some explanation of what's happened. That explanation certainly could be fairly vague, though. Once the situation is resolved, though, if the resolution is unsatisfactory I think it's fair to say so.

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

How is it pointing fingers if your hosting provider lost your site plus their backups of your site? They were being paid to provide a service, and they failed at it in basically the worst possible way (i.e. total data loss, rather than just downtime). Sure, he should have had his own backups, but how does the fact that he could have recovered better form his host's screw up change the fact that they screwed up?

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

Patterns are primarily useful when you refactor to a pattern once you've gotten through the implementation to the point where you realize that applying the pattern would improve the code you've already written and make it clearer/more flexible/easier to extend. Starting with the intention of implementing a given pattern is almost always the wrong thing; recognizing when you've inconsistently half-implemented something very similar to a well-established pattern can actually help improve your code.

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

First-class methods would be a win, but the syntax leaves a little bit to be desired. Closures would be much more of a syntactic eyesore if they A) had context-based type inference on the arguments, so that if I'm passing a closure to a method that expects (String, String) -> as its type I don't need to redeclare the variable types and B) allowed for embedded expressions rather than requiring them to be full function definitions with a "return" statement in there. Unfortunately, the FCM proposal doesn't allow either of those.

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

As someone who's implementing closures in a JVM-based language, I can tell you there's no technical limitations on the JVM side: there are decisions to be made as to how you want to implement them, but it's certainly doable with enough compiler magic.

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

No such law was ever passed, but Indiana did come close back in 1897, apparently:

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

As far as guidelines go, my personal rule is "test at the highest level of abstraction possible." That could also be phrased as "test those invariants that are the least likely to change." In practice, the two guidelines turn out to be pretty analogous.

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

The tradeoffs largely depend on 1) your deployment model and 2) the cost of the bug itself. If you're running a web service, diagnosing and fixing bugs is a whole lot easier than if you're shipping pre-packaged, installed software. If the cost of failure is just "some user action failed, they'll try again when it works" it's far less critical to prevent it than if it's "your data is now corrupted." Something like a social media site is on one end of the scale, where you're running a service and where most bugs are non-fatal. Installed backend financial transactions systems for large companies, for example, are at the other end of the scale, where fixing bugs in deployed software is hard (you might not have the information to really diagnose the failure or the ability to reproduce it in-house, and the fix will require a patch that someone else has to apply and deploy), and the failure can be incredibly costly.

comment 17y ago · link · parent

Retention is a very good reason to do so; replacing someone good is always hard (and expensive) in terms of hiring and ramp-up times. If you don't adjust your employees' salaries to reduce the incentive to job-hop in order to get a raise, you're basically asking your best employees to leave.

comment 17y ago · link · parent

All very valid points.

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

To expand on your last point there: if you do work for a startup, pay attention to everything, and learn from all the things that get done well and all the things that don't. There's a lot to learn and a lot to screw up. For example: Did you hire well? Did you grow the team too slowly or too quickly? Did your development process work well? Did it adapt as your product and team matured? Was the management transparent in the right ways? If the company grew, how did it handle the addition of new employees, new customers to support, and new or larger product offerings? How was your employee retention and burnout? And so on . . .

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

I would disagree about not using wrist braces; my doctor recommended I use one when I was experiencing wrist pain several years ago, and it helped a lot. A lot of RSI conditions are caused by pinched nerves, and the immobilization of the wrist prevents the sort of bending that leads to pressure on those nerves, allowing it to slowly be relieved over time. They don't help mitigate the pain, they help treat the cause of the pain. It helped me to wear them while working, but I also got a lot of benefit out of wearing them while I slept, ensuring that my wrists were perfectly flat and healing.

comment 17y ago · link · parent

Azul systems (http://www.azulsystems.com/) has a special-purpose Java processor, and they do indeed get some impressive speed benefits from it. For example, having single-instruction write barriers in hardware allows them to have nearly-pauseless garbage collection on gigantic heaps.

comment 17y ago · link · parent

Fair enough; you're not obligated to disclose everything up front if they don't ask. But that's a world different from making a deliberately misleading statement.

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

Deciding which facts are "relevant" to the customer is a pretty dicey proposition: why do you assume that the fact that no code has been written is irrelevant to the customer? Just because the sales guy wants it to be irrelevant doesn't mean that the customer shouldn't have the right to make their decisions based on the actual facts, rather than what's convenient for the seller.

comment 17y ago · link · parent

Starting with prototypes and mockups? Great idea. Definitely the only way to go. Deliberately misleading customers into thinking those are actual screenshots instead of mockups? Ugh.

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 Windup Bird Chronicle - Haruki Murakami

Cryptonomicon - Neal Stephenson

. . . and really, basically anything else by either of them.

comment 17y ago · link · parent

I'd definitely agree that TDD leads to testable code, which is usually a good thing. If you know how to write testable code, it's not as much of a win (in my opinion), since you tend to write with testing in mind. If you don't have experience with unit testing, though, doing strict TDD for a while can really help you learn what sort of constructs make for testable code.

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

The research I've seen on TDD seems to essentially point to two things: quality and productivity is positively correlated with the number of tests, and people who use TDD tend to write more tests. People who write the same number of tests but don't use TDD get similar benefits to people who do use TDD. So TDD is itself useful primarily in that it ensures that you actually do write the tests. (Unfortunately I don't have any citations handy to back that up; that's just my recollection of what I've read on the subject over the years).

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

Whatever terminology you'd like to choose, I think it's still a useful distinction to be aware of and to consider. To rephrase the article . . . there are two reasons to execute two things in parallel. 1) To reduce latency by executing two operations at the same time instead of in serial, as in processing web server requests. 2) To increase the speed of execution of a single operation by utilizing multiple processor cores at once.

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

Actually, it's more or less a summary pragmatism, which is a philosophy that grew out of the American civil war in response to fact that ideas people held strongly tended to lead to them murdering each other on a large scale.

According to pragmatism, the truth of an idea is at least partially determined by the effects of that idea.

http://en.wikipedia.org/wiki/Pragmatism

comment 17y ago · link · parent

They break down because UI testing tends to rely on Strings: either labels for controls or embedded ids of them. It's really, really easy to have those change on you, and when they do the tests become difficult to debug: if the button with the id "Search" isn't found, is it because something broke to cause the button not to show up, because the id has changed to "SearchUsers," or what? And if I need to remove the "Search" button and replace it with somethine else, how do I figure out which tests to change? The high-level nature of the tests inherently makes them much harder to debug, because the test could have broken for any of a hundred reasons.

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

My company has always pretty explicitly discouraged working nights or weekends, though obviously some people will always end up working more because they want to.

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

As a developer, the main problems with software patents are that 1) pretty much any combination of things you're doing could currently be patented by someone else, 2) it's impossible to tell if you're infringing something until you get sued, and 3) things that should be filtered out by the "obviousness" principle aren't, such that you're constantly in danger of stumbling onto a patent just by solving a problem.

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

We've had the same thing happen to us, though in our case there was no attempt to negotiate beforehand or to buy us out: we found out we were being sued when the other company issued a press release about it. Classy. They're just trying to put us out of business through a combination of lawyer fees and scaring off potential customers. Thankfully, it's not working.

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.

1
678
12