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 17y ago · link · parent

As a guy who works at an enterprise vendor that works very, very hard to never lie in the sales cycle . . . in the long run, having a reputation as a vendor that delivers on their promises is a huge asset. Most enterprise software vendors have terrible reputations, and 100% customer referencability is an asset that's much, much harder to copy (or fake) than your product is. Protect it at all costs. That might cost you sales in the short run, and it means you have to walk away from deals if the customer isn't a fit, but your reputation is probably the single most valuable asset that you have in that space.

comment 17y ago · link · parent

The real problem is that once you get past very common sorts of things (e-mail, IM, word processing) the needs of different customers start to become different enough that building a single product with no extensibility/customizability becomes incredibly difficult. For example, say you created a point of sale app: would that really be suitable for video rental places and for fast food franchises out of the box? No chance. If you don't make it extensible, you're guaranteeing the software won't be fit for the very, very specific purpose it needs to be put to. If you do make it extensible . . . well, writing extensible software is about 10x harder than writing non-extensible software, and as you say it leads to architecture lock-in that makes it hard to innovate in the future. Plus, the group doing the extensing is probably either in-house IT or outside consultants, neither of which are really going to have the vision/skills/motivation to make something with a truly great user experience. So by making the software extensible, you're guaranteeing it's not going to be highly polished and that progress on it will be much slower. But if you don't do that, you're restricted to incredibly small niche markets where people do things similarly enough that you don't need any extensibility (i.e. your market might be about 10 potential customers). And even then, you have to worry about integration with a gazillion other purpose-built systems, which can still make the user experience suck if they have to switch between 10 different apps, even if one of them is really, really good.

'tis a hard problem.

comment 17y ago · link · parent

The point is that the poor pay more for exactly the same (or even inferior) things as people who are better off, not that they somehow spend more in the aggregate. People who already are going to have less than others because of their lower income actually have that small amount of money go less far than exactly that same amount of money would go for someone who was better off.

You can view that as just the reality of how the economics work out, or you can view that as fundamentally unfair that people essentially get kicked while they're already down.

comment 17y ago · link · parent

I've also seen companies fail precisely because the founders were unwilling to give up any control. They may have thought they were choosing between 100% of 10 million and 5% of 200 million, but by being unwilling to give up any control at all they doomed themselves to 100% of 0.

In fact, I'd say that the most common mistake I've seen/heard about is often people focusing way, way too much on their personal stake and control, thus crippling the ability of the business to expand.

comment 17y ago · link · parent

The problem is that there's a lower bound on what government can spend and still be effective.

If a business has to cut jobs, that affects that business and those people, and if the business dies as a result of that revenue shortage or from those job cuts, it's pretty localized.

Can you really do the same thing with police officers or the fire department? Or with the DMV? Or social services, which people need more of during a recession, not less? Do you really just cut the fire department in half? Or expect everyone therein to take a 50% pay cut? So you cut salaries or freeze them, you cut back staffing as much as you reasonably can, etc. But there's a real lower bound on how much you can cut, and you can't just say, "Well, we have 50% less money this quarter, so we'll just have 50% as many policy officers."

I'm not saying I have any answers to those questions, or that government budgeting practices are ideal or rational (I live in CA, so if you want to talk about messed up budgeting . . .). But you also have to realize that it's a very, very different problem space, and the government fundamentally isn't in a position to absorb sudden, huge drops in revenue the way a business or individual has to just by cutting back on spending.

comment 17y ago · link · parent

It would be a far more compelling argument if there were actual numbers in there showing that for those kinds of loads Java does in fact require more wattage; for long-running processes, once the VM has JITed everything down to machine code, one might reasonably expect that it would be pretty close to the consumption of a natively compiled C++ application. He could turn out to be right, I just don't think you can take it as self-evident that the Java VM must be using more power.

comment 17y ago · link · parent

Since they're backward looking statistics they actually track what happened before the dot com boom. They still might not be relevant given the current marketplace, of course.

comment 17y ago · link · parent

That's a classic; his recent work is pretty good too. I really enjoyed both Pattern Recognition and Spook Country.

comment 17y ago · link · parent

That entirely depends on how you define "the poor" and how you quantify benefits. Is the military a social program? Police? National defense? How do you quantify one person's portion of that?

If we're talking purely about direct social programs like welfare or housing vouchers or medicaid, then homeless people will definitely receive more benefits than they pay in taxes, and people earning $30k year will almost certainly not.

If instead you include all that other stuff like defense and highway spending and assume everyone receives a roughly equal share of those benefits then the argument becomes pointless; the average person pays less than 1/300 millionth of the overall tax revenue but receives 1/300 millionth of the benefits.

comment 17y ago · link · parent

Doesn't your 10-15% ignore social security and medicare taxes?

comment 17y ago · link · parent

I was disagreeing with your statement "It isn't a fallacy that the poor don't pay taxes." It very much is a fallacy; they pay all kinds of taxes (as pointed out by the other commenter they pay medicare tax and social security tax as well as sales taxes, gas taxes, etc.). I wasn't making the argument that they pay more in taxes as a percentage of their income, or any argument around utility. There are arguments to be made around that, but I wasn't making them.

I was also basically saying that the whole "your argument is so ludicrous I won't dignify it with a response" thing was a cop-out. Just assuming they must receive more in social services than they pay in taxes, without any attempt to quantify either number, doesn't make for a compelling argument.

comment 17y ago · link · parent

Um, perhaps actually enumerating what X and Y are would be a start? Or defining what "poor" means?

A lot of people conveniently forget about sales tax (and potentially other sorts of government fees, like vehicle registration fees) when saying "poor people don't pay taxes." Sales tax is an incredibly regressive form of taxation, as are gasoline taxes, cigarette taxes, etc.

comment 17y ago · link · parent

Depends if you're a believer in the "genetic lottery" (to use John Rawls's term) or not. If you believe that things like catastrophic accidents or health conditions have a large amount of "luck" involved in them, then morally speaking it's more fair to spread the cost of them out over the whole population rather than concentrating it in whoever happens to get unlucky enough to develop leukemia or get hit by a bus.

Of course, health is something that people have some amount of control over, but exactly how much is obviously a big open question. Unsurprisingly, people who are on the "winning" side of the lottery (be it health, talent, or success in things like sports and business) tend to under-estimate how much luck has to do with it, over-estimate their own contribution, and thus also over-estimate how much someone else's actions have to do with their "loss" in that lottery.

comment 17y ago · link · parent

Scaling from one end of the performance/team size/code size scale to another using a single language is a very difficult problem no matter what language you choose. Things like static type checks that get in your way at one end of the spectrum become much more useful at the other end, and different languages fit different problem domains; when your problem space essentially changes on you, the tools you chose initially might no longer be the best choice. That doesn't mean the tools themselves are broken, just that they're no longer a fit.

comment 17y ago · link · parent

I don't know too much about LLVM, but the JVM has a ton of advantages: it's pretty much universally available on all platforms, it uses a fairly trivial set of instructions that make learning the instruction set and using it fairly easy, there's a ton of information out there about it covering everything from GC algorithms to VM flags to bytecode instructions and memory models, and both the Sun and IBM versions have been heavily optimized over the years. It might not be the best fit for every language, but it's a pretty impressive platform to build a language on.

comment 17y ago · link · parent

Anonymous inner classes aren't really closures in the more traditional sense, since they require that the captured variables be final; that makes them more restricted than closures generally are in other programming languages. That might not be a problem for Erlang given its write-once variables, but it is a problem for other languages.

We've been working on generating JVM bytecode for our in-house language, which does support a less-restricted version of closures, and we work around that by wrapping closed variables in one-element arrays, though you have to do for both the initial declaration and on every reference to that variable, even outside the closure, which gets really annoying when the closed variable is something passed onto the stack as a function argument, and probably in other cases I'm not thinking about right now. It's definitely workable, it's just messy and incurs more overhead than is ideal.

comment 17y ago · link · parent

It might not be impossible for everyone, but it's certainly a huge disincentive, and not everyone has the skills or energy to hold down another job that actually pays the bills, or to contract out. On top of that, many internships (like in finance . . . or least like finance used to be) would expect interns to work 60 or 80 hours a week, which would make any sort of additional paid labor basically impossible.

Just because some people manage to make it work doesn't mean it's not hugely discriminatory.

The thing that really galls me is that most of the time the companies that do this sort of thing are perfectly capable of paying their interns, at least well enough for them to eat and pay rent, they just choose not to because they can get away with it; there are enough college students trying to get a foot in the door and who have other support systems.

comment 17y ago · link · parent

In general, any sort of unpaid internship biases against people who aren't well enough off to work for free (i.e. whose parents won't support them while they do). It's really a kind of class discrimination that prevents people from lower socioeconomic standing from having much of a chance at certain jobs (like in the finance world) that tend to rely heavily on unpaid internships.

One thing I've always liked about my profession is that we tend not to do that in the software industry, which I think makes it more egalitarian and at least helps open up opportunities to people who actually do need to get paid for the summer. It's disappointing to see a reversal in that trend.

comment 17y ago · link · parent

I'm a fan of Belgian-styles ales. At the moment, my favorites are La Fin Du Monde (actually made in Quebec), Golden Draak, and Gouden Carolus d'Or (Red). For more regular bottled beers my favorites are probably Leffe, Hoegaarden, Blue Moon, and Paulaner Heffeweisen.

comment 17y ago · link · parent

The company I'm with was founded literally right after September 11th, then funded in early 2002; basically at the nadir of the original tech bubble. But it had exactly the effect that you've described; there was no hurry to make a land grab, and far less pressure to try to get big quick to score a fast exit for the VCs. Starting in a down market gave us time to actually build something real and valuable and to build the company for the long haul instead of having to worry about the short term. It also let us hire an all-star team that would have been hard to assemble in boom years (and, incidentally, the most recent downturn has again made hiring easier for us).

The downside is that you'll get a comparatively lower valuation for the same amount of funding, meaning the founders will retain less of the company, but that company will probably have a higher probability of being worth something significant. So as a founder, it's still a net win.

comment 17y ago · link · parent

Microsoft did an internal study you might find interesting:

http://research.microsoft.com/en-us/um/people/abegel/papers/...

I also know that they sponsored research by the Stanford CS department where they gave pairs and individuals the same programming task (completable in an afternoon), but I have no idea what the results of that were or if they were ever published.

My personal experience is pretty analogous to other people's: it causes you to work more slowly and carefully, it's good for knowledge transfer, and some people are better suited for it (personality-wise) than others. I find it most effective when avoiding errors or technical debt is imperative or when you want to transfer knowledge, and not as useful otherwise.

I've also noticed that my perceived productivity is lower when pairing than it actually is; I'm so used to cranking by myself that slowing down so someone else can talk with me about what to do, or being the "navigator" and not coding at all, makes me feel like I'm not getting anything done. In reality, though, I'm actually getting a fairly decent amount done, and more importantly we're probably avoiding mistakes or blind alleys that would have cost me time in the long run. That makes it hard to measure the real productivity difference: if two people had coded by themselves for 8 hours, more "work" would have been done than if those two people paired for 8 hours, but how much of that would have been wrong, or unnecessary, or overly-complicated, or introduced more technical debt?

It's the sort of skill that takes work, and that gets easier as you do it, so I'd encourage you to try it out. As with any new way of working, it'll be awkward at first and then get easier, and I think it's worth at least learning so that in the future you'll be able to judge for yourself when you feel like pairing will be most useful and when you're better off flying solo.

comment 17y ago · link · parent

Sure, but people rent movies for $4 without knowing if they'll like it, based solely on reviews. They buy wine they've never had before for $5 or $10. They order food for $5 or $10 or $50 from restaurants they've never been to before. People will even spend $50 or $60 on a game they may or may not like, as long as it's for their computer or their console and not their iPhone. Life is full of uncertainty like that, and most of it costs way, way more than any iPhone applications do.

My point is that people who wouldn't balk at spending that kind of money on something else that they may or may not like/use will freak out about an iPhone app that costs that much, and I really don't think there's any rational reason for it: it has nothing to do with uncertainty or expected value, but rather people have just been conditioned to expect that apps are free or $0.99 because the app store is flooded with those apps (just like people expect web-apps to be free just because lots of other web-apps are free), and that's a shame since it makes it that much harder for all the developers that are working on making great applications.

comment 17y ago · link · parent

The one sad thing about the app store is that people are now conditioned to expect that applications that take hundreds or thousands of man-hours to develop should be available for less than the cost of a cup of coffee . . . people that would plunk down $6 without thinking for a beer at a bar or a cheap bottle of wine balk at the prospect of paying $3.99 for a potentially useful application.

comment 17y ago · link · parent

The solution to that in our case, at least, is that the stories aren't just handed down with no explanation from a product manager. Instead, there's a team-wide "estimation session" every week where everyone (dev, PM, and QA) attends and we take the higher-level feature ideas, including any initial supporting documents (market research, mockups, desired use cases) and break them out into smaller, estimated stories. At that point everyone has a chance to ask for more detail and clarify any concerns they have, point out potential difficulties, suggest alternatives, etc. So stories are only scheduled for work once they've passed that initial stage where everyone was involved; if things are too vague, or technically impossible, or otherwise unready for development, they don't make it out of the estimation session.

It definitely still requires good product managers, but again the idea is that no matter how good the spec or whatever is you'll still always have questions, and it's better to just build that fact into the process and get people used to asking questions rather than having people make assumptions. And the best way I've seen to make sure that the PM has the answer to those questions is the estimation session, since if the PM doesn't know what they want well enough to answer the questions quickly as you develop, you'll find that out in the estimation session before anyone is tasked with working on the feature. That at least largely avoids the situation where a developer starts working on something and finds out the PM really didn't have a great idea of what they wanted after all, or that it's technically infeasible, which (in my experience) is just a really bad situation to be in.

The story approach still presents endless ways to screw up, but it's far better than any other approach we've tried over the last 7 or so years.

comment 17y ago · link · parent

One important distinction that a lot of agile people make is more around writing down the specs; as the PM you still do work up front to think about what to do, make mockups, do your homework, etc., but when it comes time to communicate to developers it's done as stories (much less detailed than specs) and with in-person communication for clarification (or, under less ideal circumstances, over the phone or e-mail or chat). The process of getting to the story in the first place ought to involve plenty of back-and-forth, design vetting, and mockups, but once you get there you don't build something based on a spec of any kind.

The theory there is that written documents will always be out of date, incomplete, stale, and open to multiple interpretations, so we might as well just accept that the face-to-face communication is infinitely higher bandwidth and will have to happen anyway and not waste the time trying to write it all down up front.

So if the PM needs to spec for their own edification, that's fine: do whatever works for you. But I, as the developer, will trust the PM themselves as the source of truth as to what the feature should do, and it's the PM's job to know what they want well enough to answer my questions real-time as I'm building.

296.

Empirical studies show test driven development improves quality(infoq.com ↗)

1 points · by akeefer · 17y ago · discuss

comment 17y ago · link · parent

Well, I work at a shop that builds software, but it's installed enterprise software, which means we don't fully control the deployment platform and have to support multiple databases. Control of the deployment model is definitely a huge, huge plus of a SaaS model, but the economics don't really work out for that in our industry. We also happen to write our own (currently closed-source) ORM framework to build on top of. One of the nice things about building our own framework is that we only have to deal with the complexities that we care about (i.e. our sort of performance requirements, our sort of object graphs, the databases our customers need).

The problem with pretty much any kind of framework, ORM or not, is that eventually it becomes bloated by being flexible enough to meet the requirements of thousands of different developers, meaning that any given one of them only ever uses a small percentage of the overall functional footprint. Keeping things simple yet powerful is definitely the hardest part about it all, especially given that different users have vastly different opinions about what's simple or what power they need.

comment 17y ago · link · parent

If you're using a config file to define things, it's generally the case that it's defining the schema as well and the database is built programatically on top of it. So it's really just a matter of taste: some frameworks have you manipulate the DB schema directly and then build the ORM representation off of the DB, whereas others have you directly define the ORM representation and then build the database off of it. Either way there's no real duplication, and there's still just one place to modify if you need to change the schema/ORM mapping.

In our case we have a config file because A) it makes it easier to abstract the schema across different databases and B) we have extra metadata in there above and beyond just the schema information.

comment 17y ago · link · parent

What he's imagining is somewhat close to what we do with our currently-internal (hopefully open source some day) ORM framework (which is on Java). Our schema is defined as metadata in XML, and we build a checksum off the XML to compare against what's in the database in order to know when to upgrade. To ensure the stability of the checksum, it's built off of a filtered, sorted version of the XML DOM tree, rather than the actual files. Not all changes to the files will affect the checksum, since certain bits of the metadata don't affect the data or the schema.

We do still use explicit version numbering for version triggers (our name for migrations), since it's just too hard if the numbers aren't meaningful. If you just used a checksum, how would you know if A248B5FC comes before or after 3F56EB2? It's a little easier if you can say "the DB is at version 23, and the latest is version 26, so we need to run these three triggers." The database stores both the metadata checksum as a hash and a version number; if the hash changes without the version number changing, we at least know that's an error and can detect it. Certain types of changes (like adding a nullable column) we handle automatically by diffing the current schema against the actual DB schema, while anything more complicated (and anything that touches the data) requires an explicit trigger.

Since we build deployed enterprise software that gets upgraded on the scale of years, not days or weeks, we also follow the course of using triggers only on production databases. It's still not really a perfect solution for all sorts of reasons I could go into, but it's interesting that we ended up pretty close to what he's proposing.

comment 17y ago · link · parent

I've thought a lot about why technical debt seems to be such a hard concept for non-engineers to grasp; certainly given how few business people or managers seem to understand it, it clearly must be difficult. I think it's because A) it only affects a truly long-lived, stateful process, like a software (or many other types of engineering process) where the output of one phase is the input to the next phase and B) there just aren't that many sorts of processes that occur in ordinary life.

Sure, in any field you can screw up in such a way that it hurts you in the future by damaging your reputation or annoying your customers, or make bad technical investments that turn out to cost you. But in engineering disciplines, doing your core activity (engineering) poorly can hurt your ability to keep doing your core activity (engineering) in the future.

If you're in sales and you cut corners with one client, it doesn't make your phone calls take longer. If you're in a restaurant and you cook things too fast or cut corners on ingredients, it doesn't make your future cooking take longer. If you're a doctor and you're too hasty and mis-diagnose a patient, it doesn't make your future surgeries and checkups take longer. But in software, if you're too hasty adding feature A, it does make your future features take longer to develop. And that's because in software, your future features are built on the previous ones, whereas with sales, cooking, or medicine the duration of any given prospect/customer/patient is relatively short-lived and finite.

That's my best theory as to why it's so hard for non-engineers to understand.

1
89101112