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 17y ago · link · parent
With patent trolls maybe you could counter-sue for tortious interference, but that's a pretty hard one to make stick, or you could get a judgment rendered that requires them to pay your fees if the suit is totally ludicrous, but I'm not sure I've ever heard of that happening in any kind of patent lawsuit.
comment 17y ago · link · parent
I'm in exactly the same situation and it's incredibly frustrating, but the alternative is to open your mouth and potentially undermine your legal defense. About the best you can do is to fight the lawsuit to the best of your abilities, but that unfortunately requires that you route all public communication through your lawyers.
comment 17y ago · link · parent
"The Congress shall have Power To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries."
In other words, intellectual property rights are artificial constructs that Congress is allowed to grant in order to promote progress.
In the UK, however, the case law works differently, and IP law is more of an outgrowth of the theory of natural rights that a person naturally has a right to whatever it is that they've created, be it something physical or something intangible.
comment 17y ago · link · parent
I'm not sure why you'd think that software advancement would be hindered without patents, or that conversation would somehow die out. Patents for software are notoriously useless to read, and only an infinitesimal part of any system is patented anyway, and then generally only as a landmine against future competitors or to enforce mutually-assured destruction. The vast majority of an application's "secret sauce" is protected by trade secrets, not by patents, and copyright guards against the actual theft of resources. I don't think that patents in the software world really do much to open up what would otherwise be a trade secret, with the possible exception of things like compression algorithms. I think that's fundamentally different from how patents function in, say, the pharmaceutical industry, where patent protection does encourage sharing of information.
comment 17y ago · link · parent
On balance, patents do more harm than good to companies and their engineers.
The companies you mentioned don't patent for competitive advantage, they patent so that when they get sued by someone else they can countersue. That's what everyone does; if you don't have patents and someone sues you, you can't fight back.
Patents on pharmaceuticals do encourage innovation, because the one essential element is the chemical formula (to a lesser extent, the process to produce that chemical), which would easily be copied without protection. A given software application consists of thousands of lines of code and thousands of algorithmic decision (often hundreds of thousands or millions); if you knew that someone was using an XOR in order to flip bits, it doesn't exactly let you copy their system. My argument is that patents on software don't encourage innovation because they don't increase the protection that's already there, and the threat of other people's patents is constantly looming and stifles innovation.
Look, I'm a software engineer, and I know a lot of other engineers, so I'm not discounting my own or anyone's work or saying it's not valuable and that people shouldn't get paid for it. What I'm saying is that patenting isn't a useful or appropriate mechanism of protection, that copyright combined with the inherent difficult of duplicating the thousands of features in someone else's application is barrier enough, and that patents actually hurt entrepreneurs and software companies and make it harder for engineers to get paid for their work.
comment 17y ago · link · parent
I think that the historical record is pretty clear that software patents are a huge net negative for the industry and do much more to harm innovation than they do to protect it.
How many startups wouldn't be started if people couldn't patent their software, and merely had to have it protected by copyright? Hardly any (probably just ones that deal with things like video encoding). How many startups will be sued out of existence by big corporations or patent trolls due to ludicrous patents, and how many startups won't be started at all because the landscape is already a patent minefield? A whole lot more.
Patenting isn't an inherent right, it's a pragmatic right granted by the government in order to encourage innovation and openness by providing people with temporary monopoly rights in exchange for sharing their inventions. Software patents serve neither to foster innovation nor to foster information sharing, since software patents themselves are pretty much universally unreadable, unenlightening, obvious garbage.
comment 17y ago · link · parent
But they are fundamentally different in that software is already protected by copyright the same way any other creative work is. Copyright and patent protection are two sides of the same coin that are there in, according to the US Constitution (European theory on the origin of IP rights is different), to provide an incentive to create new things. Unlike a chemical formula or a mechanical invention, the software itself is already protected by copyright, just like a novel or a painting is. It's basically the only thing that I can think of that's protected by both copyright and patent protection.
In many ways, patenting a software system is far more akin to patenting a novel or a how-to book (I'm patenting the idea of a hero that fights an evil villain, and I'm patenting the idea of explaining to people how to fix a leaky faucet).
Again, patents are constitutionally granted on a pragmatic basis rather than on the grounds of some inherent right, so I think it's a perfectly valid to attack them on the grounds that they do more harm than good, and it's also perfectly valid to point out that they are categorically different than patents on mechanical or chemical inventions.
comment 17y ago · link · parent
Used properly, static typing hurts you in some ways (verbosity, certain kinds of inflexibility) but helps you in other ways (static checking, better tools for discoverability and refactoring). As other people have pointed out, Java itself is also hampered by a lack of a few simple things, like closures and type inference, that could easily be added to the language and that other statically-typed languages have. The JVM is also hampered by the lack of hotswap to let you make changes to a running system at the very least in development, but even that limitation is being worked on by someone as part of the OpenJDK project (who knows if it'll ever make it to the official JDK, though).
There are situations where the tradeoffs are worth it, and situations where they're not. Anyone declaring the superiority of language X in all situations would do well to really try to talk to people who use other languages and understand their strengths and weaknesses instead of just dismissing them as relics of the past or slave laborers.
comment 17y ago · link · parent
List<String> userNames = new ArrayList<String>(); for(User user : users) { userNames.add(user.getName()); }
is not just more verbose but also reveals the programmers intentions less than something like:
var userNames = userList.map(\u -> u.Name)
Java programs often devolve into a lot of for loops, which all kind of look the same regardless of what you're doing, and you have to read pretty closely. It's nice to replace a bunch of loops with explicit methods like "map" or "find" or "reduce" or "each" or other things that explicitly declare the intent of the programmer.
I write a lot of Java, and we also have an in-house Java-like language built on the JVM (that we're working to open source), and we added closures to it in order to gain those sorts of benefits. Even though IDEA or Eclipse can write my for loops for me, it can't read them for me.
There's no technical reason why you can't have a statically-typed language with excellent tools that isn't unnecessarily verbose: all you really need to add are type inference, closures/first-class functions, and properties, and a little bit of metaprogrammability (instead of code generation) is also both feasible and helpful.
comment 17y ago · link · parent
If the test is testing something (like a getter or setter) with basically no chance of breaking, then it's a waste of time. If the test is likely to be fragile or non-deterministic, it's a waste of time. If the test is just too hard to write, and it's not too hard to just test by hand, then automating it is probably a waste of time and you should just QA it by hand every so often.
Finding the right balance tends to come back to the old experience and skill thing: you need to have some intuition about which tests will give you the most value (because that part needs to be rock-solid, or because it's hard to get right, or because it's high-change) and which tests need to be thrown away or never written because they aren't worth it.
Taking any development process too far tends to work out poorly, and taking any metric (like test coverage) too seriously is always a bad idea. That said, I've rarely seen unit testing taken way too far; not testing enough and ending up with buggy, regression-riddled software is a far more common failure mode.
comment 17y ago · link · parent
Basically, the limitations on conventional VMs are at least somewhat imposed by the underlying x86 architecture. The Azul box is a custom processor specifically designed for the JVM, so it can do things like write barriers around gc in a single hardware instruction. That, in turn, allows them to produce a fairly pauseless garbage collector: I believe he claimed something like 10-20ms at most for a 100GB+ heap. Contrast that to the several second GC pauses you'll often get on a conventional VM with just a few GB of heap.
Their boxes are also designed to massively scale up; up to 54 cores per chip and 16 chips in a single box. I believe they use localized L1-caches, shared L2-caches (between each 9 cores, I think), and uniform memory accesses across all the chips in the box. The end result is incredibly high memory bandwidth. The other bit Click talked about was how they can profile under load with basically no overhead, unlike the standard JVMTI interface.
They used to sell a lot of gear to financial services companies, as I understand it: I get the impression that for high-load transaction processing their boxes would pretty much smoke anything remotely resembling a convention server or array of servers.
Again, it's a shame the Artima article didn't really talk about any of that. The fundamental limitations are more primarily in the JVM interaction with conventional x86 chips and the really cool work Azul has done is to create a chip (not unlike the Lisp machine of yore) specifically designed to make the JVM run fast and scale up.
comment 17y ago · link · parent
I will, however, say that after working on the same code base for over 7 years now, and watching the company grow from 15 employees to 400, I can't imagine ever working at a place that didn't have a large investment in unit tests, tech debt elimination, automation, etc. Without that stuff, our products almost certainly would have collapsed under their own weight by now, and our ability to ship predictably and on-time would be gone. Even within the company, we have some groups that have done better than others as far as automating tests (both because of team personality and because of technical issues that make certain types of features harder to test), and it's quite obvious that the groups with the best testing are the groups that are able to make much more predictable progress and that are able to ship on time. The groups with less-good testing tend to be prone to fairly massive schedule slippages due to a ton of late-stage regressions that only get caught when they ship their code out to their internal users.
Once things get to the point where no one person can reasonably understand the full implications of their changes, because the system is just too big and complicated, if you don't have unit tests you're in big, big trouble, and you need to reduce tech debt so you can keep things as comprehensible as possible. Even then, of course, you have to constantly decide how much to invest in testing and infrastructure and cleanup versus how much you invest in forward progress, and there's never an obvious equation that will give you a right answer.
If your code base and team are small and likely to stay that way, such that you can still mercilessly refactor and change the code without introducing a bunch of hidden bugs, then testing doesn't matter as much. If you ever expect the code to get to the point where that becomes less true, and where the possibility of introducing errors increases, then it starts to matter a whole lot more.
Hypothetically, let's assume we built the same product with two teams, one that did a bunch of unit testing and one that didn't (call them Team A and Team B). From my experience, what essentially happens is that Team A ships version 1 first, ships version 2 first but takes about as long to build version 2 as Team B, ships version 3 about the same time (since it takes them longer to build it), experiences a massive schedule slip in version 4 (since the complexity catches up to them and things becomes buggy and they start playing whack-a-mole with bugs), and don't really ever ship a version 5 because their code has so much tech debt that no one can change anything safely without breaking something else unintentionally, and they start contemplating a complete rewrite of the code base. Again, totally contrived situation (it doesn't have to go that way, Team B could still totally screw things up anyway, etc.), but that's roughly what I've seen happen, both at my company and at others.
I don't think it's fair to say that consultants push TDD and tech debt reduction because that means the project will take longer: that's a bit overly cynical. Many, many organizations use unit testing and such in house because it has a huge long-term benefit (as well as generally more predictability in the short term, which is often more valuable than absolute speed), not because some consultant told them to do it.
comment 17y ago · link · parent
The payoff for something like unit testing, automated deployment, and continuous integration are over the very, very long haul. If your cost/benefit analysis is always looking at 3- or 6-months out, it'll never seem like a win.
So if you only ever do the urgent stuff and never anything strategic, 3 years later you'll realize that if you'd just sucked it up back at the start and done that stuff, even if meant putting off otherwise urgent features, you'd be further ahead than you are now, because it would have more than made up for the initial investment.
So it's not that you don't do those things because they're not important, but rather because they're never urgent, and because most people's time horizons, especially in a startup, are fairly short.
comment 17y ago · link · parent
It is true, however, that adding in that time dimension makes everything a much, much harder problem.
comment 17y ago · link · parent
For our most recent development cycle (which started about 10 months ago), we finally bit the bullet and split the product team into cross-functional sub-teams we call "pods" consisting of (roughly) 5 developers, 3 QA, and 1 product manager. Having the product manager sit literally next to the developers, instead of 15 or 20 feet away, has made a huge difference in the interaction there and our ability to quickly iterate on features. Instead of just making assumptions when the product requirements are unclear or don't seem to make sense, we have much more of an ongoing dialog all day about how things should work, meaning we waste a lot less time building the wrong thing.
comment 17y ago · link · parent
One of the hard parts for me, both in school and later, was that I never really fit in with the CS crowd, since I wasn't nearly geeky enough (I didn't grow up with computers, I learned to program starting sophomore year of college, etc.), and my philosophical leanings lead me to see the world in shades of gray whereas, no offense to anyone here, engineers tend to see the world in more black and white terms than humanities majors. In engineering, there are right answers (does it work? is it faster?). In philosophy or history, there aren't. So that conflict always lead me to feel like maybe I was going the wrong direction, since I just didn't really fit in with the real hard-core hacker types. Was I going to enjoy it? Was I going to be able to keep up? It's often hard to tell just how good you can be or how much you'll enjoy something professionally until you give it a chance.
What eventually tipped me was that I burned out on philosophy; I enjoyed the study of it, I enjoyed the process of it, but at the end of the day no one ever has an answer. Any crazy position on any subject you can think of has someone with tenure that made their reputation by staking out that crazy position, and fundamentally there just aren't hard truths that you can easily cling to to dislodge them. So after my undergrad was done, I was pretty done with it: I'd learned a huge amount, become a better writer and clearer thinker, and learned better how to be objective and how to accept being wrong (and to not care about being right, but rather about getting to the right answer), but my desire for answers and progress wasn't going to be met by further pursuing philosophy, and it was time for me to go out and do something. Philosophy might have answers for you, on a personal level (it did for me), but you're not going to be able to convince other people of those answers no matter how good you are, unless you're one of the 3 best philosophers in any given generation. If just the process alone is enough for you to be fulfilled, more power to you, but for me it wasn't.
I do still wish I could do philosophy, and I miss the absorption in reading philosophy as well as the writing and thinking it entails. I could do more of that on my own time, but I have a hard time splitting my attention like that; both software and philosophy require a lot of mental energy and certain type of lose-your-self absorption in the problems at hand. But I've also found outlets for those impulses: I think a lot about how to make things better in our code base, or how to structure programs, or about language design, or about our development process. When I get the urge to write, I blog about software development and engineering. Software is such an involved, flexible field that you can exercise a lot of different skills and scratch a lot of different itches even within the field. So I don't regret my career choice at all; you can only choose one path in life, so there are always things you'll wish you could have done, and the best you can do is find a path where you're happy and enjoy life.
Perhaps most important to me is that the act of creating something new is, I think, a very special sort of act, and getting paid to do it, to create something new that wasn't there before, is something not a lot of people get to experience. The joy of that alone, I think, is really what drives a lot of software developers, and if you have that deep-seated urge to build things and take joy in creating something new, you'll probably be happy as a professional developer provided you find the right sort of environment.
And on a related note: honestly, no one enjoys their job 100% of the time. Maybe 0.1% of the population actually does, and the rest of us just lie about it in interviews with magazines or TV shows ("I love my job, I get to . . ." and "I have the best job in the world . . .") thus distorting everyone else's perception of normalcy, but regardless of what you do you'll have days where you come home and say, "I just want to go read books all day" or "I just want to go work on a farm" or "I just want to do anything but go to work tomorrow and deal with all this stuff again." It happens to everyone no matter what they're doing or how passionate they are about it.
comment 17y ago · link · parent
The only way to avoid that break of encapsulation is to catch the exception immediately in bar(), and then do something with it: either handle it, or rethrow it as something else, either a runtime exception or as a different checked exception. But that also isn't really ideal; in my experience, about 98% of the time even checked exceptions are throw-up-your-hands sort of programmer errors that you want to bounce a fair way up the stack to some more central error-handling location, or to kill the high-level operation being attempted. In other words . . . you generally just want to treat them exactly like runtime exceptions.
So while the theory of type-safety around checked exceptions is nice and all, in practice if you actually use them as part of type signatures they massively couple all the layers of your application, and I find them much more annoying than useful.
comment 17y ago · link · parent
I think it's really just a fundamental problem with the whole idea, and it's why any attempt to "fix" them will fail: the idea of checked exceptions is just deeply flawed.
comment 17y ago · link · parent
Doing per-user security directly in the DB with simple CRUD permissions per table would be enough of a headache, but most applications eventually require finer-grained security than that, and for performance reasons you also don't want a client to be able to execute just any arbitrary query.
It seems like this is pretty close to same trap a lot of people fall into of only enforcing data validation client-side, or only enforcing things like view permissions client-side (by not rendering links), which leaves all sorts of holes open.
comment 17y ago · link · parent
When done well, the useful part of OO design is encapsulation and data-hiding, not inheritance, but everyone gets hung up on inheritance because it's easy to cobble together "is-a" examples from real-world-like things, which just trains people to abuse the model.
In the real world outside OO-design books and freshman CS classes people don't have separate classes for different shapes, they just have "Polygon" or whatever the graphics buffer requires. And no one has separate subtypes of "AbstractVehicle" for "PassengerCar" and "Motorcycle" and "CommercialTruck," they just have a "Vehicle" class with a bunch of data on it and rely on the client code knowing what to do with that data.
comment 17y ago · link · parent
If you disagree with that logic, that's fine: just explain how I'm wrong instead of just dismissing it.
comment 17y ago · link · parent
First of all, if you have a minimum wage law (which we do), it has to be enforced. Allowing people to work as "unpaid interns" is a half-assed way that corporations take to work around that law. You can argue about the efficacy of minimum wage laws, but it seems like real empirical studies (instead of just theoretical arguments) have been pretty inconclusive. And overall, the point is that you can't just let people create a massive loophole in that law by just deciding not to pay people at all.
Secondly, from a simple ethical standpoint, unpaid internships privilege people who are already well enough off to be able to give their labor away for free (i.e. generally middle-class or wealthier kids whose parents can support them). You don't get a lot of poor kids applying for unpaid internships at age 20 or 22 because, guess what, they need those 40+ hours a week to actually earn an income. So the tradition of unpaid internships in certain traditionally white-collar industries tends to be a subtle form of class discrimination.
And recasting it as a "volunteer" thing is also a total cop-out: you volunteer for a non-profit charity, not a for-profit corporation.
comment 17y ago · link · parent
(One qualification: It's limited in how many times you can re-download so that you don't use it as your personal file-transfer service to download the same album 20 times on every computer you or anyone you know owns, but assuming you don't abuse the ability to redownload it'll be there if you ever lose your files.)
comment 17y ago · link · parent
If you haven't realized it already, you'll eventually realize that finding and patching and testing all the edge cases is incredibly laborious and really is usually the "hard" part of development (the happy-path cases are usually the easy part), and secondly that prioritization is the key to productivity. There's an art to knowing what will come back to bite you, what's recoverable, how bad it'll be, when to bullet-proof and when to move on to the next thing.
comment 17y ago · link · parent
In other words: would you join an awesome team that's about to run out of cash? How about joining an awesome team with an 18 month runway? The answers to those are going to be very different.