Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Spolsky Stands Firm on Linux on the Desktop 304

erlando writes: "SoftwareMarketSolution is running an interview with Joel Spolsky (from JoelOnSoftware) in which he responds to this earlier thread here on Slashdot. In short: He defends his position and makes some interesting remarks on Linux and the desktop."
This discussion has been archived. No new comments can be posted.

Spolsky Stands Firm on Linux on the Desktop

Comments Filter:
  • by Mattygfunk ( 517948 ) on Tuesday March 19, 2002 @08:55AM (#3186625) Homepage
    SMS:...you stated that code doesn't rust, i.e., that once a piece of a program has been debugged and various workarounds added, it represents a repository of stored knowledge and should be left alone.

    JOEL:It may be true for the software that Eick evaluated. It's not true for the software that I've written, because I tend to refactor and clean things up regularly.

    His argument is that code doesn't rust however he argues it by saying that he "refactors and cleans things up regularly". Perhaps he needs to think about that one a little more.

    • The refactoring people tend to believe that refactoring can be a be-all and end-all. Having apparently never worked on a team in the Real World and had a piece of code delivered that was so hideous that the only thing you could really do with it is have it taken out and shot. XP Practices can help you avoid having such a hideous piece of code delivered in the first place, but you'll have a had time convincing small shops to do pair programming.

      Of course, he gets around that one too, stating that if it costs more to add features to the current code than it does to rewrite it, then rewrite it. I've seen designs so bad that it's literally more cost effective to scrap them and start from scratch.

      He also says that it would make more sense to have a new (and competent) programming team refactor Outlook rather than have the existing one rewrite it from scratch because the existing Outlook team sucks. That actually makes a bit of sense if you think about it. He doesn't go into how much the new team might have to "refactor" Outlook. Anyone want to make a guess?

      • Having apparently never worked on a team in the Real World and had a piece of code delivered that was so hideous that the only thing you could really do with it is have it taken out and shot. XP Practices can help you avoid having such a hideous piece of code delivered in the first place, but you'll have a had time convincing small shops to do pair programming.

        I agree that what he suggests is XP-like, but it doesn't require pair programming. You can't make a 3 story house of cards into a full-sized brick house, no matter how hard you try - design is paramount to refactoring.

        I think people get confused when they read about XP and think design is ignored and everything is done "as you go". It's definitely not! You still have to keep in mind where you are going, even though you are only implementing for the present. Not only does that enable you to refactor, but also cuts down the refactoring time itself.

        Joel's code is inherently refactorable because he's used to writing like that - and used to refactoring. What Joel hasn't said is that you have to purposely make your code easily refactorable from the outset, otherwise you'll spend your whole life refactoring from one feature to another.

        So take your hideous house of cards into the middle of the street and shoot it if you have to. Refactoring may just be a waste of your time if the design is not easily refactorable.
        • I'm not quite sure what "refactorable" means, but I want my code to be like this:

          * Good Cohesion

          * Low Coupling

          * No Duplication

          It seems to me that the point of refactoring is often to make the code be this way. I don't think code has to already be good to refactor it, though mediocre code is clearly easier to work with than terrible code.

          • I'm not quite sure what "refactorable" means, but I want my code to be like this:
            * Good Cohesion
            * Low Coupling
            * No Duplication


            Refactorable really means keeping your code in a state that allows it to be cheaply and quickly refactored. If you have to spend hours and hours to refactor you code, it's not worth it - it might be cheaper to rewrite it. If you consciously write your code so that it can be played with (ie. it's readable, consistent), you will have better luck.
    • by SuiteSisterMary ( 123932 ) <{slebrun} {at} {gmail.com}> on Tuesday March 19, 2002 @10:25AM (#3187211) Journal
      Refactoring means that when you find a more efficient carburator, you install it in your car and go. Ground up rewriting means that when you find a more efficient carburator, you throw your old car in the trash, go buy a new one, and install your new carburator in it.
  • by EnglishTim ( 9662 ) on Tuesday March 19, 2002 @09:01AM (#3186667)
    I found this quote (from a Slashdotter) quite funny:

    I was in a company that was run by technical people, but when the company ran into financial trouble, decided to become more "market oriented".

    They hired a bunch of professional executives, marketing people, etc. Marketing was put in charge of determining product direction, as they knew what the customer wanted.

    Well it turned out that the technical people were in fact smarter than the marketing and PR guys, who seemed to think that software could be created by committees and meetings and lots of vision. The company sank like a rock."


    (S)He blames the downfall of the company on the marketing people, and yet had stated earlier that they were already in trouble anyway. Sounds to me like the company was doomed irrespective of the marketdroids.

  • by juliao ( 219156 ) on Tuesday March 19, 2002 @09:02AM (#3186672) Homepage
    From the article:

    slashdotters are not exactly famous for reading the things they are commenting on

    Oh well...

  • WINE-Win95 (Score:4, Insightful)

    by uebernewby ( 149493 ) on Tuesday March 19, 2002 @09:05AM (#3186686) Homepage
    I doubt that it will be enough for WINE developers to catch up with Win95. No one uses the out-of-the-box version of Win95 anymore, do they? There's all sorts of updates you need to get your software running and, yes, those updates include additions/changes to the API.
    • The Point Is... (Score:2, Insightful)

      by GeekLife.com ( 84577 )
      That almost all new apps are *tested* on the plain vanilla Windows95. So if WINE gets to that level, all of those tested apps will work fine on WINE.

      He's not saying that there are a ton of people out there using unmodified Win95, just that the vast majority of Windows programmers program with that possibility in mind.
    • by rlowe69 ( 74867 )
      No one uses the out-of-the-box version of Win95 anymore, do they?

      Two things about Win95:
      1. Microsoft no longer supports Windows 95.
      2. USB is not natively supported in the early versions of Win95 (and later versions are spotty, they get it right by Win98).

      So on that level, Joel's arguments are flawed. Less and less people will be testing on Win95 because MS doesn't support it any more. The WIN baseline now starts at Win98.

      Another thing: if you DO use Win95, do you test the off-the-CD version or the highly patched (practically Windows 98) version? Grey grey grey area, Joel.
    • That's true for the typical end-user mass-market software you're probably thinking about, e.g. office applications. But for the most part, this software is already available on Linux anyway as native applications, so there isn't any real need for WINE. Sure, having the Windows apps work on WINE would make the transition to Linux much easier for a lot of people because the software would be exactly the same, but it isn't really essential.

      There are, however, also thousands of custom-developed applications out there that have been written for a niche market or even just a single customer. A hell lot of these applications will work with an unmodified version of Windows 95 (or Windows NT 4.0), simply because they tend to get updated less often and the updates tend to be small enhancements in functionality rather than a complete rewrite of the GUI just because using an Explorer-like toolbar would be cool.

      If this software doesn't run on Linux, many small and medium businesses don't even have the chance to run Linux without previously spending thousands of dollars to have their software rewritten.

    • According to Joel, if you paraphrase his comments on WINE you can determine people have been wasting their money buying the newer versions of Windows because EVERYTHING works moderately well with Windows 95. Somehow I doubt that.

      I found him to be talking in circles. He talks about not rewriting software from the ground up in the original interview, and then he mentions he always rewrites his code? Ok, so translated, he doesn't rewrite software from from the ground up--he rewrites software from the second floor up!
  • Show us the Code (Score:4, Interesting)

    by Greyfox ( 87712 ) on Tuesday March 19, 2002 @09:09AM (#3186710) Homepage Journal
    Joel says he's been programming for 20 years. Is any of his code available for public review? I looked at his web page briefly but nothing jumped out at me.
  • by juliao ( 219156 ) on Tuesday March 19, 2002 @09:10AM (#3186714) Homepage
    From The Tao of Programming [juliao.org]:

    A well-used door needs no oil on its hinges.
    A swift-flowing stream does not grow stagnant.
    Neither sound nor thoughts can travel through a vacuum.
    Software rots if not used.

    These are great mysteries.

    • Thus spake the master programmer:
      "Though a program be but three lines long, someday it will have to be maintained."

      I guess most of you will know what happens to your room when you always move things around and add things, but never clean up...

      Now there's the reason code rots. Old code tens to be changed and have things added, but hardly ever gets a clean-up. That way the design is lost, the code gets bigger and bigger and easily becomes buggy. This makes changing code harder over time. Most if the time this goes on until there is no one left that understands how it works and it has become to hard to find out, compared to a complete rewrite.

      Joel states: "Half the time when I go into a function to fix a little bug, I figure out a cleaner way to rewrite the whole function, so over time it gets better and better."
      And he makes a good point there, maintaining code should be more than just changing and adding things, it should involve clean-ups to prevent rotting of your codebase. But cleaning up is way easier if your the only one using the code, and in a company there is always the pressure of deadlines and marketing.

      And of course it's just more fun to write somthing new...
  • Its teamwork (Score:2, Insightful)

    by cholokoy ( 265199 )
    Most software projects are made by teams and as in any team activity, its the weakest and strongest links that will determine the success of the team.

    Take any game like hockey or basketball, many teams have exceptional players but they don't win championships. Those that do play with teamwork on their minds that's why whey get to win.

    Blaming marketing or second-rate programmers is not the way to go it should be a team effort wo win because not many games are played solo like tennis or golf. Even those games require seconds that provide valuable support to the player.
  • Joel: Well, most people with encyclopedias only look up 0.01% of the topics in the encyclopedia. But would you rather have the Encyclopedia Britannica or would you rather have a lightweight brochure containing the top 100 topics? (You might answer: on a camping trip, I'd rather have the lightweight brochure. Fine. Get the brochure for your camping trip. But at home, where all that 'bloatware' isn't actually costing you anything, you want the full edition.)

    "Bloatware isn't actually costing you anything"!? How about more time to load your application and a significantly higher probability of it crashing as the code becomes more bloated and less maintainable?

    There is a gigantic chasm of a difference between "bloatware" of information, and bloatware of software features.

    • Not really.
      On Windows & Linux (I believe, not certain) pages are being faulted to memory, so if you've a part of the executable that you don't touch, then it's simply not being brought to memory.
      If you've a 100MB exe, but you only use 1MB of code from it, then it will use only 1MB.

      As for the other reason, any big enough project is being cut to pieces, on Windows, it's usually COM objects, meaning that it's fairly easy to dissect the parts that gives you trouble.
      Beside, if you don't use something, it can't crash your program.
    • So you're making the assumption that extra features all affect your base functionality, which is of course erroneous. With good programming, extra features go into their own libraries and should have abscolutely nothing to do with a higher probability of your app crashing. Either you're not familiar with programming, or are just a bad coder who does not understand separating functionality through modularity.
  • by 47PHA60 ( 444748 ) on Tuesday March 19, 2002 @09:13AM (#3186739) Journal
    Joel seems to admire himself for doing just that, as when he talks about why his own code doesn't decay (he keeps freshening it up, you see. In other words, rewriting it over time).

    This is easier to do when it's just his code, versus a large set that more than one person maintaining it over a decade (like the evaluated software that was foudn to 'decay').

    Also, Joel stated that the problems with Outlook were with "1%" of the code, but that is not the point. The slashdot comment was not commenting on the quality of Outlook's code, but on the flaws inherent in the design of the application (such as executing untrusted software and not following mime type information when passing data to the OS). I think that the post was talking about a redesign, which would mean a rewrite, and Joel dodged that one (or just didn't understand it). Fixing bugs in good features is different from tossing bad features.
    • Also, Joel stated that the problems with Outlook were with "1%" of the code

      5000 parts per million (0.5%) of lead in your water is a lot.

      It only takes one bad line of code to crash everything.

      Who does this guy think he is kidding with this 1% figure?
    • Those two points that you noted could be fixed in about a week by someone who knows the product.

      As for a redesign, it's a totally different thing than re-writing.
      Re-design mean that you change the way that the product works, but you get to keep a lot of the old code, because you keep the code in a working order *all the time*.
      Re-writing means that you start from zero, so you don't have a working product until you are done, see NS for the results of such a thing.
    • Right, because executing untrusted scripts is the core functionality of Outlook. And here I was thinking it was composing emails, dealing with contacts, and scheduling appointments. Joel is right, and you're not understanding his point.

      Outlook has a problem with attachments to email, which is probably actually less than 1% of the codebase of the product. Therefore he is right, and saying that rewriting everything in the program is the only way to fix it is wrong. Sure, let's redo the spellchecker, the datetime picker for the calendar, the user interface components - ONLY by rewriting all of those things will Outlook be secure!

      It only takes one bad line of code to crash everything.

      Yes, thanks. So should the solution be to rewrite that one line or the whole app? Hmmmmmm
      • Outlook strips all executable attachments, period. Outlook XP does that, Outlook 2000 does that after you've installed the service release (free download).

        A rewrite is not necessary, it's already fixed. However, there are still people believing that we're living in 1996 or something and that nothing has changed.
        • I agree that that's a good solution for the corporate environment, but I never liked that solution personally, as it assumes that every user has no idea what they're doing. MS held out too long in this case, hoping that user education would enable users to not open pif/vbs/exe files, but eventually just shut off everything. So now when I want to send something, it's a pain because you have to rename the file. I thought a better solution would've been to allow Outlook to have its attachment policy set by Exchange, where some users could receive no active attachments, some could only save to hard drive, and some could execute directly. This might already be available, perhaps I'm just not aware of it.
    • Oh christ. Can't you people bother to educate yourself and realize that Outlook XP doesn't approach things this way.

      They've already fixed the design issues by refactoring, it's time to get past that and start thinking about new things to whine about.
  • I know this may come as a shocker, but Joel may not necessary be right all the time. But I have followed some of his work for a few years, and he defiently is qualified to say the things he says. So don't blow him off.
  • In short: He defends his position and makes some interesting remarks on Linux and the desktop.

    WHAT IS HIS POSITION?

    I realize links are provided that can be scrutinized to determine this, but there is a reason a space for 'story summary' is provided...
    • His position is that he likes his Linux on his servers, but sees absolutely no reason to put money into porting his product to this platform, or to Mac, because he says it does not make business sense. The site was not Slashdotted, so I'm not sure why you had time to ask, but not to peruse the article yourself. But glad to help.

  • "Half the time when I go into a function to fix a little bug, I figure out a cleaner way to rewrite the whole function, so over time it gets better and better. "

    So it's not that his code rots with time ... it started out that way 8^}

    Sounds like he could save quite a bit of time and maintanence nightmare if he just invested the effort to write it well the first time. It may sound negative, but this guy is a constant wealth of contradictions. He doesn't advocate re-writes of the product, but 'half the time' re-writes functions? Doesn't he know that the function *is* a product?
    • "Sounds like he could save quite a bit of time and maintanence nightmare if he just invested the effort to write it well the first time."

      You people seem to be going out of your way to miss Joel's point on this.

      Routine code maintenance (ie, refactoring code, adding small improvements, etc.) is a standard part of the development cycle that every good software team follows. Doing so does not mean that the product wasn't written well the first time. (You Linux people should know that better than any of us, but I digress...)

      Code maintenance is not the same thing as a complete code rewrite, which is what Joel is arguing against. Incidentally, lack of proper code maintenance over time will likely result in the unwieldy mess that Stephen Eick describes.

      So does code rust? Of course not. Does poorly-developed, unmaintained code rust? Maybe, but that still doesn't mean that everything should be rewritten from scratch.
    • Sounds like he could save quite a bit of time and maintanence nightmare if he just invested the effort to write it well the first time.

      Yes, software development would be a breeze if we could write perfect code the first time.
    • Sounds like he could save quite a bit of time and maintanence nightmare if he just invested the effort to write it well the first time.

      This is counter to the XP get-it-out-the-door-with-the-minimum-amount-of-wor k thinking. If you only need your function to do one thing right now, only implement the one thing right now. No use making the function more complicated - you'll only 1) take more time to implement it and 2) make it more complex which adds opportunity for bugs and increased testing cases to handle.

      Having minimally implemented functions also lets you have an almost-always exectuable codebase, which is important to XP.

      When you see that the functionality NEEDS to be extended, you extend it. Not before. You can still make the design before you write in that code for the other 4 features, but holding off from coding and then refactoring them in later incrementally will make your testing and maintaining life a lot easier. Just keep in mind you are going to refactor if you want to make it easier to incorporate them in.
  • On Costs (Score:3, Insightful)

    by CaptainZapp ( 182233 ) on Tuesday March 19, 2002 @09:21AM (#3186774) Homepage
    Now let's look at Outlook. There are hundreds of developer years tied up in that code base. 99% of the code is fine. 1% of the code isn't. Throwing out the whole code base and beginning from scratch is extremely unlikely to be cost-effective, because you have to reproduce most of those hundreds of developer years from scratch, and what guarantee do you have that the new code won't have just as many bugs

    True, scrapping and re-creating Outlook is certainly not cost-effective for the Microsoft.

    Unfortunately the current Outlook mess is not very cost effective for their customers, just hit by the worm-du-jour.

    So I guess it just depends from whose perspective you define "cost-effectiveness".

    • True, scrapping and re-creating Outlook is certainly not cost-effective for the Microsoft.

      Unfortunately the current Outlook mess is not very cost effective for their customers, just hit by the worm-du-jour.

      So I guess it just depends from whose perspective you define "cost-effectiveness".


      This is a lame argument, for two reasons.

      (1) Microsoft released a patch that ultimately fixes 99.9% virus and worm problems in Outlook, by not allow Outlook to have access to any attachments that are executable. It's been available for well over a year now. The same technology is built in to Office XP.

      (2) Now that you know the above, you can guess what problem number two is with your argument -- it doesn't matter if Microsoft 'fixes' the problem, either by releasing a patch as they've done, or rewriting Outlook from the ground up. It's still going to take a long time for most people to stop using the versions with huge, gaping security holes.
  • by dipfan ( 192591 ) on Tuesday March 19, 2002 @09:23AM (#3186790) Homepage
    Once every open-sourcer has seen their marriage break up by installing Linux on their non-technical spouse's computer, they'll finally understand that, no, most people don't prefer command lines.

    Non-technical Spouse: "No, honey, the reason I had an affair with the baby-sitter was because you installed Slackware."
  • Narrow viewpoint (Score:5, Interesting)

    by costas ( 38724 ) on Tuesday March 19, 2002 @09:24AM (#3186793) Homepage
    Joel Spolsky makes good points and his articles are usually excellent reading, regardless if you agree with him or not --I usually do. However, I think he over-generalizes his conclusions based on his own experience --selling consumer-oriented, "shrink-wrap" software. He leaves the entire enterprise software world out of his viewpoint and some of his conclusions don't make sense in that sphere.

    For example, I tend to agree that "software doesn't rust". But that holds if your customer is Joe Q Public; it doesn't (usually) hold for enterprises. E.g. his Net Present Value calculation in the article doesn't take into account opportunity cost, i.e. the competitive advantage a company would gain if it upgraded their old F77 program into a faster one, with more mindshare (easier to lure/train IT staff) and more features that would increase productivity and lower costs.

    Again, I do usually agree with Joel and read his essays religiously, but I wish he opened his worldview to the rest of the software industry.
    • Re:Narrow viewpoint (Score:3, Interesting)

      by ajm ( 9538 )
      Very true and well put. The world of shrink wrap is different from the world of internal only enterprise packages, which is also different from the world of expensive packages sold to a, relatively, small number of customers. It's not always true that what works for shrink wrap works inside an enterprise.
  • bloatware (Score:4, Interesting)

    by tswinzig ( 210999 ) on Tuesday March 19, 2002 @09:26AM (#3186803) Journal
    Or, here's an argument that even the youngest slashdotters will understand. The WWW is bloatware. Finding things is impossible because there's so much stuff out there. Think how much hard drive space is wasted on all kinds of web pages that only .00000000001% of the world ever reads. Since the vast majority of people only go to Yahoo, Ebay, and MSN, wouldn't the WWW be better if it only had Yahoo, Ebay, and MSN? It would be much more "optimized."

    One difference is I don't run the entire WWW on my computer.
    • It's an analogy (Score:2, Insightful)

      by inerte ( 452992 )
      That you didn't seem to perceive. He was saying that removing or denying even some of the smallest features is not a good thing.

      I don't see how your argument can counter-attack his. Sure, you don't run the www on your computer. But still, you 'run' the www when you browse the internet. Doesn't matter where the features are located, the point is somewhere, somehow, someone might need.
  • by GeekLife.com ( 84577 ) on Tuesday March 19, 2002 @09:32AM (#3186843) Homepage
    Hmm...There's nothing preventing any company out there using slashdot comments as interview material for the entire content of their site, right?

    It feels weird unknowingly providing content for a for-profit site I don't (often) visit or care about, but I suppose my comments are public-domain once I've posted them here?

    I know it doesn't fit in with the copyleft thing, but shouldn't they at least have to ask before using slashdot content for their own means?
    • Part of the principle of fair use is that it's okay to quote from a published source, even at length, if your purpose in quoting is to comment directly on the material quoted.

      So no, they shouldn't have to ask before using Slashdot content for their own means... if, as in this case, their purpose is to comment on what they quote.
    • by Geek In Training ( 12075 ) <cb398@@@hotmail...com> on Tuesday March 19, 2002 @10:19AM (#3187151) Homepage
      ...shouldn't they at least have to ask before using slashdot content for their own means?

      Legally, they don't have to do any such thing. What would be nice, however, is an oft-forgotten concept known as Professional Courtesy.

      It went out of style sometime between when the entire corporate work-force was made up of white male WWII verterans who wore white shirts and black ties to work (at leats on TV); and the high-ranking executives of companies like LTV Steel in Cleveland taking 17 million dollars in bonuses three weeks before the company filed for bankruptcy, putting three thousand blue-collar steel guys in line for unemployment benefits with no pension of health coverage.

      Sorry to be offtopic... yes, it would have been nice for them to ask, but now that professional courtesy is dead, I'd be more surprised if someone DID ask permisson than if they just did whatever the hell they wanted for an almight buck to make sure the CEO gets to buy the "big yacht" this summer.

      (And FYI, "Flamebait" does not mean "I disagree with this person." Point down your modpoints for a minute and take the time to write a thoughtful argument. Also, I work for a corporation, and I am critical of corporations. It's not hypocracy, it's called "taking a stand for change from within.")
    • This gets bizarre when you think about it.

      From their point of view, Slashdot is a page with a lot of comments, so quoting a tiny piece of that large page, is certainly fair use.

      But "Comments are owned by the poster." From your point of view, they didn't take a tiny fraction of a page -- they took most of a whole comment. Not fair use?

      Eww.. what a mess!

      IMHO (IANAL, etc) they're right. When you send your stuff to a public viewable website, post it to usenet, etc. you know what you're getting into. And if you don't want a wide-as-possible audience for your words, why are you posting them in a public forum?

    • "shouldn't they at least have to ask before using slashdot content for their own means?"

      I'd like to point out that they are not using slashdot content, they are using written speach.

      Do you want to have to ask every time before saying, "So and so said, 'such and such'"?

      I didn't think so...

      At least I hope not, Gawd!!

  • Well... (Score:2, Informative)

    by epiphani ( 254981 )
    After reading the entire article, I have a few comments directed at Mr Joel Spolsky, since I am sure he will be reading.

    You have what I would call a superiority complex. I would say that is completely normal for a technically inclined or computer competant person. One thing you dont have, which is quite evident in your last statement, is a simple respect for your peers.

    Now, I may not directly consider you a peer, for the simple fact that we differ on a number of simple comparitive issues. You are stuck in the past. Since you will most definitely ask for some type of proof of this, allow me to explain.

    In your responce to the question regarding the recode of a fortran program, you responded:

    First of all, yes, you should hold onto a program in FORTRAN "just because it works." Don't even talk to me about spending money replacing something that works.

    Do you hold on to an old 286, even though it could easily crash purely because of its old-hardware, just because it works? Do you hold on to a 1982 Toyota Corolla, just because it works? No. For the safety of you data, and for the safty of your family, you go and get new stuff.

    Of course, your responce will be well, programs dont degrade with time. I say they do. Allow me to elaborate once again.

    I've worked on a number of programming projects. One of which works perfectly, but we are still planning a complete rewrite of. For a matter of context, I'll involve the name. The Bahamut IRCd [dal.net] happens to be presently supporting over 130,000 simultanious connections between about 30 servers. It will probably be quite good until well over 200,000 connections. But we're rewriting it anyway. Because we've learned one thing the hard way. Dont wait for problems to come to you. Just because your software works fine with 10,000 users, doesnt mean its going to scale to 11,000 users.

    Programming in *any* arena is not cut and dry. Programs are *never* "perfect", as you as a software developer should know. If you've worked on any project of any reasonable size, then you realize that there is a point where picking through old code to improve software isnt worth your time, and you can simply rewrite the whole damn thing to do what you want and accually have spent less time doing it.

    • Re:Well... (Score:4, Insightful)

      by ergo98 ( 9391 ) on Tuesday March 19, 2002 @10:01AM (#3187013) Homepage Journal
      You're preaching just as much as Joel ever does, so I don't really understand why you're accusing him of a superiority complex. If you are bothered that Joel has a platform, realize that it is the result of many brilliantly insightful articles that he has written (that's my opinion, anyways. Especially concering UI matters where it is eye opening and humbling).

      However, I think everyone here is taking what Joel is saying GROSSLY out of proportion : There are two poles in software rewriting -> Those who approach every issue with a "we have to rewrite this piece of crap" (these programmers are common and have cost companies billions in cost overruns. "Hey Jim I noticed on that report that it's cutting off the interest rate at 5 characters : Do you think you could increase that to 6?". Then, six days later Jim replies "Oh man, I looked at that code and it's horrible! I'm going to develop a mega new reporting engine in C# that'll use an XML subsystem". Three years later the six character interest rate still isn't there. Again this is common because many programmers do not have checks and balances, and it's much more heroic and personal to rewrite the whole thing and lay a grand claim to fame than to just do a quick fix isn't it? On the other end of the pole are those who treat all code as sacrosanct : From what I've read Joel is not one of these people. Exactly as he stated (which many people jumped on as hypocrisy where there is none): He is an advocate of refactoring, which as a philosophy is entirely unlike rewriting.

      Let me put it another way: Every now and then I watch one of those HGTV shows where they remodel a home, and sometime I am stunned because in the end they've replaced virtually the entire house, so naturally my question is "Well why didn't they just bulldoze the original house and start from scratch?", but obviously there were benefits to going on the existing infrastructure. This fundamental holds significantly more true in software engineering (hehe, I use that term just to bother the PEs out there) because as a discipline it is far more "artistic" and far less defined than home construction. Why, then, are so many people so willing to rebuild from scratch with no proof of improvement? I can't make comments on your specific project, but in the grand tradition of program rewrites, you'll complete it and find that now you can handle 210,000 connections, so you'll just have to rewrite it again...
      • Joel was commenting about a study that indicates that software does "decay." In one old project, a lot files had to be touched for a simple change; then, after what amounts to a "refactoring," changes were more localized. after time, the old situation recurred, in which a lot of files had to be modified for a change.

        Joel's reply (paraphrased) consisted of, "Well, perhaps for *that* study. But *my* code doesn't rot. I'm constantly refactoring it!" So he claims the study doesn't apply to his software, because he's constantly refactoring his code.

        He needs either to read the questions before answering them, or get struck repeatedly with a Very Large Cluestick.
    • Do you hold on to an old 286, even though it could easily crash purely because of its old-hardware, just because it works? Do you hold on to a 1982 Toyota Corolla, just because it works? No. For the safety of you data, and for the safty of your family, you go and get new stuff.

      This is merely a clash of values. Safety is the key value in your example. In the more general case, most Slashdotters are .. uh .. romantic fools and just want maximum quality. ;-)

      This dude just has one value: maximum profit. He's not talking about how to make the best programs; he's talking about how to manage a business. He's a computer industry Darwinist, and when you look at Microsoft vs WordPerfect et al, profit really is the metric for selection.

      Note that I said computer industry, not the overall bigger picture or the (to steal from Knuth) The Art of Computer Programming. He sees a piece. You see a piece. Maybe everyone's got a blind spot.

  • by hyacinthus ( 225989 ) on Tuesday March 19, 2002 @09:40AM (#3186886)
    Spolsky asserts that Linux won't be a player in the desktop market until it can run Windows applications. I find this a very puzzling assertion--one I've seen elsewhere. Certainly the case of OS/2 clearly refutes this notion: OS/2 could run Windows applications, could even run them better than Windows itself, but then, why run OS/2 when you could just run Windows, and (more importantly) why _develop_ for OS/2 when by developing for Windows you could cover both bases.

    I spot a flaw in my analogy, which is that OS/2 was a commercial competitor, while Linux is "free" and therefore more attractive.

    hyacinthus.
    • Developing for OS/2 was harder than for Windows, because MS did everything that they could to convince developers to develop for Windows, and IBM force developers to pay for the info needed to program for OS/2
      This, along with several other foul-ups, resulted in OS/2 being the inferior platform.
    • The reason that WINE is necessary in order to make Linux a significant player on the desktop is the huge installed base of existing apps that people and companies can't afford to abandon overnight. For example, I work for a financial institution with about 60,000 desktops. We have dozens (hundreds?) of canned apps that we bought from a wide spectrum of vendors.

      These apps vary widely in both quality and support for current technology. We still have vendors successfully selling Btreive and NetBIOS based apps to our business units, for Pete's sake! I know of at least one case where we're still running Win 3.1 on about 100 desktops to support one of these ancient apps.

      Why do the vendors get away with it? Frequently, the vendor is the only one, or one of two or three vendors, in a very small niche market. In other cases, the business unit failed to do a proper search of the market for choices, and/or they also failed to ask for help from the tech guys early in the product evaluation process. We too often find out about these problem apps AFTER the business unit has already signed a contract. Fortunately, that's very slowly changing for the better.

      So, where does that leave us? Well, if we want to quit paying the Microsoft tax on the desktop, we absolutely need WINE. Otherwise, we're stuck. A good portion of the business world is in the same boat.

      Home desktops, by contrast, could probably be cut over to Linux fairly painlessly if; a) people could sync their PDA of choice to the mail and calendar package of choice and b) the bulk of their favorite Windows games would install and play painlessly.

      I have no clue whether anyone has addressed the PDA question fully, because it's not an area I personally care about. Some tweaked variant of WINE like WINEX, or compiled WINE with OpenGL hooks, is necessary to make the latter happen. Even then, I can't call the game install process painless yet.

      So yes, while I disagree with a lot that Joel had to say in this interview, I have to reluctantly conclude that he's right on the money concerning his views about Linux on the desktop.
      • Emulating games will be the toughest accomplishment. More and more games are being written in DirectX, which goes through pretty big changes every year or so (the difference between 8 and 7 is huge). Its going to be a lot of work to make directX compatibility layers, and by the time a decent version is ready Microsoft will probably have released a new version.

        Moreover people fail to realized that software isn't the only thing linux needs to be compatible with. Windows is compatible with damn near every piece of hardware produced (though there is usually a lag time for drivers when a new Windows is released). No other OS can really claim this. Wine isn't going to help here, hardware companies need to start caring about other OSes (and either produce their own drivers and release documentation so others can make drivers).

    • You dance near to the issues, but what really needs to happen is for several OSS alternatives to Micro$soft wares to become popular on Windows. Once that happens, switching to Linux, *BSD, or whatever else might come down the pike becomes easy and logical (ie: 'We already use X, Y, and Z software, which run on this 'Linux' too, may as well have a more stable environment at a lower cost too').

      MS does not have a monopoly because of Windows, they have a monopoly in spite of it.
      • what really needs to happen is for several OSS alternatives to Micro$soft wares to become popular on Windows

        This is an interesting point, and it's one of the reasons that I'm very happy for the progress of products like StarOffice and Mozilla. My dad is a high school teacher, and this year he's updating some technology courses with simple stuff like assignments to create a webpage, write a document, use a spreadsheet. Nothing fancy, but he is finding that OpenOffice (even a 6.0 beta build I think) is working quite acceptably for him. Yes, still more work to do on the import filters, stability and features, but for his needs it works. OpenOffice is also attractive because Sun donated a nice server and a bunch of thin clients to his school this year, but that alone wouldn't be enough to convince him to use it in his classes.

        If he can get more than just a few entry-level classes using OpenOffice, then more people can switch seamlessly between the Windows PCs and the unix thin-client lab. Of course, they don't have the expertise or motivation to put linux on PCs, but this definitely lowers the barrier to entry if somebody wants to advocate it down the road.

        Now my church is looking for a database package to track members of the congregation, their areas of involvement or interest, elderly people who want to be visited at home or in the hospital etc. Our membership is getting too large for one or even a few people to keep track of everything in their heads. They're looking at custom database software targetted at churches. I'd love to recommend a free (libre) database to them, but I don't know anything that will allow them MS Access-like ability to design the front end to make it usable by volunteers or the church secretary. I certainly don't have the time to provide tech support myself - I'm already very involved in other areas. If the free software community can begin to fill niches like that with cross-platform software, it's going to be a whole lot easier for people like me to evangelize free OS's.
    • Saying that Linux needs to run Windows apps to succeed on the desktop is a claim of a necessary condition. Saying that the success of Linux on the desktop is guaranteed by running Windows apps is a claim of a sufficient condition. Therefore your "counterexample" (OS/2) does not refute the apparent assertion by Spolsky (Linux won't be a player in the desktop market until it can run Windows applications).

      Check out this page [www.sfu.ca] for more information about necessary and sufficient conditions.

      For the record, I take no position about whether running Windows apps is either a necessary or a sufficient condition for the success of Linux on the desktop.

  • Once every open-sourcer has seen their marriage break up by installing Linux on their non-technical spouse's computer, they'll finally understand that, no, most people don't prefer command lines.

    My S.O. is not a computer geek, but is fairly good with computers. She likes working at home on Linux, and complains regularly about MS-Win2k at work. She says, "It won't let me do anything."

    Installing Linux hasn't destroyed my marriage. In fact, since I've installed Linux, she's agreed to marry me.
  • I also think that Win95 compatibility - but 100% - would be enough for most non-games.
  • Joel on bloatware (Score:2, Insightful)

    by Anonymous Coward
    > SMS: Another interesting point was raised in reference to bloatware... Do you
    > think a product like Microsoft Word would benefit by having every feature that is
    > used by 1% or less of the installed base removed from the product?
    >
    > Joel: ...The WWW is bloatware. Finding things is impossible because there's so
    > much stuff out there. Think how much hard drive space is wasted on all kinds of web
    > pages that only .00000000001% of the world ever reads. Since the vast majority of
    > people only go to Yahoo, Ebay, and MSN, wouldn't the WWW be better if it only had
    > Yahoo, Ebay, and MSN? It would be much more "optimized."

    With Joel from Microsoft at the helm the entire contents of the Internet would reside on a single loooooong web page.

    The oposite of MS-Bloatware (TM) is not lack of features. The opposite is UN*X's lean tool approach. Use tools for one function or a small set of tightly related functions. Create a screwdriver to screw screws, a hammer to nail nails. You do not create a Rube Goldberg machine with a flight simulator.

    ___
    Anonymity is freedom!
  • by Salamander ( 33735 ) <jeff.pl@atyp@us> on Tuesday March 19, 2002 @10:06AM (#3187052) Homepage Journal

    Joel thinks that rewriting things is a bad idea because it loses information embedded in the old code (original anti-rewrite essay [joelonsoftware.com], search for "Nancy" to find a good example) and then says in the interview:

    Half the time when I go into a function to fix a little bug, I figure out a cleaner way to rewrite the whole function

    This is the same guy who wrote Yet Another Bug Tracking System while observing that such things were a dime a dozen, and then went on to write Yet Another Content Management System without defining its target market, even as he criticized others for such undirected development. Apparently, Joel's quite comfortable stating commandments for others while living by different rules himself. His articles are unfailingly interesting, but should by no means be accepted as authoritative (as is true for anyone who spends more time on the pundit circuit than actually programming)

  • I see some of the more insightful posters' comments were excerpted for the article. Fair enough. It does bother me though, that they lacked attribution.

    Yes, Slashdot is a public forum, but posters still retain copyright on their comments, and if they're excerpted and posted in another public publication, attribution, or at least a hyperlink to the original comment in context strikes me as the proper (and legal) thing to do.

    Perhaps it was felt that a single link to the thread holding all the comments was sufficient, but I tend to disagree.

  • Thank you, Joel (Score:5, Insightful)

    by jquiroga ( 94119 ) on Tuesday March 19, 2002 @10:13AM (#3187102)
    I could rant a bit about how wrong (or right) Joel is about lots of topics, but that would be a little redundant.

    Instead, I would like to say thank you. Thanks, Joel, for writing about your opinions and experiences, the lessons you learned, what you did wrong. Thanks for taking the time to tell us. It doesn't matter if we agree with you or not. Thanks for trying to help, you centainly help me a lot.
  • by Lumpy ( 12016 )
    I was going to respond with the same open-minded ness I had on the last article.. but after reading his comments... He leaves no doubt...

    He has no clue and just likes to hear himself talk... another name for me to add to my wanna-be from microsoft list.

    Please Joel, you make yourself sound less credible with the way you talk.. and please stop interjecting things you make up for shock value, this isn't morning radio.. sane people don't leave their spouse over linux, so stop the shock-jock act.. it just makes more of the community write you off as hack.

  • by GooberToo ( 74388 ) on Tuesday March 19, 2002 @10:23AM (#3187196)
    It's not true for the software that I've written, because I tend to refactor and clean things up regularly. Half the time when I go into a function to fix a little bug, I figure out a cleaner way to rewrite the whole function, so over time it gets better and better.

    In other words, his code decays MUCH faster than anyone elses. Glad he doesn't work for me. At "half the time", that means he's costing any project 50% more in his time/dollar worth. Ouch!

    Don't even talk to me about spending money replacing something that works.

    No, he doesn't replace an application at one time, it does it over a period of time, one function at a time. LOL!

    Well, most people with encyclopedias only look up 0.01% of the topics in the encyclopedia. But would you rather have the Encyclopedia Britannica or would you rather have a lightweight brochure containing the top 100 topics?

    What? I thought they were asking about optimization and maintaining code that no one used?!?! Perhaps he answered a different question for Reader's Digest and was confused.

    The good news is that a lot of stuff I write about UI is starting to have an impact on the Gnome and KDE people. There's a lot more appreciation for the value of good UI than there used to be in the Linux community. Once every open-sourcer has seen their marriage break up by installing Linux on their non-technical spouse's computer, they'll finally understand that, no, most people don't prefer command lines.


    Hmmm....and I thought this was a process of evolution simply because neither KDE or GNOME can snap their fingers and have everything under the sky that makes everyone happy. Gosh, it's taken MS how many years and they still don't have it right. Suddenly this is all about you Joe? Ya, I'm sure the face of UI is changed because you're the only one that can understand how computers are used. Oh ya...I forgot...you're the only one with parents that use computers...

    Well, I write code every day, and have done so for most of the last 20 years. I think this is pretty self evident if you read what I write on my site, but slashdotters are not exactly famous for reading the things they are commenting on!

    Seems I read what you said and I must say, aside from your high opinion of your self, you don't seem to understand much else.
  • by MattRog ( 527508 ) on Tuesday March 19, 2002 @10:26AM (#3187222)
    I liken the 'never rewrite' issue to MySQL. Yeah yeah, MySQL is cool and all and we all like it for interesting tasks and whatnot, but there are several glaring, fundamental problems with the database engine (filesystem buffered writes, inability to use more than one index on a query, no clustered indexes, crappy query optimizer etc.). In the spirit of object-oriented design, they said, "Well heck, we'll just allow different table types to be complied in and then we can avoid doing the hard work". In theory, this is interesting, but in practice, it is far less than they had hoped.

    InnoDB doesn't store a count of rows, so select count( * ) from table now takes far, far longer to return a result. Most RDBMs' operate this way, but to a developer who hasn't experienced that before (since MyISAM/Gemini store a count in the table) it would be confusing and not entirely intuitive why this happens. Not only that, but since text/blob/etc. information is stored on the row (instead of off-row like, again, other RDBMs') users of textual data now may find the hard row-size limit of InnoDB a problem when working with large amounts of text data (like it used to be in PostGRES).

    Gemini has their own sets of problems, some of which are due to MySQL's horrendous lock-manager (if such a thing exists). When you perform a table scan on a Gemini table, it appears that it will not escalate the table scan to a full table lock but instead dutifully lock each and every row (and it appears that it does not release the lock after it 'passes' the row either, only when the entire result set is dumped). In these sorts of cases, a table lock is far more efficient since you'll save the lock manager of maintaining count( * ) locks for your table. Also, since it is difficult to manage (if at all) the transaction log, deletions or modifications of many rows can cause it to choke on the massive amount of data in order to roll-back the transaction.

    Now, I don't want to make this a "I Hate MySQL" post, but I think it illustrates the "Well we can just make these little incremental changes here or there, or maybe make it modular so that we can simply 'hack in' new features whenever we think them up!" fallacy that Joel seems to love to stick by. It hasn't worked for MySQL, and for sufficiently complex applications I don't think it would work there either. There comes a time in which you must say "Well shit, we did it wrong. And all our core functions are locked in the old, broken way of thinking. If we re-do the core functionality, then we can be more competitive, have a better product, etc." Are we asking them to start over from scratch? In most cases I think that would be a bad idea. Obviously the MySQL parsing engine (which determines if SQL statements are valid) is 'good enough'; there's no reason to reinvent the wheel. However their lock manger could use a good overhaul.

    Or as Brooks said in The Mythical Man-Month "Plan to throw one away, you will anyway."
  • From the Article:
    "Our interview was reported on at www.slashdot.org, a lively location on the web dedicated to expounding the joys of Open Source programming, Linux, UNIX, and anarchy (among other things)."

    Open Source, Linux and Anarchy? Oh come on! I think we should "kill -9" anyone who believes that. Please share this post with all of your friends.
  • Not a moving target? (Score:4, Interesting)

    by drew_kime ( 303965 ) on Tuesday March 19, 2002 @10:50AM (#3187473) Journal
    But due to chicken-and-egg problems, running Windows apps is probably nonnegotiable for most people, so WINE is going to have to get a lot better before Linux is a threat to the desktop. I sort of expected with all the effort Corel put into it, it should be there by now, but they seem to be as far as ever from seamlessly running Win apps. (By the way, a lot of people think that the Windows API is too much of a moving target for WINE to catch up. As a Windows developer, let me say, this is rubbish. Almost every Windows app out there is tested on Win 95 to make sure it runs decently on the entire 32 bit Windows product line. If WINE could ever catch up to Win 95, they would be almost completely done. The target hasn't moved anywhere since August, 1995.)

    Correct me if I'm wrong, but when I install, say, Office 2000 on my Win95 machine, doesn't it update many dll's that were part of the original OS installation? That being the case, is it really true to say that new software runs on Win95, or is it more accurate to say that each new app provides an incremental OS upgrade?

    • Excellent point (Score:5, Insightful)

      by GCP ( 122438 ) on Tuesday March 19, 2002 @01:30PM (#3188833)
      Office now requires RichEdit 3.0, version 3 of the *system control* RichEdit. Since Win95 only has RichEdit 1.0 by default, an Office installation has to upgrade the OS -- and it does.

      Interestingly, Microsoft does NOT allow ISVs to distribute RichEdit 3, nor do they make it available as a simple download from MS.

      This creates two classes of application vendor. First class vendors are those named "Microsoft", and they are allowed to target the entire installed base for maximum revenue, upgrading any OS version to *make* it meet minimum requirements.

      Second class vendors are all others, and if they need the same thing Office needs, RichEdit 3 for example, they are advised to get their customers to go buy an OS upgrade from MS.

      Whether this is "fair" or not isn't my point. MS owns the whole platform. You can have any scraps that they don't want.

      If you clone the Win98 API, apps from second-class vendors, everyone other than MS, will probably run fine. The apps from the first-class vendor, Microsoft, probably won't.

      I say "Win98" instead of "Win95" because of the large number of vendors who have ceased to support Win95. If they can't upgrade the OS themselves, they either have to give up older OSes or give up some functionality that people are used to having in MS's own apps. Most have chosen to compromise, giving up some market, the Win95 platform for now, as well as the most recent nifty(Win2K+) features. In a couple of years, these vendors will be giving up Win98, too, so WINE *does* have to keep moving.

      That's the nature of the platform. There are two "installed bases", a big one for MS and a smaller one for everyone else.

      MS has made "3rd party horizontal app" an oxymoron on their platform. If WINE wants to run the most popular (a.k.a. "horizontal") apps, it has to keep up with the latest OS versions. Lotsa luck.

  • I havent read the first article they refer to, but the linked-interview give you a pretty good idea about what it was about.

    An I must say, it baffels me anybody want to argue with that guy. He one big contradiction,but i wont even comment on this since i saw a few comments on that subject
    already and this really talk for it self:

    that once a piece of a program has been debugged and various workarounds added, it represents a repository of stored knowledge and should be left alone

    a bit furter down the text we see(as a counter to a argument from a slashdotter):
    It's not true for the software that I've written, because I tend to refactor and clean things up regularly.

    But why not argue his point with him?Conversation/discussion is a be good, and people tend to learn from it.

    Because hes a pain-in-the-***. You ever met one of thiese programmers who made a obvious mistake. But you need to argue 28 minutes with them, begging them to fix it. And they throw alsorts of wierd examples at you, just prolonging getting the job done. Thiese guys dont want constructive input, they just want to be right.

    Joel needs to chill out. And stop talking about people that doenst share his views as interlectual inferiors("But not everybody writes code well" , "younger slashdotters" etc).
    Learn to have a discussion without creating lame examples to "protect" your own argument. Im thinking about the Encyclopedia example.. Thats the worst B******* ive ever read.

    If you buy a encyclopedia, its probertly to access to information about stuff you want to learn more about. Hence the "applications" job is to provide information, having only 100 words would be an incomplete application. The entire purpose of an encyclopedia is to provide you with information you didnt know you needed when you bougth the books.
    A wordprocessor application which doensnt feature the newest 20meg office assistent, text taperingtool, access integration etc. couldnt be defined as an incomplete application, just a application with is less rich on features. Bacially the applications can do the same thing, create documents. A 100 word encyclopedia wont do the same job as a full one, so, they cant be compared.

    And for the WWW example, again same thing. Information gaterhing. And even the younger of us slashdotters know that what is great about the WWW is that if you are one one the .00000000000000000000001% people that have a craving to read about fishing in nothern norway(or some other wierd thing), the WWW will have a page for u(and btw. what the freak would be the purpose of having yahoo if they only could index ebay and msn? doooh!).

    Simply put, so even the older-softwaremarketsolutions.com-article-authors- with-overinflated-egos can understand it:

    A WWW without webpages, or a encyclopedia with 100 words is not comparable to a wordprocessor/emailclient/what-ever-app with out office assistents , 3D logo generater, HTML wizards, Office exporter.
    Its more comparable to a wordprocessor with out keyboard support.

  • by AdamBa ( 64128 ) on Tuesday March 19, 2002 @12:12PM (#3188175) Homepage
    A former Microsoft architect (Stone) commenting on a former Microsoft program manager (Spolsky)...put 'em together and you still don't have a single line of code!

    The Baggage Factor [fourstones.net].

    - former Microsoft programmer

  • There are plenty of times I have thrown up my hands in disgust because some nutball wants to re-write a perfectly good app in the hot language of the moment.

    However, I live everyday with a badly thought out program married to absolutely bizzare methods for socket and thread support. If the very core of the program is rotten and maintenance costs more than a re-write then by the above author's own admission the project needs re-writing.

    I have seen both sides and extremists drive me nuts in all things.

    Don't throw out something that works and works well.

    Fix the program that works but does not work well.

    Re-write the program that does not work, breaks all the time and costs too much to keep in its current state.

    This is not freakin' rocket science!

    ________________________________________________ __
  • The good news is that a lot of stuff I write about UI is starting to have an impact on the Gnome and KDE people.

    Umm, since when do the KDE/Gnome people base their UI design on the writings/ramblings of Spolsky? News to me.

  • Refactoring equivalent in the automotive world...

    www.riceboypage.com [riceboypage.com]

Single tasking: Just Say No.

Working...