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 18y ago · link · parent
The same is probably true of just about any other business-focused software; most developers aren't hedge-fund traders, auto mechanics, laywers, hotel managers, etc. yet somehow people manage to build specialized software for those fields. You need people in the organization that understand those fields and what's involved, but the motto of "make something you yourself want" just doesn't apply when you're writing software to run an entirely different kind of business. Developers can be mountain bikers on the weekends, but they're generally not insurance agents or doctors in their spare time.
comment 18y ago · link · parent
To me the problem is that people generally want to explain luck away in hindsight: the team that won the game on a last-second shot won because they "wanted it more," the business that comes out on top "executed better," etc. It even comes into play in ethics, whereby the exact same action (say, driving drunk) often has different outcomes (hitting someone versus making it home safely) that cause us to judge people completely differently.
In other words, people hate the thought of luck determining things, and thus we over-ascribe outcomes to individual differences, overly glorifying the winners and shaming/demonizing the losers.
comment 18y ago · link · parent
The item about polymorphism strikes me as bogus too. But then again, I absolutely abhor mocks, because my experience has been that the mocks end up diverging from the real production code and you end up with either tests that don't break when the app is broken or tests that break when the app isn't broken, so optimizing for mocking is a horrible idea in my book.
Composition over inheritance is generally a good idea, but it is actually useful for testability, though not for the reasons the author mentions. Deep inheritance hierarchies make things hard to test because testing a leaf class in the hierarchy naturally means you're testing every other class up the chain, making it very hard to test just the code on that leaf class. Deep hierarchies like that also usually involve some contract between the different levels that's inherently hard to test for.
comment 18y ago · link · parent
But . . . I think there's a point worth noting here, which is that the whole "work hard and cash out" mentality really only benefits people with a lot of equity, yet many of those companies need to eventually rely on non-founder employees in order to get to the point that they cash out, and those employees are often expected to work just as hard (or close to it) as the founders or the first few employees that have 10 or 100 times more equity than them, all while generally accepting below-market wages and benefits.
That, to me, is what bothers me about the flip-it mentality: it's fine if it's you and your co-founders and that's it, but as soon as you grow past 10-15 people and have to start hiring on people who really have no chance of hitting it big, it becomes a little less noble to me to basically abandon those people once you're able to cash out, rewarding their years of hard work and low pay with a chance to go work with a bunch of people and in an organization that they didn't originally sign up for. I, at least, wouldn't want to work as an employee with startup founders that had that mentality.
comment 18y ago · link · parent
I've done a lot of performance optimization of Java apps in the last 6 years and I've never once had to look at bytecode or think about processor instructions or OS issues; I've had to think about memory allocation and consumption, synchronization, algorithmic complexity, caching, query plans, database denormalization, etc. Obviously optimizing a C application is a different world, but it's definitely not the case that even the majority of software engineers ever need to dive that close to the hardware these days given the rise of managed/VMed languages like Java, Ruby, Python, and C#; it's good to hire someone who can do that or who can learn to if your application might need it, but in general it's just not as important as a lot of other skills, and I think it's pretty incorrect to say that engineers who can't do that will have no job prospects in the US.
comment 18y ago · link · parent
comment 18y ago · link · parent
Similarly, the idea of quizzing candidates on whether they can diagnose and track down compiler or processor bugs is similarly useless; there are far more critical skills to test for in an interview. If I was interviewing someone for a position at a hardware company writing software for prototype chips, then I'd probably care; if the job was for about 98% of the other programming jobs in the world hardware knowledge is about 152nd on the list of things I'd care about.
It's hard to imagine how someone could take this guy as an authority on how universities should educate people and what job skills graduates will need when he's so obviously out of touch with the real world.
comment 18y ago · link · parent
That said, I really think the attitude in Silicon Valley is very much around creating products and then getting out rather than creating long-term profitable companies; the latter is just a different deal and involves dealing with all the unglamorous, less fun stuff like figuring out how to grow past a few dozen people, figuring out how to manage multiple products, working on the same codebase for a long period of time over many iterations of a product, figuring out how to manage the transition of people in and out of the company, adapting to changing market conditions over long periods of time, and figuring out how to actually make money sustainably.
It's not just the VC side that's been spoiled and will have to adjust; the attitude among most entrepreneurs I run into in the valley is also very much the "build one product for 5 years and exit" mentality rather than the "build a company that makes good products and that can exist for a long time." So both sides need to adjust.
comment 18y ago · link · parent
Mastering pointers, worrying about memory leaks, dealing with the loose typing, etc. are all things you need to do to write code well in C, but you can kind of muddle through as a beginner without those. You can't even get started with Lisp until you figure out the right way to break down your problem, and that's a huge barrier for most people. To put that another way, it's easier to mentally model what your algorithm should be in C than in Lisp (for most people), even if the actual implementation is a pain to get right, and its the mental model that's a barrier to entry for more "advanced" languages.
That said, C is certainly a harder language to learn than Python or Ruby.
comment 18y ago · link · parent
In other words, it's not just about tools or marketing or docs: some languages, while certainly more useful in the hands of a skilled expert, are so complicated and require so much dedication to perfecting their use that they can't possibly ever become mainstream.
The high barrier to entry for those languages is not just because of docs, tools, lack of standards, etc. It's just an inherent part of those languages, and what makes them so powerful is exactly what makes them difficult to get started with and what keeps them marginalized.
comment 18y ago · link · parent
The real question, to me, is whether you should build with the intention of trying to flip or if you should build with the intention of making it a stable business. That direction will make a huge difference in a lot of your decisions about whether to take on funding, whether to focus on early revenue or just on user numbers, etc. And there's no easy answer to that one; it really depends on what you want out of the experience, what your expected likelihood of being able to flip is, if you take satisfaction out of building over the long term or if you'll get bored in a few years anyway, etc.
comment 18y ago · link · parent
I can't think of any company or engineer I know of that would stop writing software if they couldn't patent it, or of anyone that's learned anything useful from reading a patent filing.
The most important parts of software are already protected by copyright and trade secret laws, and patents have absolutely no place there.
comment 18y ago · link · parent
comment 18y ago · link · parent
I've personally come to the conclusion that without metaprogramming you really can't write decent frameworks; even Java frameworks tend to use reflection and even run-time code generation, and I think the lack of more capable metaprogramming abilities in Java is one reason frameworks in Ruby, Python, etc. are more user-friendly. Frameworks are crucial these days, so I think metaprogramming is also essential to a language. It's just something that ideally would be used only in cases, like frameworks, where only a few people have to actually understand and debug it and a large number of people can leverage that work.
comment 18y ago · link · parent
http://gizmodo.com/5014732/3g-iphone-first-hands-on
"I noticed that the iPhone asked me for permission to give both the maps program and the camera app permission to use my location."
comment 18y ago · link · parent
But comparing writing a novel to programming a complex system seems pretty naive, to say the least. The first obvious difference is that a novel (generally) comes out of one person's head, but most larger projects end up far too large for any one person to truly keep it all in their head and understand all the interactions. That immediately makes it pretty much impossible to just do things right the first time; there are always things you don't understand or forget about when working on a larger project. There's also the fact that vagueness is tolerated and often desired in a novel, whereas it's not an option when programming; that just means there are more details to "get right", more decisions to make, and more interactions to worry about. In addition, a program generally has a definite purpose, and you can't re-define your goal as easily based on what it actually does (though sometimes you can; when writing, you often have an idea of where you're going or what effect you want, but if you end up with something different it might still be fine. There are a ton of other differences as well, of course; those are just the ones that first come to mind.
comment 18y ago · link · parent
comment 18y ago · link · parent
There's a similar problem with tests using their own code paths to set things up instead of the normal system path. For example, suppose you're testing a method that takes a User object. In your production system, users might only be created in a certain way, they might have certain fields required, they might have sub-objects attached to them, the database might enforce nullability or fk constraints, there might be insert callbacks in the code or in the DB, etc. If you try to just hack up a User in memory and pass it to the test method outside of the normal creation path, your test User object might differ in important ways from your actual User objects in production. So changes in the production code, for example assuming a field isn't null or relying on a default value, might cause the tests to break erroneously even though the app is fine. Then you have to find all the places you create Users in tests and fix them, or try to centralize things so you only have to fix them in one place.
Some of those problems can be partially avoided by proper decomposition and decoupling of the code, though oftentimes you have to have the foresight to do that before the tests get out of hand (and having the tests get out of hand is a good canary in the coal mine that your code is in trouble).
We actually went all the way to one extreme whereby we run our tests in the production environment as much as we can and avoid mocks and stubs; we're a Java servlet app (kinda the only way to do enterprise software these days, unfortunately), so we start up a Jetty server, an H2 database in memory, and go through the normal server-startup sequence before running most unit tests, which at least eliminates the test setup problem and a lot of the test/production divergence. It comes at a huge cost in terms of local test execution times, unfortunately.
comment 18y ago · link · parent
That said, there are interesting scaling problems with tests that I don't feel like many people seem to write about or know how to deal with; all the TDD books and sites describe techniques that work with simple, small code-bases but which often break down in the face of real-world problems. In particular, writing tests that only fail when the code is broken (and not just because the test is broken) is often incredibly difficult, and if you have (like we do) more than 40,000 unit tests, even a small false-positive rate like .1% will mean that a simple check-in could require hours of test rewriting not because the code is broken but because the tests are poorly written or make too many assumptions about implementation details. Even the best, most disciplined teams create some "bad" tests, and it doesn't take many to start killing you.
Similarly, in a real software environment where a code base lives for years and undergoes numerous changes, you often end up with stale tests that either no longer test anything useful or which enforce requirements that have since been changed.
So while the tests are invaluable and I can't imagine not having them, at the same time there are a lot of issues with test maintenance over the long term that become very difficult to deal with.
comment 18y ago · link · parent
comment 18y ago · link · parent
One of the big problems, though, is that inheritance is much easier in most programming languages than composition is. Java, for example, has absolutely no support for composition or delegation, whereas inheritance requires a single keyword. C++ has multiple inheritance, which you can kind of re-purpose for the sake of composition, but it's still not very elegant and tends to just exacerbate the misuse of inheritance instead. Ruby has a pretty elegant mixin model, and you can pretty much do whatever you want in Javascript if you're willing to roll the solution yourself (I confess that my Python knowledge is more limited so I have no idea if there's support there), but the most mainstream OO languages require you to really fight them in order avoid using inheritance inappropriately.
comment 18y ago · link · parent
To put it another way, parallelization is a cost-benefit analysis; having more cores changes the "benefit" side of the equation but not the "cost" side, and I don't see any magic bullet coming that will drastically alter the "cost" side. Increased use of multiple cores at the lowest level will only happen thanks to better tools and frameworks that keep people from having to think about threading/parallelization themselves. As soon as you have to worry about ordering dependencies, you've entered a world where implementation is very difficult and testing/verification is nearly impossible. Most applications right now are "fast enough" to make correctness and implementation ease far more important concerns than raw speed.
So you might see people migrate to frameworks that allow for easier parallelization, and web applications will obviously benefit, but I doubt you'll see any fundamental change in how people write software.
comment 18y ago · link · parent
comment 18y ago · link · parent
There are just a lot of things that are harder to learn on your own. Want to learn SQL, OpenGL, TCP programming? Read some web pages or some books; you don't need a class for that stuff. Want to learn how to write your own database, rendering engine, network stack, compiler, or filesystem? Take a class. Especially if your goal is write enterprise software, which inherently involves building large, complex systems, some of those things will come in handy, if only by exposing you to new ways of thinking. My experience has always been that the practical stuff is easy enough to pick up on your own, but the theory is always harder. It can be done, you'll just learn it better and faster from a good professor.
If you've already taken all the 200 or 300-level courses in CS at Stanford that you want to take, I don't think you'll get much out of the MS. If there are a lot of those courses that you haven't taken and that still interest you, it's worth doing. If it's just a pure business play it's not worth it.
comment 18y ago · link · parent
Getting good people to work for a software company writing enterprise software is hard enough, due to factors I've mentioned elsewhere (it's low profile, you're building systems you yourself wouldn't need or use, the deployment model is rough). Getting good people to work doing software stuff at a non-software company is much harder, I'd say. Even if you had great working conditions and got to use innovative processes and technology to do things, which not many non-software companies do, you're still going to get hit the "talent attracts talent" problem.
Talented people want to work with other talented people; otherwise it's a vicious cycle where the best people leave and cause the rest of the good people to leave, and new good people that come in don't want to stick around. The only real way to combat it is to start with a bunch of talented people and then keep your standards high; otherwise, the feedback loop spins you down towards mediocrity in a hurry.
comment 18y ago · link · parent
comment 18y ago · link · parent
I've worked at a startup (not really a startup anymore) for 6 years that does software for the P & C insurance industry, and that sort of software is just an entirely different ballgame to develop, implement, and sell. Yes, their existing systems are terrible, but they work(-ish), they've been building them for 20 years so they do a ton of things, and they have anywhere from 5 to 30 different systems that all need to be pieced together. In addition, those systems are often really core to their business: changing things requires huge investments in terms of integration work and re-training, and such decisions are not made lightly. In addition, they're still not (yet) comfortable with losing control of their data. That's changing, but most big non-tech businesses just aren't going to put, say, their insurance policies or their medical records in some third-party website's hands where they don't have direct access to the database. That part's probably going to change eventually, though.
The other problem is that building these systems is hard: they're huge in terms of functionality (a claims system just does a hell of a lot and has a ton of different screens, rules, and tables), so they take a long time to build, and they require an enormous amount of industry-specific knowledge that takes a long time to build up. Feedback cycles are also hard because of the deployment/integration model; you can't just throw something out there, have people try it out, and quickly iterate. All that also means it's expensive to build the software; it takes a decent number of people a really long time to build something that's even vaguely adequate for replacing their existing, 20-years-of-development COBOL mainframe system. Combined with the general niche market you're talking about, that means you need to get paid a lot for every customer, which also tends to preclude any sort of hosted service-based model; the number of customers is too low and the R & D costs are too high, so the economies of scale just aren't there. For whatever reason, businesses just tend to see services as cost centers to be minimized and value them differently than software purchases.
All that, though, means that 1) their existing systems suck and 2) hardly anyone smart is working on making them better, which is one reason why our company is able to be successful. So if you can round up a bunch of smart developers, some good business analyst-types who can delve into the corporate world and discover what they really need built, and some persistent sales people that can handle the agonizing, 12-24 month sales cycles, there's a whole lot of money to be made there. But it's a very, very different world than your standard web 2.0 app, and usability really doesn't factor much into the purchase decisions: their existing systems are so bad and so hard to maintain, the dev process is so brutal, and the competition is so poor that the most important thing is to build a system that works and is flexible in the right ways, and usability is more of a secondary concern. If there wasn't such a high barrier to entry, you might actually see products compete on usability instead of just on functionality.
If you don't want to go the full-on enterprise route, you can certainly have success chopping off parts of their business that are hugely common across business and industries, like salesforce.com, google apps, or wiki services. But I don't think that approach will really work for core systems that are highly industry-specific.
comment 18y ago · link · parent
comment 18y ago · link · parent
As for myself, I learned a lot about how to carefully construct arguments, how to make my arguments clearly so that people who disagreed with me could easily point out why they disagreed, how to critically analyze and (civilly) disagree with someone else, how to care more about getting to the right answer eventually than about being right in the moment, and how to be willing to change my mind when someone did make a well-reasoned criticism of my argument.
I studied mainly the ethics and political philosophy, rather than the more logic/cognitive science side of things, but I've still found it incredibly useful to my work as a software engineer. The process of breaking a complex argument down into appropriately sized chunks that say enough to be meaningful but little enough to be clear and (hopefully) self-evidently correct is incredibly similar to the skill of breaking a complex program down into parts that are large enough to do something useful but small enough to be correct.