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
Longer-term commitments (we'll release in 6 months with features X, Y, and Z) on software projects tend to be impossible to make accurately or to live up to, so as an engineer it's impossible to really take them seriously or to be held accountable to them.
By making the commitments much smaller and near-term, they're much more reasonable and doable and much more likely to be taken seriously by all parties.
comment 17y ago · link · parent
Of course, it's kind of turtles all the way down, and you then have to test that your production implementation of that database abstraction does, in fact, call through to the database. And of course, there are the ever-raging holy wars in the tdd community around interaction testing versus state testing, and that level of abstraction and mockage can sometimes (in my opinion) make the code harder to follow, so it's always about tradeoffs.
But whatever the language you're in, encapsulating side effects and state as much as possible is going to be the way forward, using whatever tools are at your disposal. Some languages tend to make it easier to do that (or harder to avoid doing that) than others.
comment 17y ago · link · parent
comment 17y ago · link · parent
I'd have to take issue, however, with the author's implication that Java programmers who unit tests are idiots who don't realize they're reinventing the wheel. Good developers in any language recognize the importance of avoiding side effects, isolating parts of the system from each other (including minimizing state), etc. It shouldn't come as a surprise to anyone that testable code has some common characteristics across all programming languages. There are differences unique to the language as well, though, and unit testing in Java also tends to involve use of things like interfaces and polymorphism that are distinctly OO concepts as well.
And of course, unit testing isn't just for those "overly complicated" Java applications; it's for any type of system in any language. The author seems to me to imply that somehow unit testing is uniquely a requirement of Java systems that Erlang systems somehow don't need.
comment 17y ago · link · parent
* The developers don't understand the software they're using. Everyone uses e-mail, so it's pretty easy to know if you're making a crappy e-mail client. I'm not a claims adjuster, so it's much harder for me to understand if I'm building a claims system that makes the most common operations too difficult, or presents the data in a way that doesn't put the most useful information together. Sure, we've got product managers whose job is to figure that out, but they're not really users either, so there's always something lost in translation. Building software that performs a function you yourself perform is just way, way easier to "get right" than building software for a function you yourself don't understand.
* As is pointed out elsewhere, for internal development projects (which a lot of enterprise software is), the economies of scale work against you. It's difficult to build anything robust and functional for under a few million dollars, so most likely you'll end up with something not-so-robust and not-so-functional instead.
* On the flip side, companies make themselves very, very difficult to sell to, which provides a very high barrier to entry for vendors. Part of that is historical: they've been lied to so many times over the years that I can't really blame them. Most of them have a long history of failed implementations and IT projects, and they're naturally risk averse. On top of that, they have all the usual corporate red tape that commons with massive purchases, and since the market for most of that sort of software is often relatively small (compared to consumer markets, at least, or to more general-purpose tools), vendors have to charge a lot for their software if they want to stay in business. Unfortunately for their customers, that means that it's difficult to sell to them, which lowers the number of entrants in the market, which reduces competition on the vendor side, which leads to poorer quality software.
* Enterprise software is often boring to develop, you don't understand the use case, you can't show it to your friends or family or anyone else that will care, the deployment model often sucks, if you're a vendor you have to make things configurable (which makes it 10x as hard to develop, reason about test, etc.), and the companies you're selling to make the sales process incredibly difficult. And that's just working at a software company; obviously corporate IT in-house work is even less appealing. Understandably, the most talented developers often choose to work elsewhere. My impression these days is that the "you can't show it to anyone" bit is the most important for people; if you work for a company people have heard of or on a product people have heard of, you can take pride in showing that off, and not having that ability to show someone the cool stuff you're doing takes away a lot of the fun of software development.
* The small market and difficulty of deployment generally means that real user testing is difficult and costly, so people just don't do it. As a vendor, there's not much we can do (we can and do go watch people using the software, but there's not much we can do before we ship a version), and that's not a core area of expertise for the IT departments that are installing the system (or building one themselves). We can't just throw something out over the web and do A/B testing, or push a new version and roll it back if people report too many bugs.
* The market isn't yet there for hosted enterprise apps, so you're stuck with in-house deployments for now. I've commented on why that is earlier, but it comes down to both pricing, customization requirements on the customer side, integration requirements, and market valuations. It might work for certain types of enterprise applications that have large enough markets to make it scale, but for industry-specific systems where the target market is in the 1000's of companies, the math doesn't really add up.
There's definitely an opportunity there for a company of talented engineers to disrupt some portion of that market (which is what I like to think Guidewire, my employer, has done). But it's not as easy as just building a web app, attracting users, and slowly growing it: the domain-specific knowledge required is off the charts, and the barriers to entry are incredibly high.
comment 17y ago · link · parent
comment 17y ago · link · parent
Let's hope that Will Smith and Steven Spielberg don't actually go ahead with remaking it (http://www.imdb.com/news/ni0615340/). What a travesty that would be.
comment 17y ago · link · parent
That's not to say that programmers have no clue, just that our internal radar isn't exactly infallible. People tend to feel "productive" when they feel like they're "getting a lot done," but real productivity depends on whether you're doing the right things and whether you're doing them well.
And, let's face it, most programmers (myself included) really enjoy that feeling of just cranking on something and becoming so engrossed that they don't notice time pass. So I think that people are biased towards thinking that always corresponds with maximum productivity simply because it's enjoyable, and not because it's truly always optimal.
comment 17y ago · link · parent
But at the same time, often the only way to develop the intuition and experience to know when to follow those rules (even if it's hard) and when to break the rules is to blindly follow the rules for at least a little while so that you get a feel for them. How do they fit with your personality or problem space? Which parts seem to add value or prevent mistakes? Which parts are getting in your way? Which parts add value some of the time but not if you have to try too hard to follow them?
Any idiot can come up with a set of "rules" that other people should follow, but there are also plenty of incredibly intelligent, experienced people who have attempted to distill their knowledge for other people in that form. Dismissing them out of hand and then patting yourself on the back for it ("I'm an awesome programming precisely because I don't follow other people's rules") is not the way forward.
To me, part of being a good programmer is being able to temporarily put aside your existing notions of what's good or bad, what will work and what won't, in order to try out someone else's way of working so that you can truly internalize it and hopefully learn something new. That applies not just to following simple "rules" about how to structure your code, but to trying out new styles of development, new programming paradigms or languages, new toolsets, etc. All of those require the ability to temporarily suspend your judgment about what works and what doesn't and to just try to do something "by the book" for a bit in order to hopefully come out the other side an even better programmer.
comment 17y ago · link · parent
If someone asks you to do something that seems "beneath" you or trivial, just do it as well and as quickly as you can so you can get it over with and talk about more interesting things, or use the problem itself as an excuse to start a conversation about something more interesting than the problem itself ("the interesting thing here, is that if you write it this way it's easier to test" or "if you used a language like X, you could write this more easily," or "realistically, I think this function would be more useful if you changed it to behave like this, so that it would then be useful for doing Y and Z as well as X.")
It's nothing personal, it's just the interviewer's job to be skeptical about your stated skills until you prove to him or her that they shouldn't be.
comment 17y ago · link · parent
Ironically, at least in the enterprise space our experience is that companies will pay much more for installed software than for SaaS, which seems totally counter-intuitive. When you're selling them installed software, they look at it as an investment, evaluate ROI, compare against the amount required to do an internal build, etc. When you're selling them SaaS, they look at it as a cost center to be minimized, and their interest is primarily in driving your costs through the floor.
To put it another way, with installed software they realize they're paying your development costs, and that even if 100 other people are as well they know that it's still cheaper to buy from you than to build themselves. With SaaS, they act like they're paying you for hosting and support and totally ignore the development cost aspect of things, so their acceptable price is much lower. Irrational? Sure. But when my company investigated doing a hosting offering of our enterprise insurance products, we basically saw that it would probably end up just lowering our margins significantly, as well as probably lowering a potential future market valuation. Any sales we lose from not having an official hosted offering (we have partners that will host our software for them, but they're still paying us the full license fee) are ones we're willing to live with.
My understanding is that public markets have tended to value companies with that exponential profit growth ability at higher valuations than companies with more linear, fixed margins. There aren't all that many SaaS business public at this point, so it'll be interesting to see how the market values them once they are; my impression is that equivalent installed-software and SaaS businesses (same revenue stream and profit, say) will have wildly different valuations, fair or not, due to the theory that the installed-software vendor can much more easily turn the crank to increase revenue without increasing costs.
comment 17y ago · link · parent
Unit testing is like vaccination: it's good for me that I'm vaccinated against smallpox, but it's also really good for you that I won't be getting sick and giving it to you, and your ability to avoid vaccination (or testing) and still function is often directly correlated to how well everyone else is vaccinated (or how well they've tested their code so you know when you're breaking it).
Those don't always have to be unit tests in the strictest sense, so you could perhaps argue that a test that breaks as a result of unrelated changes isn't really a "unit" test because it wasn't properly isolated, but I really hate those sorts of language arguments. I'll call something a "unit" test if it's not an "end-to-end" test, even if I didn't mock or stub out every possible dependency. And it certainly sounds like the author of this post is arguing against unit tests in that sense rather than in the stricter sense.
comment 17y ago · link · parent
My current part of the floor has maybe 35 people in it, and there's kind of four sides of a rectangle to the building, so overall there are about 140 people or so on the floor. Generally, the clusters are spread out enough that you can't hear conversations that are happening more than about 20 feet away anyway, so the primary conversations you'll overhear are from other people on your sub-team, which are exactly the conversations you really want to be overhearing anyway. It really helps to keep everyone on the team in the loop about what's going on.
We have offices around the perimeter of the building that are unused so that people can grab them to have impromptu whiteboard discussions or make phone calls, which also keeps the general noise level down.
comment 17y ago · link · parent
Have you experienced/heard of such horror stories yourself? I'm guessing there are good ways to do an open-plan office and bad ways to do it, but I personally haven't seen any of the bad ways.
comment 17y ago · link · parent
From the responses here, I'm guessing not a lot of people on this board have tried XP or any other programming methodology that thrives on high-bandwidth communication. There are plenty of other development methodologies that work for people, of course, but XP and anything close to it really requires a constant level of communication betweeen developers, product managers (and customers), and testers that's just impossible to achieve if you're not physically sitting right next to everyone. In the worst case, maybe the distractions mean I only get 6 hours of work done in an 8 hour day, but it's the right 6 hours of stuff, which isn't always the case when I can't constantly talk with everyone else.
It's certainly possible that people have tried XP with pair programming, story cards, etc. and just hate it, but my experience with new hires is that there's often a lot of initial hostility to the open seating plan, but after a few months most people figure out how to deal with the distractions (generally via headphones or even earplugs if necessary) while coming to appreciate the benefits of a high level of cross-team communication.
comment 17y ago · link · parent
That said, it's certainly not trivial, so it still might not qualify as "sane."
comment 18y ago · link · parent
Designing a special-purpose language or a DSL is easier, but in my experience a lot of seeming DSLs end up slowly accreting more and more features over time that make them look more like general purpose languages. For example, you start with something simple, but then you realize you need conditionals, then you decide to add loops, then you need some concept of packaging and subroutines, etc. Done in that sort of ad-hoc fashion over time can leave things a mess, and if you knew you'd have to do that much work, you never would have tried to make a DSL in the first place.
The other problem with DSLs is that it provides another set of rules you need to keep in your mind around things like coping, evaluation order, naming conventions, etc. in addition to any other languages you know.
So my personal bias these days is to work within a flexible language if possible and to use metaprogramming where necessary to create a reasonable API; Ruby and Lisp are pretty obvious candidates there.
My company has its own statically-typed JVM scripting language that's gone through some of that evolution, from rules-only configuration language to a full-fledged language with classes, closures, etc. In order to curb the proliferation of mini-DSLs we had for various parts of the system, we instead opened up the type system of the language and allow for essentially a form of type-safe metaprogramming, which lets us get good, clean APIs for things that used to be DSLs while maintaining a single set of language rules and allowing for the use of other language features (adding methods that take blocks to the custom types, for example) in combination with the DSL-ish stuff.
comment 18y ago · link · parent
To test the framework itself, we mainly use Selenium to test the actual HTML and javascript output. To test things that Selenium can't easily handle, we've also used the Watir library (http://wtr.rubyforge.org/).
Our real unit tests are basically built on top of JUnit, though we have our own extensions to it that are specific to our platform.
To run the tests and report results, we have a custom application developed on our web framework and the rest of our software stack. Originally we used CruiseControl, but we outgrew that fairly quickly. It does a lot of stuff for us, but the key abilities are 1) parceling the tests out to a farm of servers and 2) assigning test breaks to users (basically a guess based on who changed what files in source control since the last successful test run); if you have more than a few people on the team, without actually making the test breaks one person's problem to resolve you end up with massive diffusion of responsibility where no one thinks it's their break.
We also have an internal performance testing harness for running load tests, which we write using the same framework as the smoke tests I described above (though in that case the clients are naturally remote).
comment 18y ago · link · parent
To make a trivial example, if you're an optimistic person and you hire all optimists, you'll ignore some potential problems. If you hire all pessimists, you'll ignore some potential long-shot opportunities you should pursue. If you hire all detail people, you'll miss out on the big picture. If you hire all big picture people, you'll miss out on the details.
People tend to hire people they feel comfortable with and get along with, which tends to mean people that think like them and agree with them. So when assembling a team, getting a diversity of opinions and biases is something you really need to take seriously. You need people who can work together and be civil and come to agreements and who like working with each other, but you really do need to have a mix of people who think differently.
I have no real data on the subject, but my mother has done organizational development work using the MBTI, so I've heard plenty of anecdotal stories around the types of dysfunctions that develop at organizations that have too much of a bias in one direction.
comment 18y ago · link · parent
Another upside the article doesn't mention is that companies in a downturn tend to face less pressure from VCs to get big fast with no regard for long-term viability, allowing you to build your business for the long haul and focus on quality products and real revenue. At least that's been my experience, and I chalk it up to there being less of an arms race/land grab mentality, along with more of a realization that succeeding in this climate requires a solid business, not just a bunch of non-paying users or meteoric-yet-unmonetized growth.
The primary downside is that companies funded during a downturn tend to get far lower valuations for the same level of funding, giving up a lot more equity than they would in more exuberant times.
comment 18y ago · link · parent
My personal rule of thumb is very similar, though: "Test at the highest level of abstraction possible." If you've got some pretty complicated code that could combinatorially explode if you test higher up the stack, then unit test that code. Otherwise I've stopped testing every method and every class and focused on higher-level components and assemblages of classes wherever possible, since I've found those tests to be the most stable, cause the least maintenance pain, catch the most bugs up-front, and do the best job of catching regressions.
The errors I'm most likely to make are generally ones of assembly (i.e. putting the parts together wrong) rather than small-scale bugs like forgetting a null-check or flipping a > sign (i.e. the parts themselves don't work as designed), so I think it makes sense to optimize for catching those sorts of bugs, which generally will also catch most, but not all, of the small-scale bugs anyway.
comment 18y ago · link · parent
comment 18y ago · link · parent
The increase in clock speeds has been a primary driver behind the ability of people to use higher-level languages, as well as the ability for people to write larger and more complicated applications. So assuming that a stop to the increase in clockspeeds will lead to better software is flat-out wrong; if anything it'll help to essentially halt certain kinds of progress in language and framework development by preventing people from using higher-level abstractions that don't perform as well.
comment 18y ago · link · parent
I have, however, found that a college degree in general, regardless of the field, is often a good proxy for someone's communication skills. Someone with a degree from a "good" school is, in my experience, more likely to be a clear thinker/writer/talker that someone without a degree or with a degree from a middle-tier school, regardless of their ability to code. I don't want to hazard a guess as to which way the causal arrow points there, but it's definitely a pretty clear trend I've noticed from interviewing several dozen candidates over the last few years.
comment 18y ago · link · parent
comment 18y ago · link · parent
The average Ruby project is probably a lot smaller than the average Java project because it's far more concise and powerful, which is a good thing and one of the huge advantages of the language. For smaller projects, smaller teams, and expert users, the weight of managing a project in an IDE could outweigh the benefits, so I can see how plenty of people would ignore an IDE in those situations even if it were the best tool in the world, simply because it might get in the way more than it would help.
I think that there are other situations, primarily for working on larger projects but also for people new to the language or who use it less frequently, where the benefits of a really good IDE would still help out Ruby.
But I can see how there are plenty of development scenarios where even the best IDE would just get in the way, and my judgment is probably just clouded by the fact that my current working scenarios (a few million lines of Java code, 80+ developers, working infrequently enough in Ruby that I forget everything in between) are greatly aided by an IDE. So personally my work style is now tailored to using an IDE, which slows me down when I have to shift out of that mode, and I'd use a great Ruby IDE instead of Emacs if one were available. But I'll accept that other people whose work style isn't tailored to using an IDE wouldn't find it as useful.
comment 18y ago · link · parent
If there was an IDE for Ruby that reliably did refactorings like "rename method", found usages, had auto-complete, and could pull up documentation for the particular type/method in question, I honestly think it would be helpful and that it would make people more productive than they already are with Ruby.
To me the author is incorrect in essentially arguing that people don't use IDEs with Ruby because they're too limiting: it's just that the IDEs for Ruby aren't good enough to make it worthwhile to deal with those limitations. For technical reasons I don't really think that's possible, but if it was possible to craft an IDE for Ruby that was as good as IntelliJ IDEA, I really do think it would improve people's productivity.
comment 18y ago · link · parent
My perspective is that Java and C# have really amazing, helpful IDEs because the languages have really been designed with that sort of tooling in mind. You just can't have that same level of tooling support with dynamic typing; I've read arguments from people like Steve Yegge but I'll believe it when I see it.
So sure, Java is more verbose and the IDE is the only thing that makes it more tolerable. And yes, I'd rather use a text editor for Ruby or Python. But that's not because text editors are inherently better than IDEs, or that the IDE is only useful for Java because it helps you manage the verbosity; it's just because the IDEs for those other languages aren't that good yet, and it's unclear if they really can be that good.