Slashdot Mirror


How To Make Software Projects Fail

Bob Abooey writes: "SoftwareMarketSolution has an interesting interview of Joel Spolsky, of Joel on Software fame. Joel, a former programmer at Microsoft, discusses some of the reasons he thinks some very popular software companies or projects fail, including Netscape, Lotus 123, Borland, etc." This interview brings out some mild boiler-room stories which sound like they could be the basis of a good book, along the lines of Soul of a New Machine .

340 of 905 comments (clear)

  1. Isn't it obvious? by smileyy · · Score: 2, Flamebait
    Joel, a former programmer at Microsoft, discusses some of the reasons he thinks some very popular software companies or projects fail, including Netscape, Lotus 123, Borland, etc

    I imagine the interview goes something like:

    Joel: We drove them all out of business.

    --
    pooptruck
    1. Re:Isn't it obvious? by tshak · · Score: 4, Insightful

      Actually, reading this interview shows how there where serious blunders performed by NS, Borland, etc. In each case, while MS improved their software, the other companies rewrote their software.

      --

      There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
    2. Re:Isn't it obvious? by Alpha+State · · Score: 4, Insightful

      It is funny how every company he talks about lost to MS. Seriously though, one of the things he does say is:

      Fortunately for Microsoft, they did this with parallel teams, and had never stopped working on the old code base, so they had something to ship, making it merely a financial disaster, not a strategic one.

      IOW, have more money than God and throw it at any problem you're having trouble with. The minnows in the pond get beaten up by the 800lb gorilla (or something).

    3. Re:Isn't it obvious? by scrytch · · Score: 4, Insightful

      > IOW, have more money than God and throw it at any problem you're having trouble with

      Didn't work for IBM in the early 90's, didn't work for Detroit in the late 70's and early 80's, still doesn't work for the government.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
    4. Re:Isn't it obvious? by scrytch · · Score: 2

      > My answer, one word: monopoly

      So how'd they get to be a monopoly? Not like there's just a single software mine that they controlled or anything. Recall how Standard Oil got to be a monopoly: their product was better and cheaper.

      But you probably have such a blind and visceral hatred of all things Microsoft that you won't consider that they could have gotten there on any shred of merit.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
    5. Re:Isn't it obvious? by scrytch · · Score: 3, Insightful

      You're utterly off the mark if you think you're going to provoke me into some Randroid rant in support of capitalism uber alles. Fact is, you know damn well as much as I do that the government does some things well, but other things it throws enormous sums of cash at are still extremely ineffective. You'll note I mentioned other behemoths that lumbered about throwing good money after bad, not just governments.

      > The internet? Highways? Electric power (which failed privately)?

      Show me a government owned power company in the USA. Regulation is not ownership, much (not all) of it comes because the monopoly was government-enforced in the first place, so they now have to control it. I work in a social service nonprofit, housing comes to mind as something the government consistently screws up (all the effective housing programs here are other nonprofits that don't receive government funds). This is all of course US-centric -- other nations governments might do some of these things well. It just further demonstrates that having the money does not mean it gets spent wisely in every case, which is the point you seem to be trying to sidetrack me from.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
    6. Re:Isn't it obvious? by stevew · · Score: 2

      Well - in many cases it DID work for IBM. Did you know that there were at least two design teams working on the IBM-AT. One of them ran into issues with fabrication of parts, and the other design completed and went to market (and sold millions of copies there of..)

      --
      Have you compiled your kernel today??
    7. Re:Isn't it obvious? by stevew · · Score: 2

      Hmm - gee - the Glendale Ca Power company comes to mind. Then there is the Los Angeles Dept of Water and Power. Thats two. There are few dozen municipally owned companies in CA - most not suffering from power outages last year!

      --
      Have you compiled your kernel today??
    8. Re:Isn't it obvious? by Malcontent · · Score: 2

      "Didn't work for IBM in the early 90's, didn't work for Detroit in the late 70's and early 80's, still doesn't work for the government."

      I didn't know the govt was going out of business.
      Over 75 percent of businesses fail. When they do they shaft most of the shareholders (the big ones cash out before the shit hits) and all of their customers and often a significant potion of the public at large (see enron and excite@home). Alas the govt does not have the same luxury. Could you imagine if the social security decided one day that it was just not profitable to give away money and closed up shop? Man wouldn't that be funny!.

      --

      War is necrophilia.

    9. Re:Isn't it obvious? by NatePWIII · · Score: 2

      I agree, it took a certain ammount of blood, sweat and tears to get them even viable, but at some point they began to use their power in an abusive manner. These anti-trust cases do have some merit you know. I'm not totally anti-microsoft, however I see how they treat their legitimate competion and their own customers.

      --

      Nathaniel P. Wilkerson
      www.haidacarver.com
    10. Re:Isn't it obvious? by s390 · · Score: 4, Offtopic

      Show me a government owned power company in the USA.

      OK, I'll mention a few: TVA (i.e., Tennesse Valley Authority, which lifted an entire region out of utter abject poverty during the Depression, SoCal's DWP (which not only distributes water and generates power, but also manages to generate power while distributing water), Sacramento's Municipal Utility District (MUD) which generates and distributes most of the power in north-central CA, and finally the BPA (i.e., Bonneville Power Administration) which built and still operates most of the hydroelectric power generation and transmission in the Columbia watershed. The Northwest has a lower cost of living partly due to low power costs (though it isn't guaranteed and it has been rising) and low water costs (likely to continue given near term global warming effects). Water, Power (and soon, Broadband) are _exactly_ the infrastructure investments that our government does well and should control. Private utilities are very vulnerable to economic fluctuations where their executives' self-interest leads them to try foolish deals and daft accounting tricks in search of short-term performance, while government can weather tough quarters (and years) without worrying about the stock analysts.

      In case you hadn't noticed, the major private power utilities in California are in bankruptcy and are desperately beseeching the State to bail them out (and might yet stick the tax and rate paying citizens after all, given how cozy their lobbyists have been with the CA PUC, Legislature, and Executive branch fixers, just about forever). One can only hope that the CA government and regulators now realize that the public is watching with interest and will nail them if they screw it up further, so they might fix it properly.

      Of course, private utility executives and board members never do get held accountable, nor do their government co-conspirators, but if things were to be really just, there'd be a few of them hung from lamp-posts in San Francisco before this is over. Screwing the public for private gain is just the sort of thing that deserves "extreme prejudice."

      Government utilities are a good thing, mostly (WPPS notwithstanding, but that was a _private_ boondoggle admittedly triggered by a BPA error). Private utilities are simply disasters waiting to ripen, explode, and be discovered, unless they are regulated into castrated quasi-governmental entities. The term "private utility" really is an oxymoron.

    11. Re:Isn't it obvious? by msaavedra · · Score: 2
      So how'd they get to be a monopoly?

      Sure, Microsoft's smart but ruthless business stategies helped to get them where they are today. But probably the most important factors for Microsoft's success had nothing to do with Microsoft. Here are some things to consider:

      1. Microsoft got their foot in the door at IBM because Bill Gates's mom was a friend of one of the bigwigs there.
      2. IBM, worried about their own antitrust problems, based their PC on commodity hardware and decided to license the PC operating system rather than buy it outright or write one for it themselves.
      3. The makers of CP/M refused to deal with IBM, so MS bought a quick hack of a system called QDOS and licensed it to IBM themselves.
      4. The IBM PC was a success, and eventually CP/M and a few other OS's were ported to it. Here's where MS actually had to work for their position. They beat out the other companies by offering an OS that was not very good, but was cheap.
      5. Compaq and Phoenix blew the PC industry wide open by reverse engineering the PC BIOS. The cheap clones dominated the personal computer industry, and MS licensed their software to the clone makers as well as IBM. Suddenly MS (and Intel) found themselves at the top of the heap, and both have used somewhat shady tactics to stay on top since then.

      Once again, I'm not saying that Microsoft's executives are incompetent and only got their monopoly through luck, but you have got to admit that they had a remarkable string of good opportunities. To their credit, they took advantage of them, though I think that just about anyone in that position would have done the same.

      --
      "Any fool can make a rule, and any fool will mind it."
      --Henry David Thoreau
    12. Re:Isn't it obvious? by markmoss · · Score: 2, Insightful

      while MS improved their software, the other companies rewrote their software. Improved??? If you are talking about anything since DOS 6.2/Windows 3.1/Office 4.x, don't you mean "Fixed a _few_ of the old bugs, added many new bugs, added features no one uses, dumbed it down, and made it incompatible with the previous version so eventually people who know better will still have to downgrade to the new version to stay compatible with the idiots they have to work with."

    13. Re:Isn't it obvious? by Martin+S. · · Score: 2

      We drove them all out of business by lying cheating and stealing, it's there own fault for not doing the same thing.

  2. Good point by Bandito · · Score: 5, Insightful

    He says:

    "My theory is that this happens because it's harder to read code than to write it."

    He couldn't be more right. I've recently been asked to port some code from another group in the company. Upon first reading it, I found global variables being referenced from everywhere, and it looked terrible.

    The more I looked at it though, the easier it got to read, and having an existing code base to work from made things much easier.

    Plus, when I have problems with it, I can blame it on a "design error" by the previous programmers!

    1. Re:Good point by Skyshadow · · Score: 5, Insightful

      This is why it's important to force your developers to (gasp) comment their code. Of course, 99 times out of 100, this won't happen because either (1) the boss thinks that'll slow you down and you'll miss your release date or (2) your boss has never written a line of code in his life and doesn't even know you can comment on that computer codes thing.

      --
      Every year during my review, I just pray the words "slashdot.org" aren't mentioned.
    2. Re:Good point by czardonic · · Score: 2, Insightful

      Commenting poorly written code won't help you worth a damn. Plus, why assume that someone who writes bad code will write good comments? Good code speaks for itself.

      --
      Takahashi Rumiko made beats! DON, taku, DON, taku. . .
    3. Re:Good point by StaticEngine · · Score: 5, Insightful
      Good code is not just code that compiles and runs efficiently. Good code also has the following properties:
      • Clear, Consistant Formatting - This code complies with the company standard for writing code. Indents are properly nested, Functions are named consistantly, variables use Hungarian Notation or some other standard. Any programmer should be able to look at code by another programmer and pick up on it very quickly, without shaking their head and saying "What the hell were they thinking?"
      • Copious Comments - Lots of comments, clearly written and explanatory. What does this function do? Put a block at the beginning explaining it. How does this algorithm work briefly? Write a paragraph if you have to. The best comment I heard was from a friend about a former coworkers code: "It's English with some C++ thrown inbetween the comments."
      • Documentation - Anyone who shrugs this off is an idiot. You always have time for documentation. And it's not just for the instance where a programmer gets "hit by a bus." It's for people who leave behind code when they quit, or go to a new project. It's for the new hires, so they can understand and study and learn good design, good techniques, and developer rationale. It forces developers to explain themselves. And it allows non-techies to understand what they're doing. Imagine you had to get through 12 years of grade school with no books. Pretty frightening, eh? Documentation is good. Write it.
      Coders who follow these rules truly are an asset to their company. Geeks who hack, write unreadable code, and utter geek credos about enforcing obfuscation and being purposefully vague have no place in a business environment.
    4. Re:Good point by zmooc · · Score: 5, Insightful

      Good code speaks for itself about what it does, but not about WHY it does something and that's were comments come in handy.

      --
      0x or or snor perron?!
    5. Re:Good point by Codifex+Maximus · · Score: 4, Interesting

      From a purely intrinsic point of view, I agree with you StaticEngine. From a purely practical point of view, I couldn't disagree more.

      Let me explain myself. I have been the type of programmer you speak of. I have written copiously commented code. I have properly formatted my code and used standardized function names and such. After all, I was taught in college to write and comment my code so that any programmer could walk in off the street and understand it easily; that made it easy to replace me and I was.

      It seems that when you follow good programming practice, you end up destroying your job security; and as silly as it sounds... it appears to be sooth.
      Jaded in a realistic world.

      --
      Codifex Maximus ~ In search of... a shorter sig.
    6. Re:Good point by jdcook · · Score: 5, Funny

      I couldn't agree more. In a similar vein, I removed the turn signals from my car. I get .0000047% improved performance and, after all, what good are signals? I know where I'm going.

      --
      Q:How many libertarians does it take to stop a Panzer division? A:None. Obviously market forces will take care of it.
    7. Re:Good point by Anonymous Coward · · Score: 4, Insightful

      If you think no comment is ever useful on well written code, you shouldn't be a developer. If someone new has to come into your project (especially a jr. engineer), well placed comments will greatly decrease the time required to understand the overall function of your code. By assuming your code speaks for itself, you're assuming everyone is exactly as familiar with the code as you. This basically forces a newcomer to study your code down to every nook and cranny before it even makes sense. Not commenting your code is nothing other than lack of discipline and a sign of indifference towards the overall success of the project.

    8. Re:Good point by joshv · · Score: 2

      He says:

      "My theory is that this happens because it's harder to read code than to write it."

      He couldn't be more right. I've recently been asked to port some code from another group in the company. Upon first reading it, I found global variables being referenced from everywhere, and it looked terrible.


      I am usually the opposite, extremely leery of just starting over, no matter how bad the old code is.

      The thing is once I have actually modify the code I realize it probably would have been better and faster to start from scratch.

      -josh

    9. Re:Good point by thePfhitz · · Score: 2, Funny
      Plus, why assume that someone who writes bad code will write good comments?

      Haven't you heard the quote, "Comments in code are like sex - even when it's bad, it's still better than nothing"?

      If you don't need them, then great... but it's the other people working on the same project that would be the ones using comments placed in the code to help themselves along.

    10. Re:Good point by haruharaharu · · Score: 2, Informative

      Comments in code are like sex - even when it's bad, it's still better than nothing

      Totally wrong. While bad sex is still good, bad comments are worse than useless - they deceive you as to the point of the code, or they document what they programmers wished they were doing, while the code merrily trashes your data.

      --
      Reboot macht Frei.
    11. Re:Good point by mshiltonj · · Score: 2, Insightful

      Commenting poorly written code won't help you worth a damn. Plus, why assume that someone who writes bad code will write good comments? Good code speaks for itself.

      Not always. A new method in a class does not explain itself in absence of the whole class. If I'm working on just this one method, I want to know how if fits in with the rest of the class -- without having to read the whole class.

      Code warriors write the code, and it may be great, but more times than not (in my experience), it's less skilled folk who have to support and maintain the code. The Warriors have moved to to develop the next great thing.

    12. Re:Good point by rodgerd · · Score: 3, Insightful

      Because sometimes code which looks bad to the casual observer is bad for a reason, usually to do with the peculiarities of and environment - a buggy standard c lib, a braindead app server or somesuch. Good commenting makes it clear that this is broken by design and attempts to fix it will cause more problems than they solve.

      Likewise, I've left comments in code to the effect of, "I know this is broken, but we had to have it yesterday. It should be written better using x, y, and z techniques"; this flags to future developers (and me) that it's a FIXME and points a route for the fix.

    13. Re:Good point by TeeWee · · Score: 2, Insightful

      It seems that when you follow good programming practice, you end up destroying your job security; and as silly as it sounds... it appears to be sooth.

      If you really mean that, than there's something seriously wrong. If you need that kind of obscurity to get job security, perhaps you should look in the mirror more accurately and find other ways to raise your performance. Or your manager knows jack shit about IT.

      Creating code that a machine understands is easy. Creating code that humans understand is what makes coding difficult. Any able manager would love to see a coder in his staff producing code that any programmer off the street can jump into and work on efficiently. I'd get that coder a raise to make sure he doesn't leave! Far from destroying job security, it increases job security!

    14. Re:Good point by Andy_R · · Score: 3, Funny

      It's very important that the poorly written code is documented, since that's the code that will need to be re-written!

      --
      A pizza of radius z and thickness a has a volume of pi z z a
    15. Re:Good point by mccalli · · Score: 2, Funny
      ...after all, what good are signals? I know where I'm going.

      Ah ha - a Mercedes driver...

      Cheers,
      Ian

    16. Re:Good point by mightbeadog · · Score: 2, Insightful

      I think programmers, and geeks in general, naturally see things in new and unusual ways. This is a great tool for invention and problem solving. However, we also tend to suck at seeing things the way others see them. Some of us just can't do it, and thus have no social skills. Others of us have learned to do conciously what the majority does naturally, maybe RPGs help. :-)

      Anyway, being unskilled at seeing things as others do, we tend to misjudge how obvious our code is. And when we do write comments or other docs, we have trouble judging their usefullness. Therefore, the quality of comments tends to be somewhat random, even when we believe in their importance. Also, lack of feedback means we can't hack documentation, so commenting is never as much fun as programming.

    17. Re:Good point by A.Gideon · · Score: 2

      As true as this is, I find comments describing "why not" even more useful. If I know what was avoided - or how/why some other approach failed - I am saved the cost of repeating that effort.

    18. Re:Good point by Bouncings · · Score: 2

      Indeed it's tempting to rewrite because of readability. The real point is that a rewrite is usually needed. But, before the rewrite, learn to read the old code. Then, you can build in your past experiences.

      As proof that the never-rewrite rule is flat-ass wrong, I submit the interviews with id software, and how often Quake, Doom, etc were all re-written in their code base.

      The difference? They understood their old code and rewrote it anyway. That's key.

      --
      -- Ken Kinder ken@_nospam_kenkinder.com http://kenkinder.com/
    19. Re:Good point by johnnyb · · Score: 2

      Good code does not speak for itself. If there is a braindead program you have to interface with, you need comments telling the future programmers why you are communicating with it in such a lame manner.

      A good programmer can find WHAT any program does, but only comments can show WHY they do it. If a bad programmer writes WHY they are doing something, and then they do it poorly, a good programmer can come back and do it better. If a good programmer _has_ to write bad code because it's interfacing with another broken program, and DOES NOT include comments, another programmer will come in and write it the "right" way, and spend the next 2 years fixing it to work with the given program, until it looks just like the "bad" code it replaced.

    20. Re:Good point by rkent · · Score: 2

      It seems that when you follow good programming practice, you end up destroying your job security; and as silly as it sounds... it appears to be [truth].

      Man! Either you're making this up, or you were fired once: by the shittiest manager ever. One of my primary references is a former manager whose list of my strengths includes - at the top - my ability to write well-documented code. I get complemented for it all the time. People love to have a guy like me on the project, who documents all his functions and finds out what other peoples' do, and documents THEM sometimes too. It's a PLUS!

      Incidentally, I replaced the archaic "sooth" in your post above with the modern English equivalent, "truth." If you're seriously concerned about job security, take to heart these little tips for communication with your colleagues; they'll find it much easier to have you around.

    21. Re:Good point by zmooc · · Score: 2

      Indeed. In fact all decisions taken while implementing should be documented. This will often even speed up programming; writing down what you're thinking is often a lot more clarifying (to yourself) than just thinking about it. But also things like `this is bubblesort' or `when you change this, also change that!' are very usefull.

      --
      0x or or snor perron?!
    22. Re:Good point by Salamander · · Score: 2
      Functions are named consistantly, variables use Hungarian Notation or some other standard.

      I'd add that functions should be not only named but also grouped consistently. Matched pairs of functions (initialize/terminate, hold/release, get/put) should be close together so that when one is changed it's easy to go and change the other in complementary ways.

      As for Hungarian notation, I disagree. I've worked on lots of code that used it, and lots that didn't, and I haven't noticed any difference in readability. There's even a possibibility when using HN that the name will not match the actual type after someone changes the code, and that can be worse than having to find the declaration. Type information belongs in declarations; names should contain information that can't be expressed as a type - usually usage.

      In the context of that last statement, I should also point out that typedefs and enums should always be used to maximize the amount of information in a declaration. Some of my code uses virtual block numbers, physical block numbers, and buffer numbers, for example. These all equate to integers of the same size, but they're visibly different types with different expectations. Opaque pointers ("typedef struct foo * bar") are also very useful to define usage.

      Lots of comments, clearly written and explanatory...The best comment I heard was from a friend about a former coworkers code: "It's English with some C++ thrown inbetween the comments."

      Yuk. Verbose comments are a waste of time. Yes, if you have to write a paragraph to describe why a tricky piece of code works the way it does or how a complex data structure is linked together, by all means do so. However, "English with some C++ thrown in" is likely to lead to information overload. IMO, comments are like warning flags; they alert the reader to something that they might miss otherwise. I'd say 80-90% of code is usually pretty self-explanatory as long as you have the proper context from design docs and module/function header comments, and further verbosity is undesirable.

      As Joel points out, code embodies the experience of the people who wrote and debugged it. The most useful comments are those that share that experience in the form of pointing out things like why seemingly-extraneous code is really necessary. My personal favorite type of comment is one that anticipates my objections and says "we tried xxx, but it didn't work because..."; that kind of comment can save hours or days of frustration.

      Documentation is good. Write it.

      Absolutely. I'm sometimes dismayed by the apparent drop-off in my productivity as measured by lines of code compared to the days when code was all I wrote, but I know deep down that writing the spec first is worth it, which brings me to the single most important point that I think you forgot to mention:

      Fix things sooner, not later

      In a lot of ways, this is like the Zeroth Law of Thermodynamics; it really underlies all of the other suggestions. Anticipating a problem or future enhancement in the design phase is cheaper than having to go back and rewrite thousands of lines. Anticipating and avoiding type confusion, or code rewritten into an inferior form due to misunderstanding, is also better than suffering the effects after the fact. Finding problems with thorough asserts or unit tests is better than finding them in the field is good. Finding problems in the field with internal integrity checks that warn you when a data structure first gets corrupted rather than when the corrupted data structure gets used is good. Always, in everything you do as a programmer, plan ahead and try to think of ways you can save yourself grief later by acting now. These "defensive" skills are the ones that set the programming elite apart from green recruits, and it's unfortunate that most people don't start developing them until they've lost a few months of their lives under the gun desperately searching through post-mortem dumps to figure out bugs that should have been caught in unit tests.

      --
      Slashdot - News for Herds. Stuff that Splatters.
  3. How To Make Software Projects Fail: by Skyshadow · · Score: 5, Funny
    Step 1: Hire my boss (God, please hire him away!).
    Step 2: Put him in charge of software development.
    Step 3: Do nothing as priorities change weekly and deadlines slip away.
    Step 4: Do nothing to stem exodus of clued-in employees to less-screwed companies.
    Step 5: Force remaining employees to work 15 hour days. Provide subtle reminders that there's a recession out there.
    Step 6: Do nothing as even non-clued-in employees flee.
    Step 7: Hire a sweatshop in China to crank out code; present this sound like a good idea.

    There, that was pretty easy. And, to be honest, everything beyond Step 1 pretty much happens on its own.

    --
    Every year during my review, I just pray the words "slashdot.org" aren't mentioned.
    1. Re:How To Make Software Projects Fail: by DataSquid · · Score: 4, Funny

      Ah, the true sign of a clueless boss: A non-AC post about how clueless your boss is, with no fear he'll read /. and find it ;)

      --

      DataSquid.net, a little about me.
    2. Re:How To Make Software Projects Fail: by r_j_prahad · · Score: 2

      Stand up right now, peer over the top of your cubicle, and wave your hand. I want to see where you sit because obviously we work at the same place.

      Somebody should tell him its spelled p-r-o-g-r-e-s-s and NOT p-r-o-c-e-s-s.

  4. Soul of a New Machine (slightly OT) by Omerna · · Score: 3

    I'd HIGHLY suggest reading a SoaNM. One of my favorite books (fiction or non).

    --


    No sig for you.
  5. problem = clueless management/directors/execs etc. by Sonicboom · · Score: 5, Interesting

    Alot of .com's I've worked at in the past 2-3 years always wanted to "lowball" developers and engineers, while lining the pockets of resource managers, implementation managers, marketing people, etc.

    Then a skilled/talented developer and/or engineer wants more money. The employer does nothing to retain them - thus the skilled/talented employee leaves.

    Now who maintains the code?

    The other problem is bringing in short term consultants for long term projects. The non-technical people who make these executive decisions don't seem to see the feasability of KEEPING their code maintained by the talented/skilled person who BEGAN the development on it.

    I know alot of consultants read /. - so I'll probably take a big hit on the karma - but I just was the casualty of another dotcom failure - and this was a seriousl problem.

    Another problem is hiring non-technical managers to manage technical people. At my last job we had a manager off of an automobile manufacturing production line quit his job at the auto company to take a job as the manager of a group of Unix admins. This "bumper jockey" had NO CLUE what we did for a living, and treated us like a bunch of unionized UAW slobs, and not like professionals.

    How can a non-technical boss effectively manage technical people???

    Also - how about all the Ceo, Cio, Cto, eieio - types with their big salaries, catered lunches, etc... Alot of them have NO programming or hands-on technical experience. Hell - I've had the CTO come up to me and tell me that "The Internet was broken" when he knocked the dongle out of the side of his laptop - severing the network connection. And this guy is our Chief Technology Officer???? *lmao*

    I'm not saying that only technological people can make technology companies work - but I do feel that managers should take some sort of hands-on classes to learn some basic programming and internet skills so they have SOME SORT OF CLUE about what WE all do for a living!

    --
    [Connection closed by foreign host]
  6. Rewrite vs compatability by Iamthefallen · · Score: 4, Interesting
    Joel: Hmm. That reminds me that Microsoft learned the "no rewrite" lesson the hard way.

    Obviously, MS biggest problem though is that they don't know when to give up and actually rewrite. For instance, it seems that the windows series of operating systems are all made with the intent of being backwards compatible and reusing core parts back to early DOS systems. Backwards compatability and code reuse is nice and all, but there is a limit to it and a time to give up.

    It will however be interesting to see what comes out of the "total rewrite" of IIS.

    --
    Wax-Museum Fire Results In Hundreds Of New Danny DeVito Statues
    1. Re:Rewrite vs compatability by Enrico+Pulatzo · · Score: 2, Insightful

      It seems from Joel's comments that code rewriting is totally a bad idea. I found his comments about not worrying about code size not too suprising, especially when thinking about microsoft office. Its a bummer that code just sits there and collects blocks of individual special compatibility cases, such as looking for an old DOS call or something similar. Eventually this code should be rethought, to reasses if these individual checks still matter. I seriously doubt, given the tone of the article, that this happens with suites such as office. Big bummer...

    2. Re:Rewrite vs compatability by sql*kitten · · Score: 2

      windows series of operating systems are all made with the intent of being backwards compatible and reusing core parts back to early DOS systems. Backwards compatability and code reuse is nice and all, but there is a limit to it and a time to give up.

      I don't doubt that MS would have been happy to see the back of DOS even in the days of Win 3.1, but they couldn't, too much DOS software in the world that people rely on. Order inputting, inventory management, point of sales, industrial control, all sorts of unglamorous software that just works, has done so for the last couple of decades, and doesn't change. This sort of stuff is everywhere in factories and depots across the world. For better or worse, DOS compatibility had to be kept in, even now there's still a lot of DOS software around, people are only moving off it slowly still. For similar reasons, IBM keeps developing and supporting their COBOL compilers on mainframes. The web has bred the mentality that you can just throw your tech away and start again whenever you need to, in fact you have to because everything changes so fast. This just isn't realistic when you have software that works in the "real world".

    3. Re:Rewrite vs compatability by mpe · · Score: 2

      For better or worse, DOS compatibility had to be kept in, even now there's still a lot of DOS software around, people are only moving off it slowly still.

      One reason is that code dosn't "rust" and there is a general engineering principle of "if it isn't broken don't try to fix it".

  7. "never a good idea to do a complete rewrite" by paulbd · · Score: 4, Troll

    ahem. what was NT for? sometimes, you just have to come to terms with the fact that as tested, bug-fixed and studied as a chunk of code may be, it was developed as part of a misconceived model of either visible functionality or internal architecture or both. DOS and its progeny like win32 were clearly cases of this, and MS weathered a complete rewrite c/o cutler and co. quite happily. the fact that there are examples of disastrous complete rewrites doesn't mean that the examples that worked are meaningless.

    1. Re:"never a good idea to do a complete rewrite" by os2fan · · Score: 3, Interesting
      Ahem NT is a rehash of OS/2. I mean, the reason they support OS/2 in NT in the first place is that the kernal runs it directly. NT3.1 actually uses an OS/2 boot sector, and NTFS is a hacked version of HPFS with the same drive type.

      The reason they they need to go for a 32-bit system is that the hacks built into DOS was just not enough for their (then) expanding programs. Put simply, they exhausted DOS and were looking for help to get 32-bits under way. Hence the MS-IBM cooperation on OS/2, and NT from MS's fragment of it. FAT32 is another extention of the fs to allow the use of fat ideas into larger disks.

      The original name of NT was "OS/2 NT". It's just an evolution of an IBM product that they had code sharing rights for. Ironically, the first version of NT [ie 3.1] is correct: version 1 and 2 were the common OS/2 base.

      Apparently the one true MS invention was MS BOB. It has a massive entry in technet. Enough said.

      --
      OS/2 - because choice is a terrible thing to waste.
    2. Re:"never a good idea to do a complete rewrite" by paulbd · · Score: 2

      several people have claimed that NT wasn't a rewrite and that it was based on OS/2. this is false. MS hired dave cutler from DEC, cutler picked a team of programmers, and they wrote "NT" (which stands for "New Technology" [sic]) from scratch. it was not derived from OS/2, though it may borrow ideas from it. it borrows as much from VMS as it does from OS/2. readers may be confusing the NT kernel (which i was referring to) with the NT UI (which i was not referring to.

    3. Re:"never a good idea to do a complete rewrite" by os2fan · · Score: 2
      Microsoft just did not borrow "Ideas" from it. They borrowed the actual code. Look at the file c:/winnt/system32/os2/oso001.009, which contains the OS error messages. I mean, they talk about formatting disks and OS/2 boot disks there.

      This system is not present in Win9x or WinME. So I would still stick with the notion that NT is a modified OS/2, probably with VMS hacks in it. But I can't see them not recycling something that works and that they can use.

      --
      OS/2 - because choice is a terrible thing to waste.
    4. Re:"never a good idea to do a complete rewrite" by tshak · · Score: 3, Informative

      Actually, NT was a completely different product line (servers, high-end workstations), with the eventual goal of replacing another product line (home PC's). Now, with XP, the "old" product line has been depreciated. It's also not ridden with 16bit code from the DOS era, as your post implies. Keep in mind that there's a difference between rewriting functionality, and even emulating functionality (for backward compatibility), then a complete rewrite of the entire codebase (in the millions of lines of code!)

      --

      There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
    5. Re:"never a good idea to do a complete rewrite" by cperciva · · Score: 2

      Microsoft just did not borrow "Ideas" from it. They borrowed the actual code. Look at the file c:/winnt/system32/os2/oso001.009, which contains the OS error messages. I mean, they talk about formatting disks and OS/2 boot disks there.

      And take a look at c:/winnt/system32/ftp.exe. I suppose that means that Windows NT is just a reworked version of BSD?

    6. Re:"never a good idea to do a complete rewrite" by os2fan · · Score: 3, Informative
      Yes, Windows NT has compatibility layers. But then so does Windows 2.x, 3.x, 9x, and OS/2, Linux and so on. But the support of DOS in Windows, and the support of OS/2 in NT is fundementally different to the support of DOS in OS/2 or Linux, or POSIX or DOS in NT. In the first group, the calls are handled by the core operating system itself. In the second group, the calls are handled by a subsystem loaded when there is a need for it, ie an external plugin.

      The support for OS/2 in NT is fundementally different to the DOS/Win16 or POSIX layers, even by what MS says.

      The Resource Kit says that the only subsystem you have to disable to get C2 complience is the OS/2 system: ie it's the only one that calls directly to the kernel. The DOS/Win31 and POSIX systems do not call to the kernel.

      NT4 kernel has ONLY OS/2 compatibility. The bulk of the operating system is not available until the shell loads and the user logs on.

      All os2ss.exe and os2.exe do is shunt the calls direct to the kernel for execution. The file in question is there for OS/2 apps to call if they want console messages, it is a MKMSGF file, after all.

      But the technet seems to go a fair bit into OS/2 and the subsystem, while the POSIX system is just there as an afterthought. "We support POSIX".

      No, NT has correct version numbers because they follow from OS/2.

      --
      OS/2 - because choice is a terrible thing to waste.
    7. Re:"never a good idea to do a complete rewrite" by haruharaharu · · Score: 2

      Ahem NT is a rehash of OS/2

      More like a rehash of VMS. They hired one of the chief architects for VMS to do the kernel

      It's just an evolution of an IBM product that they had code sharing rights for

      More to the point, OS/2 was a joint development effort for the early part of its history. Now, of course, they fly the OS/2 banner upside down (literally!) in their halls

      --
      Reboot macht Frei.
    8. Re:"never a good idea to do a complete rewrite" by haruharaharu · · Score: 2

      He's referring to the BSD copyright notice in ftp.exe. MS used BSD's ftp client code in NT. This is, of course, allowed under the BSD license.

      --
      Reboot macht Frei.
    9. Re:"never a good idea to do a complete rewrite" by Alomex · · Score: 2
      Ahem NT is a rehash of OS/2.

      Which goes to show how ignorant is the typical microsoft basher.

      NT was designed by Ken Cutler, of VMS fame. He also incorporated many Unix lessons into the NT kernel which is actually quite an amazing piece of OS engineering.

      Things started to go bad when they had to make it look/work like Windows 3.1 for compatibility reasons...

    10. Re:"never a good idea to do a complete rewrite" by haruharaharu · · Score: 2

      Then head over to the base win32 developers - the guys who own user32.dll and kernel32.dll

      --
      Reboot macht Frei.
    11. Re:"never a good idea to do a complete rewrite" by sconeu · · Score: 2

      NT was designed by Ken Cutler, of VMS fame.

      Which goes to show how ignorant is the typical non-MS basher.

      NT was designed by DAVE Cutler, of VMS fame. In addition, OP was also correct, NT was originally supposed to be "Portable OS/2".

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    12. Re:"never a good idea to do a complete rewrite" by SoftwareJanitor · · Score: 2

      I don't know who Ken Cutler is, but the chief architect of NT was David N. Cutler. Which goes to show how ignorant is the typical Microsoft apologist. Please, if you are going to make statements like you did, at least know what you are talking about.

    13. Re:"never a good idea to do a complete rewrite" by SoftwareJanitor · · Score: 3, Insightful

      while the POSIX system is just there as an afterthought

      That is being generous. It is my personal opinion that Microsoft only included the POSIX subsystem in order to be "checklist compliant" to bid on government and commercial contracts that require POSIX compliance. Furthering my suspicions, they basically made the POSIX subsystem more or less useless by crippling it, and making it virtually impossible to run POSIX applications and Windows applications at the same time in any sort of useful manner. So bad was the POSIX subsystem that Interix and Cygwin were created to replace it as well as numerous other porting tools (WindU, MainWin), etc. Microsoft has since borgified Interix in order to make sure it never becomes any sort of serious way to wean Windows users off to other OSes. They want it to only be a one-way street.

    14. Re:"never a good idea to do a complete rewrite" by os2fan · · Score: 2
      Your comment is quite amusing, and rather humourous.

      I am aware of the role of a MKMSGF file. It provides teletype help to programs that need it. When you consider the amount of documentation on the OS/2 subsystem [lots] vs the number of utilities that MS currently support [none]. and then compare it against the DOS and NT programs [NT4 ships with 2 dos editors, NT2K has two also.] then the nature of the OS/2 subsystem becomes rather intriguing. What's the point in putting a subsystem in to run old OS/2 programs into a supposed rewrite.

      Of course the OS/2 subsystem makes perfect sense if the system was based on OS/2, and you needed a back door to get into the kernel. For one thing, the OS/2 system hacks directly to the kernel, and the lack of user tools for OS/2 does not imply a lack of system tools.

      This in itself would explain the necessary caution given by MS in its Resource kit about disabling the OS/2 subsystem to make the system more secure. The DOS and Win16 systems are there because Win95 can run 3.1 stuff, and NT needs that too. You can actually run drwatson under Win31. None the same, the DOS session lags keystrokes, and does not support DOSKEY.

      The role of the POSIX system, which is fundementally useless as shipped, is simply that MS may advertise Posix complience. It's no more true than argueing that DOS is now part of "Windows", and OS/2 can now run "Windows" programs.

      --
      OS/2 - because choice is a terrible thing to waste.
    15. Re:"never a good idea to do a complete rewrite" by sql*kitten · · Score: 2

      Microsoft just did not borrow "Ideas" from it. They borrowed the actual code. Look at the file c:/winnt/system32/os2/oso001.009, which contains the OS error messages. I mean, they talk about formatting disks and OS/2 boot disks there.

      If I remember correctly, NT was originally developed for i960 processors, and only later moved to x86. It also ran on MIPS, PPC and Alpha. There was a SPARC port at one point too, but I don't think it was ever released as a product. The OS/2 bits you are referring to are the OS/2 compatibility subsystem. There is also a POSIX subsystem. (Actually, Win32 itself is a subsystem, running on "real" NT).

      So I doubt very much that NT is just a rehashed OS/2, which as far as I know, was only ever an x86 product.

    16. Re:"never a good idea to do a complete rewrite" by mpe · · Score: 2

      The POSIX subsystem. NT is actually POSIX-certified, just like Solaris and the other commercial unices. This doesn't come with NT, you have to get this separately from Microsoft.

      IIRC the POSIX subsystem is there because certain US government contracting rules either state or did state that anything not POSIX complient isn't even to be considered.

    17. Re:"never a good idea to do a complete rewrite" by os2fan · · Score: 2
      NT derives from an agreement where MS would write an OS/2 where IBM would get the OEM version and MS would have some other market.

      The thing was originally written as an x86 system, but because they were working on a microkernal, the thing was reasonably portable. None the less, there are 4NT versions for the alpha as well, so I think that the thing is not fully compatible.

      Eventually, NT was migrated over to its new form, but the OS/2 system was of some use in the translation.

      OS/2 has been prepared for the PPC as well.

      Win32 is a subsystem, running on the real NT which is more akin to OS/2.

      --
      OS/2 - because choice is a terrible thing to waste.
  8. Before everyone points at Microsoft ..... by reaper20 · · Score: 4, Interesting

    True, MS's monopolistic policies notwithstanding:

    "Everyone thinks, poor Netscape, they were a victim of MS practices" - yes, they were, and yes, they innovated, but come to think of it, NS4 was crappy software that sucked.

    "Poor Real Networks, MS is integrating all that stuff into the OS." - Good riddance ... IMO anything Real makes has never made it out of Beta, and naturally, don't unload the stupid System Tray icon that leaks memory like a sieve, because "you could lose some key features and performance benefits."

    We blame Microsoft because their software sucks, and their practices suck ... but come to think of it, the only people to blame is Microsoft's competition, with their heads up their asses who can't put out decent software that works. Windows 95 didn't become the standard because it was great software, Win95 became the standard because OS/2 was marketed improperly, and IBM didn't work hard enough with OEMs. (that's gonna bring on flamage, so go ahead)

    Only now, with Linux and Open Source, can WE the users contribute to what we want, not what some guys proposed business model wants. I mean seriously ... I hate Microsoft as much as the next guy, having to put up with their software, but then again, I don't see many other "competitors" really trying ...

    ICQ pioneered instant messaging, but give me a break, the things been in beta for years and uses up more memory than most anything.

    My note to all burgeoning software companies - Make me something that doesn't suck,and I'll pay for it, don't force me to upgrade every 20 minutes to a more bloated piece of crap that is nothing more than a "portal" for all those neat advertising engines you've snuck in there....and I swear, if I hear someone say "monetize the desktop" .... heh...

    1. Re:Before everyone points at Microsoft ..... by man_of_mr_e · · Score: 3, Interesting

      Last you checked, you weren't thinking about the real problem. The problem was not MS's OS licensing provisions. This was *BEFORE* all that. The problem was that IBM was a competitor to all the major OEM's, and none of them wanted to line their competitors pocket and be dependant upon them for their livelyhood.

      Microsoft was OEM agnostic, IBM was not. That's what doomed OS/2.

    2. Re:Before everyone points at Microsoft ..... by 0WaitState · · Score: 3, Interesting

      Its not a level playing field. Blaming Microsoft competitors for releasing crappy software on windows ignores the significantly higher development costs incurred by orgs that don't have access to the real APIs, don't have advance knowledge of OS changes, don't have the ability to specify OS or API tweaks that will benefit their designs. Oh, and Microsoft app developers have a relatively lower risk that Microsoft will change the OS deliberately to break their app ("DOS ain't done til Lotus won't run").

      Think about it--can you name a non-microsoft app using OLE that actually works well? They can't *all* be fragile pieces of shit due to implementation incompetence.

      --

      Remain calm! All is well!
    3. Re:Before everyone points at Microsoft ..... by reaper20 · · Score: 2

      I'm not saying that Microsoft is completely blameless, I'm just saying that it's not 100% Microsoft's fault.

      It just seems that all these software companies blame Microsoft because they can't keep up, and that might be true, but these guys aren't helping their own situations any.

      Maybe what - 60% MS monopolistic prices, 40% own vendor incompetence. Sure, 60% is high, and unfair, but there is never an excuse for incompetence either.

    4. Re:Before everyone points at Microsoft ..... by Bishop · · Score: 2

      Your OS/2 comment is bang on. Technically OS/2 beat win95 in every way (back in 92/93). But IBM charged money for the dev kits. MS gave their's away (atleast for the first little bit). IBM failed to get hardware vendors onboard. MS paid hardware vendors to write drivers for win95. IBM ingnored the home market. MS put the home market square in their marketing sights. IBM's OS division couldn't even convince IBM's pc division to ship OS/2.

      OS/2 2.0 had the jump on win94 (ninety four) by a good year. When win95 finally shipped OS/2 had had two years to catch the market but did nothing.

    5. Re:Before everyone points at Microsoft ..... by Michael+Woodhams · · Score: 2

      Well at least in my part of the world, if I'd had to figure out from the advertising what it was, I'd have thought it was a web browser. It was all "your tool to connect to the internet" stuff.

      --
      Quattuor res in hoc mundo sanctae sunt: libri, liberi, libertas et liberalitas.
    6. Re:Before everyone points at Microsoft ..... by Merry_B.Buck · · Score: 5, Insightful

      Make me something that doesn't suck,and I'll pay for it, don't force me to upgrade every 20 minutes to a more bloated piece of crap...

      Unfortunately, if I write software that doesn't suck, doesn't need patches, and does what you want, you'll buy one copy (Netware 3, WinZip, Eudora) and in 2 years I'll be bankrupt.

      If I write software with tons of broken features and requiring constant upgrades for 'compatibility' and security (SAP, QuickBooks, and Windows 95), I'm guaranteed plenty of repeat customers.

      Now if you'll excuse me, I need to go buy a $100 ink cartridge for my $30 printer.

    7. Re:Before everyone points at Microsoft ..... by BitwizeGHC · · Score: 2
      I think this is true. The problem isn't with Microsoft as an entity but rather with the Microsoft model of software production: ship it first, fix bugs later.


      Joel: Because it's almost never true. It's not like code rusts if it's not used. The idea that new code is better than old is patently absurd. Old code has been used. It has been tested. Lots of bugs have been found, and they've been fixed. There's nothing wrong with it.

      SMS: Well, why do programmers constantly go charging into management's offices claiming the existing code base is junk and has to be replaced?

      Joel: My theory is that this happens because it's harder to read code than to write it. A programmer will whine about a function that he thinks is messy. It's supposed to be a simple function to display a window or something, but for some reason it takes up two pages and has all these ugly little hairs and stuff on it and nobody knows why. OK. I'll tell you why. Those are bug fixes. One of them fixes that bug that Jill had when she tried to install the thing on a computer that didn't have Internet Explorer. Another one fixes a bug that occurs in low memory conditions. Another one fixes some bug that occurred when the file is on a floppy disk and the user yanks out the diskette in the middle. That LoadLibrary call is sure ugly but it makes the code work on old versions of Windows 95. When you throw that function away and start from scratch, you are throwing away all that knowledge. All those collected bug fixes. Years of programming work.


      Code may not rust when it isn't used but it sure grows barnacles. And sometimes you need to clean 'em off. Not just for performance but also for maintainability. For a function like this I'd consider at least copying and pasting all the nasty bits into separate functions or something, just to make it easier to maintain. Especially if checks like this occur over and over again elsewhere in the code.

      And... there are computers that don't have Internet Explorer?


      SMS: Hmmm. Let's take a look at your theory and compare it to some real world software meltdowns. For instance, what happened at Netscape?

      Joel: Way back in April 2000, I wrote on my web site that Netscape made the "single worst strategic mistake that any software company can make" by deciding to rewrite their code from scratch. Lou Montulli, one of the 5 programming superstars who did the original version of Navigator, E-mailed me to say, "I agree completely, it's one of the major reasons I resigned from Netscape." This one decision cost Netscape four years and they're not really done yet. That's three years they spent with their prize aircraft carrier in 200,000 pieces in dry-dock. They couldn't add new features, couldn't respond to the competitive threads from IE, and had to sit on their hands while Microsoft completely ate their lunch.


      Of course he fails to realize that while Netscape failed as a company, Mozilla is a great open source success. My observations seem to indicate that it's gaining momentum and attracting users, with a feature set that rivals and in some cases surpasses Internet Explorer. Better standards compatibility to boot, not that it matters.

      Netscape's business model had collapsed long before Mozilla was rewritten. Financially speaking, it's not that big of a deal now that Netscape's abandoned husk has been absorbed into the AOL behemoth. It was more of an "OK, we're flat on our backs anyway, why the hell not?" type of thing. Netscape 4.x was buggy and ran like a three-legged dog. Something had to be done.

      I think software projects fail because people spend a lot of time grafting features onto a code base that can't really support it, and then opt for re-engineering only when it's too late and they can't be saved. Microsoft can afford to do this quite simply because they own the substrate upon which most commercial software depends, so they will come out in the black anyway. Without that kind of monopoly, you'd better get it right early on. With that in mind, about ICQ being in perpetual beta... maybe they were simply being honest? :)

      I have rewritten portions of code on projects I've worked on when I felt that the special-casing, spaghetti code, etc. was getting out of control. I kinda had to strike out on my own, make like Sinatra and do it my way. Once I had it put together I submitted it as kind of a patch to my boss, who tested it and incorporated it into the next release. The result was far fewer calls along the line of "Jeff, the ActiveX control is missing" or "The form produces an error message" or whatever.

      A programmer with good design skills can do this quickly, keeping the good parts of the code and taking out the messy ones (or at least moving them into a more manageable position). He is right on one thing, a 100% rewrite is seldom if ever necessary. Even messy code has good bits that can be reused, or refactored into a library or something.

      The way I see it, other companies can't compete with Microsoft by playing Microsoft's game, since Microsoft sets the rules and owns the playing field.
      --
      N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
    8. Re:Before everyone points at Microsoft ..... by SoftwareJanitor · · Score: 2

      Partly true... Other hardware vendors were very nervous to sell software from IBM. Can't blame them, especially back in those days IBM was nearly as nasty as Microsoft. However, once Windows started to become more important than MS-DOS, Microsoft did start to use their OS licensing provisions to keep OS/2 from ever being able to challenge Windows on preloads. By that time IBM was no longer such a threat in PC hardware sales, and other vendors may have been more willing to deal with them, but Microsoft's exclusive licensing and per-CPU licensing deals made it financially impossible for even IBM to offer preloads of OS/2 or anything other than Windows. Frankly, since most PC purchasers couldn't handle installing any OS, the inability to buy preloaded OS/2 boxes pretty much doomed it from the desktop.

    9. Re:Before everyone points at Microsoft ..... by scrytch · · Score: 2

      Blaming Microsoft competitors for releasing crappy software on windows ignores the significantly higher development costs incurred by orgs that don't have access to the real APIs, don't have advance knowledge of OS changes, don't have the ability to specify OS or API tweaks that will benefit their designs.

      Quantify this. Just give me an actual concrete example of "Real API's". Fuck's sake, I can still write DDE applications on Windows 2000. I have a litany of notepad replacements that are like 4 kilobytes, smaller than notepad, and more featureful. Show me IE under a syscall tracer where it makes an undocumented call, oh but you'd rather believe that Microsoft manages to hide the syscall interface somehow so it doesn't show up on tracers. Hey, I've got a unicorn in my living room, but it's *invisible*.

      Show me one *developer* from AOL/Netscape or IBM or Sun who couldn't get perfectly good and fast software written because of hidden API's.

      Think about it--can you name a non-microsoft app using OLE that actually works well?

      Pathetic. I'm trying, but straight OLE really isn't used that much any more, since most custom controls are OCX's, which are pretty much straight COM. Let's see, there's Netscape, which is actually pretty stable on windows. There's Winamp. There's StarOffice. There's Powerbuilder and Delphi. There's every app that embeds IE (e.g. pretty much every major windows p2p file sharing app), or does it only count if the component isn't also by MS? There's the OLE interfaces for OLE clients and servers in various languages, including php and python. Show me where these implementations are broken.

      Have you ever even programmed on Windows?

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
    10. Re:Before everyone points at Microsoft ..... by SoftwareJanitor · · Score: 2

      If OS/2 wasn't preloadable, then why did Microsoft think they needed evil licensing tactics? DR-DOS/GEM was more comparable to MS-DOS/Windows in terms of hardware requirements and support. But it sure seems like Microsoft has always been afraid to compete in a fair open market.

    11. Re:Before everyone points at Microsoft ..... by Tachys · · Score: 2

      I noticed this problem to with a lot of software I buy. It seems it would reach a state of perfection, then the company making it goes backrupt. Seems open source software can get around this problem

    12. Re:Before everyone points at Microsoft ..... by markmoss · · Score: 2

      Seems like a good argument for open source. When there's nothing much to improve, move on to something else, for crissakes!

      The problem with open source/free as-in-beer software is that, except for the few things that attract enough volunteer labor, it's difficult to make enough money to pay for programmers in the first place. (And even if you can attract volunteers, they may not understand or care about user interfaces, which is the biggest problem with getting Linux into desktops.)

      How about open source/non-free software licensing? I'm thinking something like:
      -Source must be included in any distribution.
      -You can copy it and modify it freely, but for each copy, modified or not, you must send $X to the originator.
      -The per copy license fee can never go up, but may be lowered at the option of the originator. If the originator goes out of business or otherwise stops distributing the program, it becomes public domain.
      -One license fee covers one functioning copy (running on one computer at a time) of any version forever. (You write a program, then move on to something else. Bug fixes and simple upgrades may be handled by the users that need them.)
      -There is also a fee set for someone to buy the right to make a major upgrade and sell it as a new program.

    13. Re:Before everyone points at Microsoft ..... by rkent · · Score: 3

      Dude, I'm sorry, but in that case, they shouldn't still be in business. It's the same thing with prescription drugs. When their stuff is new, it's the hot shit, and even gets patent protection, but after a while they have to move on and release new products to survive as a corporation. Why should winzip stay in business selling the same product for 15 years in a row?

      Ford, for example, stays in business not because Escorts suck so bad that you have to get the newest one every year to be road-compliant, but rather because people depend on their products and WANT to come back for the new ones. (Okay, maybe Ford is a bad example, but you get the gist.)

    14. Re:Before everyone points at Microsoft ..... by SoftwareJanitor · · Score: 2

      At certain periods, hardware vendors had to use middlemen in order to get around restrictions against preloading non-Microsoft OSes. Not only did the customer generally end up paying that middleman a bunch to do a preload for them, they also paid for Microsoft OS licenses for the boxes that they probably never used. Before that there was a period where vendors could preload what they wanted, but they still had to pay for MS-DOS licenses for every CPU they shipped, whether it was preloaded with MS-DOS or not. Microsoft agreed not to do "per processor" licensing as part of an earlier consent decree. But what they started doing instead (exclusionary contracts) was actually far nastier.

    15. Re:Before everyone points at Microsoft ..... by markmoss · · Score: 2

      The "book license" has it's good points. And it's what we'd have already if the courts would just wake up and realize that they decided against EULA's 80 years ago in the case of books, and software's no different. Certainly the book license is good for things like games, that are never going to be mission-critical. That is, if it's a big problem for you when your favorite game is no longer sold or updated to run on newer hardware, you really ought to get a life.

      But for software used by businesses, getting marooned without support from the vendor is a big, big problem, and it always happens unless you pick the right vendors, then spend a hell of a lot of time and money continually upgrading, porting your old data to new formats, and training people to work with "upgraded" software that quite often isn't worth the time it takes to learn it. You know all the vendors that have disappeared, but even when the vendor is still raking in the cash, they're apt to drop the product _you_ prefer to use. E.g., MS is setting schedules to drop support for each of it's old OS's, in order to force even those that think the newer software is a downgrade to buy it... MS's real ambition seems to be to sell at least two copies of Windows for every computer entering corporate service, and then to sell Windows over again for every computer lasting more than 18 months. Except they aren't "selling" Windows, or so they claim. With XP's product activation, when the cash flow gets a little low, they'll just close the service that hands out new XP activation codes, and as systems crash and have to be re-installed the latest OS will be purchased. (What will they call it? XXG(reedy)?)

      With shareware+open source, support exists for as long as enough people use it, regardless of what the original vendor thinks is best for their business. And note that I did specify that the license say that if the vendor/creator disappears, the program becomes freeware...

      One final note: as things become more web-connected, it becomes much more possible for shareware vendors to actually collect. Include a prominent warning that this program may "phone home" occasionally, and businesses using the software without paying will be sued. Offer guarantees that the information collected will be strictly limited. You can then choose to either embed the phone home code so deeply that normal people will pay rather than go through the hassles of removing it without damaging the functionality, or leaving it out and watching the pirates really go nuts trying to find it. 8-)

  9. or (3).. by rho · · Score: 4, Insightful

    or (3), incessantly repeated nerdisms such as "if it was hard to write it should be hard to read" instill an improper sense into young, impressionable programmers.

    --
    Potato chips are a by-yourself food.
  10. He certanly is into lunch, isn't he? by jorbettis · · Score: 2, Interesting

    If he said "Microsoft ate their lunch" one more time, I was gong to puke my lunch all over my keyboard.

    Anyhow, I think he speaks horrible advice from a computer science standpoint. "It dosen't matter how bad, buggy, cludgy, and crufty a code base is, never ever rewrite it". If you don't understand what the code is, if it's impossible to read, don't worry! that's the sign of good code!

    It speaks alot of Microsoft's tactics, do whatever it is that takes the absolute least effort possible, and charge as much as you possibly can for it. All of those other companies failed because they were focused on quality, whilst they were focused on nothing the bottom line.

    Here's what I think is the worst software sin: writting shitty code and pretending it's not shitty. Regardless of how much gloss you put on it, bad code is rotten to the core, and it reflects that in stability and security. Why on earth do you think Microsoft falls flat on its face in those areas?

    I remember a story about JD Rockefeller. He was touring one of his oil works, and he saw someone soldering the oil cans shut. He asked him how much solder he uses on each can. The man told him, something like 48. Rockefeller said "from now on, use 36". That's exactly the type of cutting corners companies like Microsoft do. THat's not good for the customers, it's not good for society, and it's not good capatilism.

    --

    Jordan Bettis

    ``Wherever you go, there's another stupid sigfile quote.''
    1. Re:He certanly is into lunch, isn't he? by Osty · · Score: 3, Insightful

      Anyhow, I think he speaks horrible advice from a computer science standpoint. "It dosen't matter how bad, buggy, cludgy, and crufty a code base is, never ever rewrite it". If you don't understand what the code is, if it's impossible to read, don't worry! that's the sign of good code!

      And this is the difference between academic code and commercial code. Ever looked at 90% of the research projects from graduate students? Most of them barely work, or only work on one specific set of hardware (and not anything else), or require a huge set of work-arounds to get the code up and running. The reason for this is because this is theoretical work. It doesn't matter how well it works (well, unless your thesis is on optimization, but that's different), only that it works well enough to demonstrate your research. Commercial software is the complete opposite. It has to work, and work well, on many different configurations of hardware, and many different versions of software (Windows 95 vs 98 vs 98se vs ME vs XP, Windows NT4 vs 2K vs XP, Mac OS 7.x vs 8.x vs 9.x vs OS X, and so on), or your potential customers aren't going to buy it.


      It speaks alot of Microsoft's tactics, do whatever it is that takes the absolute least effort possible, and charge as much as you possibly can for it. All of those other companies failed because they were focused on quality, whilst they were focused on nothing the bottom line.

      You didn't read the interview, did you? One of the main points in there was that by throwing away your old code and re-writing from scratch, you're throwing away years of experience and bug fixes. To use the example he gave of the nasty function that was supposed to do something simple but had a whole bunch of seemingly useless extra crap in it, the point was that all those extra little things that you'd throw away in a rewrite were necessary bug fixes. You throw them away, and unless you wrote those bugfixes in the first place (not likely, and even if you did, not likely you would remember), you lose all that information. That means that your new, "cleaner" version is very likely going to have similar bugs. Perhaps even the same bugs you fixed in your older, crufty code. Rewriting your code from the ground up is not focusing on "quality" (it may be focusing on "quality of code", which is a pretty useless standard so long as your code is proprietary), but instead focusing on "triviality". The bottom line is that in business (any business, not just the software development business), the bottom line is what's important. If you don't like that, stick to academia. You'll be happier there, and your potential peers in the commercial arena will be happier having you there.


      I remember a story about JD Rockefeller. He was touring one of his oil works, and he saw someone soldering the oil cans shut. He asked him how much solder he uses on each can. The man told him, something like 48. Rockefeller said "from now on, use 36". That's exactly the type of cutting corners companies like Microsoft do. THat's not good for the customers, it's not good for society, and it's not good capatilism.

      Irrelevant red herring, and a bad example to boot. You're equating a potentially dangerous situation (in your example, less solder means a less solid joint, which means the oil could leak) with a harmless situation (reusing your old code, crufty as it is). In one case you're making a conscious decision to be less safe, while in the other you're making a conscious decision to leverage the work that's already been done.


      As I said, I don't think you read the article. If it makes financial sense (you will sell enough copies to recoup your extra development cost and extended time to market), then there's nothing wrong with re-writing code (though Joel did suggest looking at the old codebase while writing the new, so that you won't miss any of those one-off bug fixes that are neccessary but are also the source of the cruft). The problem is that it rarely makes much sense. Especially when you're in a competitive market (as all the examples he gave were -- when you're competing against Microsoft, the worst possible thing you can do is be more concerned about code quality than making a featureful, useable product that's available quickly).

    2. Re:He certanly is into lunch, isn't he? by kelv · · Score: 2, Informative

      The Rockerfeller line is incorrect.

      He asked how many drops of solder they were using and why. He was given an answer around 48 (don't have the book Titan in forn of me right at the moment) but they could not give him a good reason for this number.

      Thus he required them to start at that number and decrease it untill the process was no longer satisfactory and then incrse by 1 from that point. This insured they used the least amount of solder that performed to the required level.

      That's simply smart and efficient use of resources.

    3. Re:He certanly is into lunch, isn't he? by Chris+Johnson · · Score: 4, Interesting
      No no- it IS good capitalism, BECAUSE straight uncut winner-take-all capitalism is not good for society.

      What you're seeing there _is_ capitalism- it just happens to be 'laissez-faire'. Under current conditions, those guys are the only ones who survive, because they 'eat the lunch' of everybody else and make sure there's no choice to resort to, by hook or by crook. In strict laissez-faire as it's practiced in the modern world, there is no concept of 'society' at all. It's 100% Union Carbide and there is no such place as Bhopal...

      Now, it's important to remember that there are OTHER types of capitalism, but to claim laissez-faire isn't capitalism seems a bit wrong. The trouble here is that you are aware of society and things like consequences to actions, perhaps you are aware of stuff like game theory that proves 'best doesn't always win' and you object to the rules of the game being virtually nonexistent, because you see what happens and you don't like it.

      However, to do something about it you'll have to encourage a different sort of capitalism than the laissez-faire one we live with, and until then it will be about 'eating lunch' and to hell with society, customers, or even basic fitness to the task.

      ...which explains why a lot of people like you are resorting to Linux or otherwise building and maintaining their own cyber 'tools'! One failure mode of this laissez-faire is that there will always be a certain number of people who find it easier to actually do the work themselves, than to struggle with crap every day. 'Eating their lunch' only matters to an accountant- if you're talking about a tool you need, and it's an IMPORTANT tool, then you may be forced to place a much higher value on its quality than a laissez-faire marketplace would ever support.

    4. Re:He certanly is into lunch, isn't he? by Velex · · Score: 2

      it's not good capatilism

      That's exactly what capatilism is all about. Cutting corners: how little effort can you put into making the largest profit? How many people can you anally rape in the wages department before no one will work you for? How shitty of an excuse for software can you throw together and still have it look pretty and work for a few hours? Who cares if 36 solder is insufficient to guarantee safety? It works doesn't it? That's where the bottom line is: the almighty buck. Don't kid yourself -- capatilism has always been all about this shit and always will be.

      --
      Join the Slashcott! Stay away entirely Feb 10 thru Feb 17! Close all tabs to prevent autorefresh!
    5. Re:He certanly is into lunch, isn't he? by tshak · · Score: 2

      Anyhow, I think he speaks horrible advice from a computer science standpoint.

      Personally, I'd take advice from a guy who's been through what he's been through.

      All of those other companies failed because they were focused on quality, whilst they were focused on nothing the bottom line... THat's not good for the customers, it's not good for
      society, and it's not good capatilism.


      First, you have to build what the consumer wants, not what is academically "correct". Read his comments about Word Perfect. From a strictly CS standpoint, they wrote GREAT software. All hand tuned Assembly. Well, consumers could care less about the 100ms faster load times - they wanted features that empowered them. You CAN NOT scale a consumer level code base without high level languages, nor can you compete with your competitors features.

      Second, you are making a gross assumption that Microsoft doesn't focus on quality - you may not like thier business tactics, but it is ignorant at best to ignore thier contributions to the software community (security and other issues aside). This "All MS Software Sucks" attitude is the true demise of competition. Until competitors recognize the achievments of MS, they will always be stuck in the rut of building software that goes "against" MS - which is essentially going against the market.

      --

      There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
    6. Re:He certanly is into lunch, isn't he? by ksheff · · Score: 2

      he point was that all those extra little things that you'd throw away in a rewrite were necessary bug fixes. You throw them away, and unless you wrote those bugfixes in the first place (not likely, and even if you did, not likely you would remember), you lose all that information. That means that your new, "cleaner" version is very likely going to have similar bugs.

      Which is why those bug fixes should be documented in the code, so that if someone does decide to do a rewrite, they can make sure that those areas are addressed in the new code. According to Wall, laziness is a virtue for programmers. If a programmer is being his proper lazy self, will he really want to do a complete rewrite since it means lots of extra work? No. A rewrite should be done if it dramatically improves the operation of the program and/or its maintainability. The Mozilla re-write was done after months of work on the netscape 5.0 codebase and it was determined that it couldn't be carried forward any farther. It already was band-aid on top of band-aid from the 1.0 days. Of course, if they had the cash cow that MS does, they could have afforded to have two development teams working in parallel. Very few companies have that luxury.

      --
      the good ground has been paved over by suicidal maniacs
    7. Re:He certanly is into lunch, isn't he? by Abcd1234 · · Score: 2

      First, you have to build what the consumer wants, not what is academically "correct". Read his comments about Word Perfect. From a strictly CS standpoint, they wrote GREAT software. All hand tuned Assembly.

      I take great issue with this. Why on earth would you think that hand-tuned assembler is "technically excellent" from a "CS standpoint"? From a CS standpoint, technically excellent code is code that is well structured, well documented, easy to maintain, and easy to understand. I would argue that hand-tuned assembler is rarely any of these things. And I would also argue that customers would *much* rather have code that is academically correct... if all code was well written, well designed, and well documented, I'd imagine your average large software project would have significantly fewer bugs, and that's probably something your average customer would be pretty happy with.

    8. Re:He certanly is into lunch, isn't he? by judd · · Score: 2
      "It dosen't matter how bad, buggy, cludgy, and crufty a code base is, never ever rewrite it". If you don't understand what the code is, if it's impossible to read, don't worry! that's the sign of good code!" That's completely misunderstanding what Joel said. He's saying don't throw _working_code out: fix bugs, clean it up, incrementally improve it. (Which is XP practice too, come to think of it). He just says "don't rewrite from scratch".

      All he says about code being hard to read is that it may explain why people would prefer to throw working code out. The alternative is to comment and then slowly improve the old code: he argues that this often turns out to be faster. You did read the article, didn't you?

    9. Re:He certanly is into lunch, isn't he? by ttfkam · · Score: 2
      And this is the difference between academic code and commercial code. Ever looked at 90% of the research projects from graduate students? Most of them barely work, or only work on one specific set of hardware (and not anything else), or require a huge set of work-arounds to get the code up and running.


      And you assert that 90% of commercial code isn't crap as well? And what about those research projects like PostgreSQL or JBoss? PostgreSQL started in the university environment as a database testbed. OK, JBoss isn't strictly a research project, but they openly state that a lot of work was done by folks working on features that ended up being the focus of a doctoral thesis. Linus Torvalds pursued a master's degree with the focus on porting Linux to new platforms. WebDAV (and most open protocols for that matter) is primarily driven by educational entities.

      Mosaic was spawned from the cradle of UofI Champagne-Urbana. Or do people honestly believe that MA would have written it without the education or the advisors?

      This whole "companies always make better software than universities" camp needs to get a wakeup call.

      Irrelevant red herring, and a bad example to boot. You're equating a potentially dangerous situation (in your example, less solder means a less solid joint, which means the oil could leak) with a harmless situation (reusing your old code, crufty as it is). In one case you're making a conscious decision to be less safe, while in the other you're making a conscious decision to leverage the work that's already been done.


      I'll remember that the next time the US Navy has a blue screen of death.

      Electronics already permeate our lives. This technical saturation is only going to become more pronounced, not less. And that technology many times has software (sometimes in RAM, sometimes hard-coded in ROM).

      How much time and money has Nimda or Code Red or any of the other electronic nuisances cost us? And all because of a "feature" of a class of operating system that has no executable bit and thinks that remote, no-check, executable code is acceptable rather than a rewrite. Painful to rewrite? Yes. Possibly crippling to Microsoft? Probably. Would benefit a lot of people to fix the cart with the square wheels. Maybe.
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    10. Re:He certanly is into lunch, isn't he? by ttfkam · · Score: 2
      Look at IE versions 1.x and 2.x. They were pretty much a Microsoft-branded Mosaic.


      And what did Microsoft do? They rewrote it.

      A well-designed project can easily have many modules re-written over and over again and suffer no problems as long as interfaces are adhered to. You're talking about throwing the baby out with the bath water.


      Let me restate my intentions. I acknowledge that I wasn't very clear on this. My criticism was of the recurring issue of macro viruses and worms through certain email programs and web servers. I didn't mean to suggest that they dump the whole kit and kaboodle.

      I believe that COM and COM+ were good ideas. Sure they could be made better, and at each version, they are better. The ActiveScripting engine, when not exposing massive security holes, is a fine piece of interface and language interaction design.

      But no, they haven't been fixed already. Those specific exploits are stopped, but many of the underlying reasons why the holes are present are still there. Microsoft tends to treat the wounds and ignores the cause of the disease.

      But who am I to argue? I am neither a software tycoon nor a user of Microsoft software. I just have to work with people who are software tycoons and/or use Microsoft software.

      At least all of the people in the anti-virus software industry are kept busy and paid...
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    11. Re:He certanly is into lunch, isn't he? by SuiteSisterMary · · Score: 2
      I'll remember that the next time the US Navy has a blue screen of death [essential.org].
      And what does it tell you that you need to trot out a three year old example of a user interface design error to make your point?
      --
      Vintage computer games and RPG books available. Email me if you're interested.
    12. Re:He certanly is into lunch, isn't he? by mpe · · Score: 2

      What you're seeing there _is_ capitalism- it just happens to be 'laissez-faire'.

      Except that it isn't exactly. Microsoft relys on enforcement of copyright and their questionable exclusive contracts with OEMs.
      If things were really "hands off" they couldn't rely on either of these at all...

    13. Re:He certanly is into lunch, isn't he? by mpe · · Score: 2

      One of the main points in there was that by throwing away your old code and re-writing from scratch, you're throwing away years of experience and bug fixes. To use the example he gave of the nasty function that was supposed to do something simple but had a whole bunch of seemingly useless extra crap in it, the point was that all those extra little things that you'd throw away in a rewrite were necessary bug fixes.

      Some of them may be necessary bug fixes, some may be obsolete bug fixes, some may be something someone though would fix a bug which dosn't, etc, etc.
      The difficult bit is deciding which is which, with people tending to take the conservative position.

  11. what a load of crap by gmack · · Score: 2, Insightful

    Old code does indeed age.. what happens when you tweak a program to do something you hadn't thought of when you designed it?

    What happens when you cludge it a coupple more times?

    Eventually you need to go back and redesign the section you are working on from the ground up with all of your goals in mind.

    This is not throwing out the old knowlege it's learning from it and there are plenty of examples where it's worked out for the best.

    What was spelled out in the interview was a recipy for a buggy mess.

  12. Code rewrite by Dominic_Mazzoni · · Score: 3, Informative
    A lot of the article is about whether or not you should ever rewrite code.

    SMS: Joel, what, in your opinion, is the single greatest development sin a software company can commit?

    Joel: Deciding to completely rewrite your product from scratch, on the theory that all your code is messy and bug prone and is bloated and needs to be completely rethought and rebuild from ground zero.

    SMS: Uh, what's wrong with that?

    Joel: Because it's almost never true. It's not like code rusts if it's not used. The idea that new code is better than old is patently absurd. Old code has been used. It has been tested. Lots of bugs have been found, and they've been fixed. There's nothing wrong with it.

    Joel blasts rewriting code some more, but doesn't really get into alternatives. Instead he talks about forcing programmers to get with the program, and if they don't, fire them.

    Isn't there sometimes a happy medium between completely rewriting the whole codebase and continuing to hack it up? For example, maybe you can identify certain modules that can be isolated and rewritten, then tested rigorously against the old code to make sure they're functionally identical. Or you could separate the old code into a library that just does the computational part of a program, and then write a new GUI around it from scratch.

    He takes Netscape as an example, saying the worst mistake they made was to rewrite it from scratch.

    I admit that it would have been nice if they released the source code to Netscape 4.x, and not just Mozilla. Even if the code was the most gawd-awful thing in the world, in the years since Mozilla started don't you think we (the open-source community) could have at least fixed some of the more annoying bugs in Netscape?

    1. Re:Code rewrite by mav[LAG] · · Score: 3, Insightful

      Isn't there sometimes a happy medium between completely rewriting the whole codebase and continuing to hack it up?

      This happy medium is described well by Bruce Eckel in Thinking in C++. He says in the chapter on design (paraphrased): "don't worry that getting some aspects of a design wrong will mean you have to rewrite everything. You won't - properly-written classes shield you from your mistakes." This is from the section that talks about the problems that occur early on in implementation, but applies equally to rewrites.

      For example, maybe you can identify certain modules that can be isolated and rewritten, then tested rigorously against the old code to make sure they're functionally identical.

      This is called refactoring and is now a widely-accepted industry standard practice for improving a codebase without rewriting it from scratch. The official web site is here.

      --
      --- Hot Shot City is particularly good.
    2. Re:Code rewrite by smileyy · · Score: 2
      I admit that it would have been nice if they released the source code to Netscape 4.x, and not just Mozilla. Even if the code was the most gawd-awful thing in the world, in the years since Mozilla started don't you think we (the open-source community) could have at least fixed some of the more annoying bugs in Netscape?

      This is a nice little pipe dream. Unfortunately, what Netscape would have released would not have compiled. There were proprietary parts to NS4 to which Netscape did not own the rights to. They could not have open sourced those portions. No one's going to work on an open source project whose source won't even compile.

      --
      pooptruck
  13. Perhaps you should read the article by Skim123 · · Score: 5, Insightful
    Before you jump to false conclusions. A lot of companies that Microsoft "drove out of business" were driven out of business because they made stupid mistakes. Yes, MS's money and marketing helped, but some of the stupid things these companies do is their own damned fault.

    You may want to check out this article by Robert Cringely: Microsoft's C# Language Might Be the Death of Java, but Sun's the One to Blame.

    A lot of truth in that...

    --

    I could not justify my existence if I were a turkey farmer. Would I terminate myself? Undoubtably, yes.

    1. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 5, Insightful

      The interesting thing is that Microsoft made plenty of stupid mistakes too, but since they were powered by monopoly profits in OSes (and earlier on by licences for BASIC in ROMs), they could afford to wait out their mistakes and just keep throwing money at the problems until they straightened them out. As long as a company is successful in the long run, people forget most if not all of their stupid mistakes, but if the stupid mistakes take down the company then people remember it. The history books are written by the victorious (in the short term at least), so I would take a lot of this guy's story with a grain of salt, as it is certainly far from unbiased.

      It is a pretty bad situation for a market to be in if any one company is so big that all they have to do is wait for their competitors to make a mistake in order to be able to crush them. When any one company wields so much power, it makes it nearly impossible to sustain any sort of competition. Not to mention that when a market is ruled by an 800lb gorilla, all of the smaller players are pretty much forced to take more risks and make other decisions differently than companies do in a market where there are at least two or three players splitting up significant chunks of market share. Sometimes those risks pay off brilliantly, sometimes they are stupid mistakes.

    2. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 2

      Do you agree with me that a number of companies that "lost" to Microsoft lost because they made bad business decisions?

      I believe that is too simplistic. Sure, a lot of companies that lost to Microsoft made bad decisions, business and technically. However, that doesn't mean that Microsoft also didn't use dirty tricks and just general deeper pockets and marketing muscle to help kill them too. One of the problems with companies with the kind of monopoly power that Microsoft wields is that it allows them to capitalize on any mistake a competitor makes while their own mistakes make little difference. And Microsoft has a history of cheating and using unethical if not outright illegal tactics even when they don't need to.

    3. Re:Perhaps you should read the article by ArtDent · · Score: 3, Interesting

      What a horrid column. Cringely just gets worse and worse. For example:

      When Java came to market five years ago, it was bulky, slow, and buggy. Today, five years later, Java is still bulky slow, and buggy.

      Java is buggy? A language is buggy? What's that supposed to mean? Perhaps he means that Sun's Java compiler is buggy or their JRE is buggy, but neither is true. As software goes, both are extremely un-buggy. Unless he actually has some evidence to the contrary. No, I'm just kidding; I realize evidence would be completely out of place in that column.

      In other words, McNealy isn't willing to bet the company on either Sun ONE or Java, while Gates and Ballmer are happy to bet their company (have ALREADY bet their company) on .NET and Java.

      I'm sorry, Gates and Ballmer have bet their company on Java? I guess since he doesn't actually research his writing, why should he check it over afterwards?

      Seriously, I've read more insightful comments browsing slashdot at -1.

    4. Re:Perhaps you should read the article by reflective+recursion · · Score: 3, Interesting

      I believe the key to Microsoft's success is knowing when to let go of a bad idea. Such as MS Bob, MS Chat and various others. It is when you still believe in a product which doesn't make money that you fail. It doesn't have to be superior or even new. It just has to have piss poor marketing and no good entrance to the market to lose.

      Going on a rant here: this is why I believe Eazel failed. They held on to their file management program, but failed to realize it would not make them money when they needed it most. This is what I believe happened with Netscape also. They could not figure out a way to utilize Navigator for profit, but kept developing it. It would have probably been a good idea to release the source code then, while MS would only have been comfortable going as far as no-charge with IE (thus, giving Netscape the upper-hand). I also believe IE was a failure with Microsoft as well, though people don't realize it. Now that IE is free MS makes no money on it, and does not, IMO, know how either. The result of this action is that Microsoft is stuck developing the worlds most popular web browser for free with no way to recoup development costs. A total loss to Netscape? I don't think so..

      --
      Dijkstra Considered Dead
    5. Re:Perhaps you should read the article by scrytch · · Score: 3, Insightful

      Now that IE is free MS makes no money on it, and does not, IMO, know how either. The result of this action is that Microsoft is stuck developing the worlds most popular web browser for free with no way to recoup development costs. A total loss to Netscape? I don't think so..

      IE is no more a loss leader than any other piece of windows is. Doesn't matter what they tell the judge, it's a piece of windows. It's probably saved them a lot of money in the long run as well by not having to implement and integrate various viewers into other programs. Winhelp is gone, the help system now is 99.9% IE.

      Even if it is a loss leader, it still sells Windows. This can scarcely be considered a failure. Bob and Comic Chat were a failures ... quit while you're ahead.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
    6. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 3, Informative

      I agree with you up to a point with IE. Microsoft certainly isn't making any money on it, and doesn't look like they have any idea how. But the difference is that a company with a monopoly to fall back on can afford to keep around loss leaders whereas a startup can't. In the case of IE, I believe that Microsoft can, and is, trying to use it to leverage into other markets by trying to build proprietary lock ins to their .NET server products and lock everyone else out of those markets.

    7. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 5, Insightful

      Microsoft has had a monopoly position for a long time. Most people don't remember when there wasn't a such thing as an IBM PC or MS-DOS. Microsoft got into a monopoly position with MS-DOS pretty quickly after its release in 1981. Within a couple of years it had killed off CP/M and the 8 bit 65xx OSes. So certainly since at least 1984 or so Microsoft has basically had a monopoly position in OSes.

      But wait... that wasn't Microsoft's first monopoly position. Even before MS-DOS they basically had a lock-hold on BASIC interpreters, which were one of the most critical parts of the pre-IBM PC desktop. Apple's BASIC, Commodore's, and Radio Shack's were all licensed from Microsoft. Most CP/M machines also bundled Microsoft BASIC. In fact a strong case could be made that the MS-DOS monopoly which grew into the Windows monopoly was itself leveraged from the BASIC monopoly.

      There is a difference between pointing to monopoly power as the primary reason for Microsoft's success than the only reason. Saying that Microsoft's monopoly power had nothing to do with the failures of other companies is as wrong as saying that those other companies made no mistakes.

      As for Microsoft's marketing, I am not so sure I would call it 'shrewd' as pervasive and persistant. They've outspent just about everyone else for years, with the possible exception of IBM, but that is easy when you have monopoly profits to fall back on. It would be hard for a startup to outspend Microsoft on advertising, even in a niche.

    8. Re:Perhaps you should read the article by smileyy · · Score: 2, Interesting

      Just so I don't come off as a total moron, I did read the article and agree with it a great deal, especially the parts about rewriting code from scratch.

      Besides, if you are going to rewrite a bunch of code, you just do it, and don't tell your manager. And then you make sure your unit tests pass afterwards. It's called refactoring...

      I'm probably a bit biased towards Mozilla, and yes, it is a commercial failure, but I have a feeling it won't be known whether its successful software until about 5 years from now. It could be the Apache of web browsers, or it could be just the product that caused the end of Netscape as an independent entity.

      And finally, it's probably also true that C# will turn out to be a better language (purely technically) than Java, and will rival it as a platform, but I really fear that its going to be hindered by the fact that Microsoft controls it much much much more than Java is hindered by the fact that Sun controls Java. And Java is by no means a failure.

      --
      pooptruck
    9. Re:Perhaps you should read the article by tpv · · Score: 3, Insightful
      >> The interesting thing is that Microsoft made plenty of stupid mistakes
      >> too, but since they were powered by monopoly profits in OSes (and earlier
      >> on by licences for BASIC in ROMs), they could afford to wait out their
      >> mistakes and just keep throwing money at the problems until they
      >> straightened them out.

      > I believe the key to Microsoft's success is knowing when to let go of
      > a bad idea. Such as MS Bob, MS Chat and various others. It is when you
      > still believe in a product which doesn't make money that you fail.

      What worked for microsoft was to enter a market, take control of it, and then find new markets to take on.
      When they got big enough they did that in parallel.

      They started with BASIC, then MS-DOS, and then tried to maintain control of the OS (with Windows) at the same time as writing applications to take on people like Lotus. They they went for the server market, the database market, etc.

      They can afford to kill of stupid/failing products because they have a number of revenue sources.
      Borland screwed up all their markets, and manage to scrape through with a set of development tools.
      Lotus lost on the apps, but managed to hold on to Notes long enough to get bought out.
      Netscape lost the broswer war, and got sold off for spare parts (NetCenter and Enterprise Server).

      If you're only competing in one market, then you have to get it right pretty much every time (Oracle). If you let the ball down you will end up loosing your market, and getting bought out (Informix).

      MS didn't win because they had a monopoly, they won because they used their monopoly (both for power and resources) to allow then to diversify into and market they wanted.

      --
      Read more of this story at Slashdot.Read more of this story at Slashdot.Read more of this story at Slashdot.
    10. Re:Perhaps you should read the article by rsclient · · Score: 2, Informative

      Um...Netscape wasn't making money on the browser? Are you stark, raving bonkers? They were hauling in money by the barrel -- Jim Clarke says (in his book) that Netscape was seduced by how easy it was to charge for a browser and therefore didn't diversify into other areas.

      *you* may not have paid for your copy of Netscape -- and a lot of individuals didn't -- but lots of companies were happy to pay for site licenses.

      --
      Want a sig like mine? Join ACM's SigSig today!
    11. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 3, Insightful

      "So certainly since at least 1984 or so Microsoft has basically had a monopoly position in OSes."

      Not quite buckeroo. In the late 1980's platforms from Apple and Commodore(and even Atari to some extent) were very viable, and continued to be up until around 1990.


      Apple, Atari and Commodore, all put together even as early as 1987 could barely have scratched into the 2 digit market share range. And certainly of those the only one that was making any share in business sales was Apple. Even then, Apple was never very successful outside of the desktop publishing and graphics niches. Atari and Commodore were never serious competitors to Microsoft. Heck, Commodore even sold MS-DOS based x86 boxes. Hardly much of a competitor.

      At which point DR-DOS and OS/2 were very viable competitors with Microsoft and had large chunks of marketshare.

      Oh please. Neither of those ever sold any significant numbers. Microsoft already had over an 80% market share by then. I'm not saying that they weren't viable products, but that is different than being viable competitors. OS/2 and DR-DOS were never viable competitors at least in part because neither of them could ever crack the preload market. Microsoft was able to keep them locked out through restrictive contract terms amongst other issues.

      Having viable products in competion with yours doesn't necessarily prevent you from having a monopoly. If you have a seriously dominant market share, then you can have a monopoly even without being officially granted a government sanctioned monopoly or without necessarily being the only product available. It seems like a popular thing for Microsoft apologists to claim Microsoft isn't (or wasn't) a monopoly by wanting to make the definition of what a monopoly is so restrictive that there practically isn't such a thing.

      It wasn't until 1995-1996 that Microsoft became a real monopoly, when everything else just disappeared into the nowheresphere.

      Please. Both Atari and Commodore were out of business by the 1994 timeframe, and neither were more than gasping for air for the last several years of their lives. Apple is essentially the only non-x86 holdout in micros. Microsoft certainly extended their monopoly during that time period, but it was far from the turning point.

      You're also grasping for straws on the BASIC thing.

      How so? Microsoft was making a royalty on virtually every microcomputer sold in the 8 bit days. About the only exceptions were Atari and TI, who had their own proprietary BASIC. Just like with most packaged PC's these days, it was virtually impossible to avoid paying the Microsoft tax even back then. Sounds like a de-facto monopoly to me.

    12. Re:Perhaps you should read the article by Malcontent · · Score: 2

      Either way it's simply insane to say MS has bet it's business on c# or .NET. MS owns hundreds of companies, makes dumptrucks of money on selling office and windows. In fact MS makes more money as a venture capital firm then as a software firm. If they were "betting the company on C#" why are they hedging their bets with the X-box?

      Like I said the author of the article is simply insane or just insanely stupid.

      --

      War is necrophilia.

    13. Re:Perhaps you should read the article by SecretAsianMan · · Score: 2

      So certainly since at least 1984 or so Microsoft has basically had a monopoly position in OSes

      Only on PC OSes. In 1984, PCs were not anywhere as inexpensive, featureful, and ubiquitous as they are today. This was especially true in business; you would be much more likely to find a VT220 on a worker's desk (if anything with a CRT at all) than an IBM PC. Unix, VMS, and others were still the leaders of the pack.

      --

      Washington, DC: It's like Hollywood for ugly people.

    14. Re:Perhaps you should read the article by Metrol · · Score: 2

      They could not figure out a way to utilize Navigator for profit, but kept developing it. It would have probably been a good idea to release the source code then, while MS would only have been comfortable going as far as no-charge with IE (thus, giving Netscape the upper-hand).

      Perhaps this might have been a good idea, but not at all possible unfortunately. There were simply too many key components of Communicator that Netscape didn't own. Even relatively simple stuff like the address book for E-Mail was using a licensed DB. There just wasn't a usable product without these other bits of code that were owned by others.

      By no means does that justify the total re-write effort gone into Mozilla. I'm personally still baffled by the fact that they didn't just focus on Gecko's rendering within the existing GUI framework they had. XUL and all the other stuff could have come later down the road, but not if you make the call to throw the baby, the bath water, and the tub all out the window.

      --
      The line must be drawn here. This far. No further.
    15. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 2

      And Atari shipped with MS BASIC - I have the cart right here.

      I don't believe that it was 'standard equipment'. I think it was an extra cost option, at least at the time I looked at them (in the days of the 400 and 800 as the only models). Maybe later with the 130XE they shipped with the Microsoft BASIC cartridge standard or something. By that time it was already obvious that Atari would lose to Commodore, let alone Apple or anyone else. And if you couldn't avoid paying the Microsoft tax with Atari, it only makes my point about them being a defacto monopoly that much earlier...

    16. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 2

      In 1984, I don't think Microsoft really viewed minis and mainframes as competing with them. They didn't really start thinking about taking on the server world until 1987 or 1988.

    17. Re:Perhaps you should read the article by JordanH · · Score: 2
      • IE is no more a loss leader than any other piece of windows is.

      Mod this guy up. IE is just a component to Windows. Maybe it's still available, but I couldn't find IE 6 for Windows 3.1, Windows 95 or Linux. Now, it's free when you buy a copy of the latest Windows. It's just a feature of Windows and they update it to lure you off of other platforms.

    18. Re:Perhaps you should read the article by jeremyp · · Score: 2, Informative

      Microsoft had a near monopoly in the BASIC interpreter market because there weren't really any alternatives. If we look right back to the beginning, it was Paul Allen and Bill Gates who wrote the *first* BASIC interpreter for a microcomputer. So you could say they were technical innovators in those days.

      I thought the reasons why MS-DOS got its momopoly position were well known. Basically, IBM were going to license CPM/86 for their new computer, but the guy who ran Digital Research was out playing with his aeroplane when IBM went to see him and nobody else was prepared to sign the NDA. When IBM went to see Bill Gates, however, he was prepared to take them seriously and sold them an operating system he didn't have at the time. The rest is history.

      Everybody complains about M$ and how they use dirty tricks and their monopoly situation to stamp on the opposition, but they fail to ask the question: why have they got the ability to do that? It's because their competitors all made bad business decisions.

      Some examples:

      Apple lost the opportunity to dominate the desktop in the mid '80s because they refused to license their operating system without an actual Macintosh which was perceived as a very expensive desktop system.

      Word Perfect lost its dominance of the PC word processor market because it failed to realise that Windows was the future for PCs.

      Lotus lost its position of dominance in the spreadsheet market because Lotus failed to perceive the importance of Win32. Although it has to be said that this only accelerated the inevitable because by then M$ dominated the word processing market and for only a bit more money you could buy Word with an adequate spreadsheet and presentation graphics package which all integrated together nicely.

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    19. Re:Perhaps you should read the article by Watts+Martin · · Score: 2
      Going on a rant here: this is why I believe Eazel failed. They held on to their file management program, but failed to realize it would not make them money when they needed it most.

      No, Eazel failed because they needed to do three years of engineering work to get where they wanted to go, and got on the scene too late to be able to get that kind of sustained funding. Check around on the net for some of the interviews with Andy Hertzfeld--I believe it's an audio one with Dr. Dobbs where he gave the three year figure.

      Nautilus is still in some ways more of a proof of concept, in my opinion. In the eyes of people with "real" GUI backgrounds like MacOS and BeOS (Hertzfeld, and Pavel Cisler, respectively), the foundation for a good, responsive user interface just isn't there in Unix yet. This is something people who haven't gotten used to MacOS or BeOS aren't likely to ever quite grok, because it isn't really an aversion to the command line. BeOS had bash and I know how to write shell scripts, but nine times out of ten, file management was both simpler and faster in its GUI. If your only significant GUI experience is with Windows or "Windows-alikes" on Unix, file management isn't simpler and faster in the GUI.

      Ultimately I think Eazel would have failed asd a commercial venture, but I don't think it's because of the file management program--I think it's because they were trying to follow the canonical advice to open source companies, "make money on the services." Eazel's services were pretty much the same as Ximian's, and it's going to be tough enough for a single company to make what amounts to a subscription package update system profitable--there's simply no market need for two.

      I recall reading that early on Eazel and Ximian had talked abuot merging, but decided they were different enough that they should remain different companies. From an engineering standpoint I have no doubt that's true--but from a business model standpoint, they may have been far too close for comfort.

    20. Re:Perhaps you should read the article by ch-chuck · · Score: 2

      As for Microsoft's marketing, I am not so sure I would call it 'shrewd' as pervasive and persistant. They've outspent just about everyone else for years, with the possible exception of IBM, but that is easy when you have monopoly profits to fall back on.

      I'll never forget the IBM ads on AM radio, "How you gonna do it? PS/2 it!"

      Anyway, my observation on Msft mktng is they find out what negative rumors are going around about their product, and frame their ads to counteract it. I recently got a big slickie signed by Bill Gates that states, "Windows XP is much more than just another version of Windows with a new look" which confirmed it for me: Windows XP is Win2K with a new look (and bundled in PCAnywhere, RealAudio, Adaptec CD Writer and other 3rd party spoilers). If people start complaining about their notorious reliability issues (from the company that gave us the "maintenance reboot"), they start an ad campaign bellowing about "99.999% Reliability!!". If a child pointed out the emporer was naked, they'd launch another ad series gushing about how great the emporers new cloths are and what a fashion trend it is setting in Paris.

      --
      try { do() || do_not(); } catch (JediException err) { yoda(err); }
    21. Re:Perhaps you should read the article by artemis67 · · Score: 2

      I believe you're right; IE should be considered a feature and selling point of Windows and not a stand-alone product. You could make a similar argument for iTunes on the Mac, though it serves in far less utilitarian purposes.

      The one area where the argument breaks down, though, is IE for Mac. MS isn't coding it out of the goodness of their hearts. They're not doing it because they have a stake in Apple (after the famous 1997 investment, Gates sold off his shares almost as quickly as he bought them). Are they doing it to support a competing platform in the market, to lessen the monopoly perception? Possibly, but I don't see it. The Mac would survive without IE.

      It's difficult to see how IE for Mac increases shareholder value for Microsoft.

      -----

    22. Re:Perhaps you should read the article by bluGill · · Score: 2

      There were two versions of Basic for the Atari, Atari Basic and Microsoft basic. Very few people used Microsoft basic, but it was sold. Atari basic was very common. A cartrage for the 400/800, and build into rom for the rest. (I'm not sure about the 1200xl)

      AFAIK atari never shiped MS basic, and MS basic was always loaded from disk, not a cartrage. I could be wrong from the latter. I remember my [irate disk version of MS basic never loaded. (appearently copy protected?)

    23. Re:Perhaps you should read the article by peter+hoffman · · Score: 2

      I don't think they are hedging their bets with the X-Box. I think that the X-Box is the thin end of a ".NET home terminal for Microsoft services" wedge which would tie in nicely with .NET and, by association, C#.

    24. Re:Perhaps you should read the article by Manitcor · · Score: 2, Interesting

      Supplying IE to competing platforms may be a way to lower the perception of MS as a monolopy but also take into account thier current stragety in the way of .NET services.

      It seems to me that MS is really moving into a position to sell the .NET services. Whats important here is not neccassiarily (SP) the platform of which .NET is running but the fact that the platform can run .NET.

      By providing IE for the MAC you can now provide .NET to all MAC users as well as PC users. So even if they didnt make money off the customer for the OS they may (of course it is up to the customer to use .NET) purchase .NET services and provide revenue in that aspect.

      This is also one of MSs biggest reasons for the X-Box. Its not simpily a gaming platform with a DVD player. Its a ploy to get a PC running IE into millions of homes. Some of which may not even have a PC. The X-Box can run IE and most likey has a lot of software intergration points to .NET.

      In this way MS will be able to provide internet service and .Net to all x-box users. Think not only did you buy little Timmy a game system but now for a mere 21.99 a month you can have internet access and all the goodies that come along with it and you dont even need a PC.

      Ok my thread of thought has gone way off. Must be hunger..time for lunch!!

      --
      "Don't mess with him, he taunts the happy fun ball."
    25. Re:Perhaps you should read the article by localman · · Score: 2

      Java is buggy? A language is buggy? What's that supposed to mean?

      Okay Mr. Literal Developer, here it is in your terms: The java user experience is buggy.

      Why? In my experience the biggest problem is the virtual machines. This may not directly be SUN's fault, but it was their choice to excercise virtually no control over them so the promise of cross platform development was broken. I've yet to have the same working code play completely well on any more than _one_ type of VM.

    26. Re:Perhaps you should read the article by Syberghost · · Score: 2

      I also believe IE was a failure with Microsoft as well, though people don't realize it. Now that IE is free MS makes no money on it, and does not, IMO, know how either.

      Perhaps you weren't on the net when IE first came about, so your ignorance can be forgiven, but just so you'll know:

      IE was *ALWAYS* free. It was, in fact, Spyglass Mosaic with Spyglass having been contracted to customize it for Microsoft, who gave it away free from day one.

      Oh, and to those calling it a Windows component; they *DID* make a Windows 3.1 version for a while. It included dial-up networking software, and for a while was (although I hate to say this) the best free dial-up software around for Windows 3.1 (best in terms of being easy to set up for Joe BagODonuts). It even had a customization kit for ISPs. I know, I ran one back then.

    27. Re:Perhaps you should read the article by jmccay · · Score: 2

      Of course, you are looking over some other real facts. Facts like Microsoft integrating IE into the OS. I was running Netscape at the time. It loaded extremely quick. Then I had to load IE because Visual Studio required it. After that Netscape was slower than ever.
      Then there is the fact that they rarely give other companies who they consider to a competitor the information about a new version of the OS (or other such information) in a timely manner. They purposefully withhold it until their products are out!
      Joel Spolsky is just a another Microserf. You can read it in the way he talks. He talks as if Microsoft has never done anything wrong when it comes to other companies. It not their fault Company A ran into Wall B they built.
      Joel Spolsky's knowledge is forever wasted because he still lives in his Microserf world. It is too bad.

      --
      At the next eco-hypocrisy-meeting, count the private jets used to get to the meeting. Should be interesting to see that
    28. Re:Perhaps you should read the article by SoftwareJanitor · · Score: 2

      Microsoft was working with IBM on OS/2 in 1987-1988 time frame. It was 1988 when Microsoft hired David Cutler from Digial to work on "OS/2 NT".

    29. Re:Perhaps you should read the article by scrytch · · Score: 2

      > It's difficult to see how IE for Mac increases shareholder value for Microsoft.

      Brand identity. Same reason Apple gives away Quicktime for windows -- except MS does a bang-up job with IE for the mac, whereas QT for windows is just banged up.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
  14. He's only partly correct about the rewrite thing by Bwah · · Score: 3, Insightful

    With your average application from scratch rewites are probably UnCool for the reasons mentioned in the article.

    For other kinds of systems I'm going to have to argue that rewites can be very beneficial.

    For systems where the development team has access to a regression test suite and the old (working) code at the same time rewrites are much more easily done. You simply treat the existing code like a prototype. Something that captures all of your requirements, but maybe not using a design that ended up working out (read as: turned into a freaking hairball as time passed!) You work through the old code, understand it, and then build up a new design that works out cleanly in all of the places where the old code was a hack.

    When you are all done (or as you are working), you hit it with the test suite. This works out best if your process requires that all of those pesky little bugs found in the old code had to have test cases to reproduce them. (Obvisouly there are limits to this ... the infamous 1 in a million "random" crash, etc.)

    Anyway, I think Joel's statement was just a little to broad. He's correct in some cases, but not all. Of course maybe I'm just one of those overly confident coder types ...

    --
    "There's no secret. You just press the accelerator to the floor and keep turning left." -- Bill Vukovich
  15. Re:Taking lessons from...Better Yet Check this one by darkPHi3er · · Score: 2, Insightful

    "Joel: Don't get me started! If you're a software company, there are lots of great business reasons to love bloatware. For one, if programmers don't have to worry about how large their code is, they can ship it sooner. And that means you get more features, and features make users' lives better (if they use them) and don't usually hurt (if they don't). As a user, if your software vendor stops, before shipping, and spends two months squeezing the code down to make it 50% smaller, the net benefit to you is going to be imperceptible, but you went for two months without new features that you needed, and THAT hurt."

    Can you spot the "seat of the pants/never piss of the installed base"-oriented design fallicies just in that one paragraph:

    1. More features are always better features

    2. Coders are not responsible for optimization

    3. Hardware vendors must not change h/w designs that would break installed base, even to improve their architecture

    4. Your s/w is SOOOO... important that shipping delays for optimization/tuning/additional debugging are not to be accepted

    further from the rest of the interview;

    6. There's never a reason to rewrite extent code, EVER...(here's my nominee for that reason -- Microsoft Outlook)

    7. Architecture is secondary to UI, maintanence of the UI experience is the MOST important standard

    8. Any problems caused by #7 above should never be fixed by redesign, but instead should be prioritized and patched by response to User problems.

    i could go on, but i think i've gotten the highlights, did i miss any???

    Gee, can anybody figure out a s/w product(s) family that seems to be a living demo of (my phrase) "Design By Release Date, Redesign by User Complaints" School of coding????

    i'll even agree with Joel that you should be very careful with "scratch" redesigns, and too many people would rather rewrite viable code than fix it....

    BUT JEEZ, should you hold on to a payroll system written in FORTRAN69 (or LISP or ALGOL or FORTH...), just because it works, even if you have NO OTHER apps in FORTRAN and don't have one single FORTRAN programmer working for you????
    .....

    --
    Ten quid, she's so easy to blind. And not a word is spoken...
  16. why are we listening to this guy? by deander2 · · Score: 5, Funny



    Hold on, this man worked at Microsoft from 1991 to 1994. He led the Excel team. He led the VB team. This was win16. Excel is great now, but do you remember how much it sucked before office 95? And who the heck used VB for 3.1?

    Even better! he wrote the Juno e-mail application. Believe me, this was no fine engineering here. Why does he know better then anyone other Tom, Dick or Harry what makes software project tick?

    1. Re:why are we listening to this guy? by cygnusx · · Score: 3, Insightful

      >why are we listening to this guy?

      Um.. possibly because this guy has a better track record that *you* do when it comes to pushing out reasonable quality *commercial* software, and on time?

    2. Re:why are we listening to this guy? by Jester99 · · Score: 2, Insightful
      This was win16. Excel is great now, but do you remember how much it sucked before office 95?

      Win95 wasn't built in a day, you know.
      Win95 development started around, oh, 1993 or so? Meaning he was in charge of the versions of VB and Excel/Office95 and whatnot that debuted concurrently with Win95 -- the same versions you praise.

    3. Re:why are we listening to this guy? by rodgerd · · Score: 2

      OK, so which multi-billion dollar commercial software projects have you led up that have helped build the foundations of one of the most powerful software companies around?

    4. Re:why are we listening to this guy? by markmoss · · Score: 2

      Fred Brooks wrote The Mythical Man Month, one of the best books on managing big projects (software or otherwise), after he managed what was probably the most f*d up commercial software (or other) project ever: 360 O/S -- started with 1,000 programmers, ended up with 2,000 programmers and several years late (several years when they were selling mainframes without an OS!), cost overruns that would make a defense contractor blush. Brooks learned a whole lot about what _not_ to do, and explains it very well.

      However, this guy is no Fred Brooks. He doesn't even know his sofware is f*d up.

    5. Re:why are we listening to this guy? by KjetilK · · Score: 2

      Whoops, you're right, I meant of course mod(9.3, 3.1). Anyway, try that, you're probably not going to get the correct answer.

      --
      Employee of Inrupt, Project Release Manager and Community Manager for Solid
  17. Death by Engineers by Skyshadow · · Score: 5, Insightful
    I'm in the alternate situation: Too many of my execs (except, for some reason, the VP of Development) are engineers.

    This leads to a whole host of problems:

    Many of them tend think they're smarter than people in non-engineering roles.

    Pursuant to this, they don't think PR and marketing and sales are "hard" or really even "important".

    Again after #1, they're always right when in disagreement with marketing or sales guys.

    Most of them haven't developed in a decade+, so now they know just enough to be dangerous -- make micromanaging decisions about detailed subjects things they don't understand well enough, chase unnecessarily after bleeding edge tech, etc.

    Fail to understand that not everyone wants to always work 14 hours a day.

    Laugh off meetings, so that eventually nobody in the company knows whats going on.

    As a result, nobody's heard of us (no marketing budget, no trade shows, no nothing) and nobody's buying our products (engineers tend to make lousy sales guys; despite what they might believe, nobody wants to listen to a 3-hour ridiculously detailed presentation on your product).

    There's got to be a happy medium someplace.

    --
    Every year during my review, I just pray the words "slashdot.org" aren't mentioned.
    1. Re:Death by Engineers by haruharaharu · · Score: 2

      Damn, that's rough. You're going to reeducate them, right?

      --
      Reboot macht Frei.
    2. Re:Death by Engineers by Srin+Tuar · · Score: 2


      Most of them haven't developed in a decade+, so now they know just enough to be dangerous


      Well there not really programmers then are they. Programmers dont quit their hobby because theyre getting paid more to do it. Even a CEO could find time to work on a pet project. (certainly beats the hell out of golf(i think))

      The specie you are talking of are an evil worse than the marketroid drones, or even the dread PHBs. You speak of the Pretengineers, the false.

      They know only ever enough to be dangerous- for they do not love the craft which they proclaim to master. Any venture they manage is doomed.

  18. Not "fron scratch" by Brian+Kendig · · Score: 4, Insightful

    Just a correction to a point raised in the interview:

    Netscape made the "single worst strategic mistake that any software company can make" by deciding to rewrite their code from scratch.

    Netscape didn't rewrite the browser from scratch. Back in April 1998, Communicator 4 was the current version; to get from there to the open-source Mozilla browser, everything that couldn't be distributed (code from other companies, and security code with export restrictions) was stripped out of the source code. What was left was made available as the start of Mozilla. It didn't even compile at first, but Mozilla didn't start from scratch.

    Admittedly, the fact that this next-generation browser hardly worked at all for more than three years did keep Netscape from capturing any market share, but the browser had already been commoditized, and the battle had already been lost.

    I think that the real browser battle is yet to come -- when the bulletproof and iron-clad Mozilla, carefully fine-tuned to scratch every developer's personal itch, is finally ready sometime next year to take on whatever Microsoft has got. I think that's when the real interesting things will happen -- not just on the technical and marketing fronts, but also on the legal front, as Microsoft finds ways to make sure Mozilla isn't a threat...

    1. Re:Not "fron scratch" by 1in10 · · Score: 2, Informative
      Rubbish, they did start from scratch.

      http://www.gerbilbox.com/newzilla/netscape6/genera l01.php

      As it states right on mozilla's own FAQ:

      In 1998 it was originally planned for Netscape 5 was to be based on MozillaClassic, with Netscape 6 be based on the Gecko rendering engine. But MozillaClassic was scrapped in favor of a code rewrite late that year, and Gecko has been the heart of the Mozilla browser ever since. So when MozillaClassic was scrapped, the "Netscape 5" moniker was scrapped with it.
    2. Re:Not "fron scratch" by Lumpy · · Score: 2

      This is fine, and I hope mozilla does get going fast in the market. but I have one really burning question that noone is willing to answer.

      Why the hell isnt the mozilla team working on the browser and only the browser? Strip out email,news,creator or whatever they call it.

      All I want is a stable fast and secure web browser. I dont want a contact manager, themeability, pretty blinkin lights beeping and all they other crap that is slowing the app and development down.

      Please please can someone tell me when I can use mozilla to access my online banking? and when it will stop being bloatware?

      maybe a fork is in order.

      --
      Do not look at laser with remaining good eye.
    3. Re:Not "fron scratch" by Lumpy · · Score: 2

      Unfortunately both of those projects are not what they seem.

      Both list in their requirements that you have mozilla installed.

      I hope eventually they can make their own project, until then it's Netscape 4.7 for the only browser under linux that works with secure web servers.

      --
      Do not look at laser with remaining good eye.
    4. Re:Not "fron scratch" by Rupert · · Score: 2

      I do my online banking in Mozilla. Why don't you? I only install the browser, not any of the other stuff, so the bloat doesn't bother me (other than the waste of talented people's time).

      --

      --
      E_NOSIG
  19. Sure-fire way of making a software project fail: by kcbrown · · Score: 4, Insightful
    1. Act like a cheezy salesdroid. Promise to implement everything the "customer" (usually some other department of the company) requests and tell them that it will be done in a very short period of time like, say, a month or two. Mutually exclusive features are really good here. Say and do whatever it takes to "sell" them on the project.
    2. Talk with the "customer" on a regular basis. Promise to make all changes that they request, especially the ones that would normally be far outside of the scope of the project -- the ones that any sane engineer would insist requires a redesign. Promise that it won't be a problem to make these changes and that it'll only take a couple of weeks at most.
    3. Push your developers hard. I mean really hard. They'll have to work 20 hour days for weeks at a stretch in order to meet the design goals and the target release date, after all, and they do work for you, after all, and you did promise the "customer" it would be done on time, after all. When the project gets behind schedule, fire the team lead(s) to provide "motivation" for the rest of the developers and to show everyone that you mean business. They were just getting in the way anyway. It doesn't matter that they had the most knowledge about the project, because we all know that software is easy.
    4. When you near completion of the project (assuming your developers haven't bailed out on you already, but hey, the economy sucks right now so they'll be happy to be your bitches), hold another meeting with the "customer". You're almost sure to discover that they didn't really need what you're building that much anyway. Oh, well, at least it was good exercise for your developers! At least, for those that are still around. Hold a meeting with your developers, declare victory, and retreat (um, I mean "advance in the opposite direction").

    No, I'm not cynical. Honest.

    --
    Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
  20. Program Manager != Programmer by Osty · · Score: 4, Interesting

    From the interview's lead-in material:

    As a Program Manager on the Microsoft Excel team, Joel designed Excel Basic and drove Microsoft's Visual Basic for Applications strategy.

    At Microsoft, the job title of Program Manager is given to the people that design the software. They dream it up, write the specs, hold countless meetings, and basically lay the path for the developers to follow. The developers (Software Design Engineer) are tasked with actually programming that software (and thus would be considered "programmers"). Just to round out the roster, the Software Design Engineers in Test (SDET) write the testing suites used by the test teams, and the Software Test Engineers apply those suites to the code following a test plan that they create. In that heirarchy, only the SDE and SDET jobs could be accurately described as "programmers".


    Note that this is actually not so cut and dried, wherein SDEs often do design work and test work, and SDETs often do the work of SDTs. PMs don't program, however (well, aside from javascript&html prototypes, anyway).


    The point? Calling this Joel an ex-Microsoft programmer is misleading, because he was not. However, the position he held at Microsoft actually lends more credence to his views on design than if he were actually an ex-programmer, as part of the job description of a program manager is doing software design.


    (Brief descriptions of all these job titles can be found at Microsoft's college site.)

  21. This guy is a turd! by king_ramen · · Score: 5, Interesting
    Ok, I give him points for pragmatism. I don't think anybody in their right mind will criticize Microsoft for failing to capture market share.

    However, I feel slimy for just reading that stuff. Here is what I got:

    1. Bugs are fine if they get your product delivered.
    2. Load in useless features to drive sales, knowing that your code will suck.
    3. Once you have gobs of crap code and a large user base, there will never exist the possibility of re-designing things (eg, WinXP) since it doesn't matter that code sucks (see point 1) and all that counts is revenue.
    4. Being efficient is a waste of time. Let the hardware catch up with the crap code.
    5. The customer never has valid input anyway.
    6. Do it fast and furious, even if January 1900 is broken. Consumers are idiots anyway.

    These may be great for sales, but ultimately you will build crap. Garbage in, garbage out. I would rather design good software that was well designed and efficient than vomit up mounds of bloat that will ultimately topple under its own weight.

    Software built poorly will never hold up over time. If you look at how little UNIX has had to change over the past 30 years to keep up with "The Internet Age" versus the amount of work done to get XP "working", the future looks bleak for Microsoft. In 20 years, their OS need 25GB of RAM simply to boot up. Of course, this seems not to concern them.

    --
    ----- Refactoring is the reason why man does not mistake himself for a god.
    1. Re:This guy is a turd! by Graymalkin · · Score: 2, Flamebait

      How fucking dense are you? Windows XP is a couple of interface changes on top of the Windows 2000 codebase which itself goes back to the Windows NT 3/4 codebase. The NT design paradigm is one where if you want to add features you just add system services. Want to do some funky .NET strategy? Just add a set of services to handle SOAP requests for DCOM objects. You don't just jam a Unix kernel onto some hardware and suddenly the system serves web pages, crunches d.net keys, and makes coffee.

      As for the points you bring up, you can't possibly understand writing software meant to be sold. Bugs are a part of anything, do you think your mom's care rolled out of the factory absolutely bug free? Features do drive sales, sales provide a means for continued development and the feeding of one's family. Not everyone lives with mommy and daddy. Completely trashing old code is often times retarded, clean up dirty patches and whatnot but you don't scrap working code entirely. Writing ultra efficient software is often a waste of time since you're hammered by schedules. Today's screamer is a POS in 18 months, product life cycles are often only a little bit longer than that especially in business environments. People running Windows 95B on old 166 Pentiums are probably still using Office 95 or 97, they don't give a shit about new features. New features are the concern of people who really rely on new dodads and whistles. Customers know shit about development most of the time and you often times know what they are going to say. Read the fucking article man, he goes into why customer's suggestions mean shit.

      --
      I'm a loner Dottie, a Rebel.
    2. Re:This guy is a turd! by slamb · · Score: 4, Interesting

      These may be great for sales, but ultimately you will build crap. Garbage in, garbage out. I would rather design good software that was well designed and efficient than vomit up mounds of bloat that will ultimately topple under its own weight.

      Everything he said was focused on achieving commercial success. He gave solid examples of times when companies did not do as he suggests and failed commercially. I can't think of too many examples of companies that have succeeded overwhelmingly by doing otherwise.

      On the other hand, he did not talk about sculpting perfect software people will use for decades to come. I can think of software that succeeded in this respect, and it didn't do it by following his advice. (TeX comes to mind.)

      For example, he talked about bloatware, saying it is a good thing. "Features make users' lives better if they use them, and don't usually hurt if they don't." I disagree with this when talking about "hurt" as "making the software more painful to use" instead of "cutting sales". Extra features introduce more bugs and take away from the time programmers could be fixing other bugs. They shouldn't be added until everything else is perfectly solid and possibly not even then.

      Really, I think there is a time for to listen to what this guy has to say and a time to completely ignore it. If you're developing a commercial project, his advice has a certain merit. If you're doing something as a hobby, producing a good piece of software you're proud of is much more important than producing a product before your competitors.

    3. Re:This guy is a turd! by Alomex · · Score: 2

      Such a blatant misrepresentation of Joel's comment should be moderated down to -1 troll.

      E.g. the article explicitly states that those "useless" features to you, are useful to somebody else, and that is why they need to be there.
      King ramen's translation?

      2. Load in useless features to drive sales, knowing that your code will suck.

    4. Re:This guy is a turd! by Compuser · · Score: 2

      Here's my take on his comments:

      1. Bugs are an inconvinience to your customers.
      Late delivery is an inconvinience too. Balance
      as appropriate.

      2. There ain't no such thing as a useless feature.

      3. Redesigning code is good sometimes but must be
      done in parallel with active development of old
      code. If you want to redesign your code be prepared
      to double your R&D budget.

      4. Slow (or large) code is an inconvinience to
      your customers. Late delivery is an inconvinience
      too. Balance as appropriate.

      5. If you already plan to throw in the kitchen
      sink, chances are your customers' requests will
      be planned for before those requests are made
      (see #2).

      6. see #1.

      Most coders consider bugs inexcusable, but
      he is not a coder. This guy is a marketoid.
      I do however emphatically agree with him on #2.
      Bloatware is a myth. From bash to emacs, from
      MS Word to Openoffice, users make apps popular
      based on features not tight code. How many
      people regularly use ash, teco (or ed), or wordstar.
      (Ash _is_ useful for some recovery cases but you've
      got to be a masochist to use it regularly.)

    5. Re:This guy is a turd! by Nygard · · Score: 2
      I hear ya. I got the worst feeling when I realized that everything he said makes sense... from a certain twisted point of view.

      It's like this statement I heard about Microsoft once. I can't remember it exactly, but it basically said that every single decision made about the design, features, software, whatever all comes down to one question, "How does this increase market share?"

      It's incredibly depressing to hear somebody say that aesthetically pleasing, technically adept code will always lose to dreck and hackery. It's even worse when you hear yourself start to agree. Bleagh. I'm gonna go take a shower.

      --
      "Genius may have its limitations, but stupidity is not thus handicapped." --Elbert Hubbard (1856-1915)
    6. Re:This guy is a turd! by rodgerd · · Score: 2

      Joel is interested in making commercially successful software. That's why he doesn't care about bloat - he wants the customers an extra feature captures, and he's not too worried if it makes things a bit slower for his existing customers.

      I don't agree with it from an elegance point of view, but there are a lot more people turning a crust with VB/VBScript than there are with LISP.

    7. Re:This guy is a turd! by tcc · · Score: 2

      >You don't just jam a Unix kernel onto some hardware and suddenly the system serves web pages, crunches d.net keys, and makes coffee

      And what about that SETI PCI card?

      Oh... wait...

      --
      --- Metamoderating abusive downgraders since my 300th post.
  22. Another interesting read... by Skim123 · · Score: 4, Interesting
    From Robert Cringely: Microsoft's C# Language Might Be the Death of Java, but Sun's the One to Blame

    Yes, there are a lot of companies who have been squashed (or, as Joel would say, "Had their lunch eaten") by Microsoft in large part because of Microsoft's money/marketing, but there are also a lot of companies that nose dived into failure because of their own ignorant business and technology decisions.

    While Microsoft may not like the costs and annoyance of court cases and DOJ action, it must give them some satisfaction because most of those companies bringing suit against Microsoft are doing so because they think that's their best option. I would argue that for these plantiffs making better products would be a "better option."

    --

    I could not justify my existence if I were a turkey farmer. Would I terminate myself? Undoubtably, yes.

    1. Re:Another interesting read... by Andrewkov · · Score: 2

      I had my lunch eaten at work today .. I thought it was stolen by a guy in a cubicle down the hall, but now I'm not so sure .. could it be that Microsoft ate my lunch?

    2. Re:Another interesting read... by Malcontent · · Score: 2

      Well I can think of a few companies that sued MS and got a ton of money in settlements.
      Sun won their suit flat out.
      Borland suit got settled and MS gave them over a 100 million dollars.
      The Coral suit was settled when MS dumped a bunch om money in their laps.
      Apple also got a ton of money in exchange for dropping their suit.

      As for the DOJ action that was taken by the govt. The govt won that case too and the verdict was upheld. Of course while on trial MS spread around the cash and got their butt boy in the AG position and their pupper in the white house so they got rewarded instead of punished but that's a different story.

      All in all MS made out great in the lawsuits. The money they gave out in settlements was a tiny percentage of their profits from stealing other peoples technologies and employees and the DOJ handed them a licence to steal. Not bad at all.

      --

      War is necrophilia.

  23. All things in moderation--including comments by achurch · · Score: 3, Insightful

    I'll agree with your other points, but this:

    Copious Comments - Lots of comments, clearly written and explanatory. [...] The best comment I heard was from a friend about a former coworkers code: "It's English with some C++ thrown inbetween the comments."

    is nonsense. If your code isn't written well enough to make it obvious to another programmer what it does, then no amount of documentation will help the poor sop who comes along after you and has to maintain your code. Programming languages are just that--languages--and can be used to express concepts just as well (better, in some cases) than human languages. For example, if I see:

    for (i = 0; i < array_size; i++)
    free(array[i]);
    free(array);
    then it's perfectly obvious that it's freeing the contents of an array; I don't need you to tell me so in a comment, and in fact if you do, it gets in the way. As one of my university professors said, "Use comments to tell me something I don't know."

    Comments are good things, of course--used sparingly. But there is such a thing as "too much of a good thing."

    1. Re:All things in moderation--including comments by achurch · · Score: 2

      You're right, to some extent. Generally, my comments aren't explaining _what_ the code does, but _why_ it does it, and include a brief description of any peculiarities.

      Thanks, that's basically what I was trying to say. On the other hand, I've also seen code that was, as the original poster said, "English with C++ sprinkled in between" (well, plain C in my case), and it was surprisingly hard to maintain--just because what would normally be a 20-to-30-line block of code had expanded to several screenfuls worth, and it was taking more time to wade through all the comments than it would have taken to just glance at the code and say "oh, this is doing XYZ".

      If you don't believe comments are important, find code that you haven't touched in 2 or more years. Now try to add some significant features.

      I've had to do this, as it happens, and this is why I also comment a lot more than I used to. (Which unfortunately doesn't help the older code, but I guess I'll just have to fix it as I go along.)

    2. Re:All things in moderation--including comments by achurch · · Score: 2

      I covered most of these in another response, but two minor points:

      our example seems obvious to you because you're used to concepts like memory (de)allocation and you're used to the C language. Someone without the same background won't immediately recognise that you're deallocating memory because they won't know that free() deallocates memory.

      Then why are they trying to use C in the first place? When I stop to think about it, I find it truly odd that software companies have no qualms bringing in someone with little or no experience to work on critical projects.

      Well, you need to write to your audience.

      Well, that example looks like it was a bad choice, because it's getting misinterpreted all over the place; the professor in this case was talking about general programming style.

      (Oh, and I'm not usually the trolling bastard I probably sound like; I just got up on the wrong side of the bed, I guess.)

    3. Re:All things in moderation--including comments by Old+Wolf · · Score: 2

      I don't agree with this. Certainly , useless comments suck, but "free the array" is not entirely useless here.

      It is easy to look down a function and quickly pick out all the English strings so you know what it does. It takes a little longer to pick the meaning of the code segment you gave, and even then, requires a little bit of consciousness, so you may miss it when browsing quickly.

      Of course this assumes that your code actually does what the comments say -- but if not then you shouldn't be programming

    4. Re:All things in moderation--including comments by dillon_rinker · · Score: 3, Insightful
      make it obvious to another programmer what it does
      The point of comments is not to say WHAT you're doing...as you say, that's obvious. The point is to say WHY you're doing it.
      d := d*360/400;
      x=gsin(d);
      d := d*400/360;
      Any programmer can see that I'm mangling d and calling a function. It might be useful to add the following comment, though...
      // gsin function requires argument in gradients
      // convert d from degrees to gradients before
      // calling the function, then convert it back
      Now, when you're trying to improve performance or figure out why d changes value subtly in this routine, you can rewrite the code as
      x=gsin(d*360/400);
      Comments are good things - you should use them copiously to explain your thinking. Any compiler can figure out WHAT you're doing; a human being can thus do likewise. Only a sentient being can determine WHY you're doing it. Use your comments to communicate with sentient beings. It may take a paragraph to explain a single line of code. A page of code may require only a single line of comment. Use your own judgement, but always remember that your target audience is someone completely inexperienced with your project somewhat inexperienced with the language you're using.
  24. A little unrealistic by Ars-Fartsica · · Score: 5, Insightful
    Joel assumes that crusty code is always filled with knowledge. No, sometimes its filled with crap. More code often means more bugs, not less.

    I agree with the spririt of what he is saying - often the "rewrite" is an ego thing - one programmer wanting to write his code instead of reading someone else's, but there is no doubt that most serious professional programmers have looked at code that simply needs to be thrown away.

    1. Re:A little unrealistic by mpe · · Score: 2

      And, often as not, that "knowledge" is based on 5-10 year old fixes & history, none of which is relevant to currently used systems or users. Cleaning up such crusty code is a Good Thing.

      So long as someone understand why the "kludges" are there. Which comes back to the issue of appropriate comments. (Documentation too, but the advantage of comments is that they are there with the code in question.)

  25. I know, I know! by skroz · · Score: 2

    I was just going to say "hand them over to me," but if you want to get all technical and long winded, be my guest.

    --
    -- Minds are like parachutes... they work best when open.
  26. Bloatware by Shafalus · · Score: 2, Insightful

    I have learnt a lot of good practices from one or two of Spolsky's articles, and for that I was prepared to put up with his cocky know-all attitude and routine rubbishing of every software company except the ones he has stock in, but lately he is full of tendentious statements like

    In 1993, Microsoft Excel 5.0 took up about $36 worth of hard drive space. In 2000, Microsoft Excel 2000 takes up about $1.03 in hard drive space. All adjusted for inflation. So stop whining about how bloated it is.

    So the space it takes on the hard drive is the only cost of bloatware? Try downloading IE 6 on a dialup connection and then check your phone bill.

    --

    Linux advocates are in a no Win situation

  27. not rewriting is why ME makes me nau by Velex · · Score: 3, Interesting

    It's supposed to be a simple function to display a window or something, but for some reason it takes up two pages and has all these ugly little hairs and stuff on it and nobody knows why. OK. I'll tell you why. Those are bug fixes. One of them fixes that bug that Jill had when she tried to install the thing on a computer that didn't have Internet Explorer. Another one fixes a bug that occurs in low memory conditions. Another one fixes some bug that occurred when the file is on a floppy disk and the user yanks out the diskette in the middle. That LoadLibrary call is sure ugly but it makes the code work on old versions of Windows 95. When you throw that function away and start from scratch, you are throwing away all that knowledge. All those collected bug fixes. Years of programming work.

    Now, maybe I'm just ignorant because I've never really developed anything with the 640k barrier or had to haggle with XMS and EMS and other whatnot, but it seems to me that those bugfixes are needed because there's something else fundamentaly wrong with the code. IMO, sometimes you just have to rewrite, because your code is just fundamentally wrong.

    Take DOS, for example. Microsoft added Windows. Then they made a bootloader, added real multitasking, and called it Windows 95, which wasn't that bad. Then they made some fixes, and called it Windows 98, which supported newer hardware, but was more unstable. Then only God and the developers at Microsoft know what happened to Windows ME, but that's when the bugfixes started causing bugs themselves. I mean, plugging in a USB printer shouldn't freeze the entire system!

    Microsoft knew that they had a fundamentally wrong approach to an OS, so they wrote NT, 2K, and are new phasing out ME in favor of XP. XP replaces ME because ME is crap. However, this dude doesn't seem to realize that his own company isn't following is "wisdom."

    Maybe I'm just cynnical, but I wonder if there is some kind of ulterior motive here.

    --
    Join the Slashcott! Stay away entirely Feb 10 thru Feb 17! Close all tabs to prevent autorefresh!
  28. Re:Taking lessons from...Better Yet Check this one by tomreagan · · Score: 2

    I agree with one of these.

    3.) Actually, if there is one lesson we have learned in the past 20 years, it is that hardware vendors have an almost impossible time making people recompile.You need only witness the design of IBM's OS/400 platform, which places a thin layer of microcode between the processor and the OS, the problems Intel has had in generating support for Itanium, and the transition to Java/C# from recompiles on every platform. You can innovate, but you had better not break compatibility with the existing platform.

    So, as the old adage goes, if it ain't broke, don't fix it. That FORTRAN may be crufty, but it never blue screens or segfaults.

    --tkr

  29. True, but you're missing the point by ColGraff · · Score: 2

    Guys, if there's one thing we've seen, it's that good software does not always = profitable software. Like it or not, the big money is in programs like Windows that may not be all that great technically,. but have the marketing and OEM contracts to force it into becoming a standard.

    Likewise, Juno wasn't great from a technical perspective, but that's not why it's a giant FUBAR. It's the business model that's crippling the company - how many times do we need to see that even limited ad-sponsored ISPS Just Don't Work.

    Would I go to Joel for advice on how to actually write code for a given project. I don't think so, no - he's almost certainly a good programer, but there are plenty of other people out there who're probably more skilled. But from the perspective of managing software development - well, Joel does have a lot of experience doing THAT successfully (at least at MS).

    One last thought - I wouldn't hold Juno against him as proof of business stupidity - he wrote that client in a simpler time, an innocent time. A time when click-throughs really were worth something - or so the marketing mavens thought.

    --
    I'm the stranger...posting to /.
  30. You misunderstand by Shoeboy · · Score: 3, Interesting

    He's not talking about the Mozilla project, he's talking about the transition from 3.0 to 4.0. Basically Netscape threw away a lot of good code and some very nice algorithms for the sake of newness. They also developed a java fixation while the language and libraries were still very immature.

    By the time the Mozilla project was announced, Netscape was already out of marketshare and had a product that was cleary inferior to ie 4. Considering the amount of bugs in the initial release of ie 4, making an inferior product was no easy feat.

    Jamie Zawinski has a great deal to say about this period in Netscapes history.

    --Shoeboy

    1. Re:You misunderstand by ttfkam · · Score: 2

      The Java "fixation" started in one of the betas for Netscape 2.0. You criticize Java for its immaturity when Netscape itself was just as immature and IE was still called Spry Mosaic.

      Netscape4 was/is crap. Netscape 3 was faster, but simply avoids the "crap" label due to its immaturity. IE "ate Netscape's lunch" because it was component-based and people could embed it into their own applications easily, reducing their development time. Netscape4 would never be able to do this. Neither would have the Netscape3 codebase. Componentization/modularization must be done relatively ground-up to be used effectively.

      A new codebase was the only real answer at that point. The only better answer (20/20 hindsight and all that) would have been if they made it more modular to start with instead of stopping at the "plugin" model. Netscape focused on pluging other things into the browser. IE focused on letting the browser get plugged in to other things.

      At least with the rewrite, those who want something better like recent builds of Mozilla have that option. I'm not convinced that would have happened if the codebase had continued unmolested and bristling with thorns.

      It's taken a few years, but more than a browser is bearing fruit from the Mozilla vine, and I for one am glad they did the rewrite.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  31. Re:problem = clueless management/directors/execs e by Maul · · Score: 2
    Yeah, this seems to be a problem where one of my friends works. All the execs would rather lay off people than cut their salaries. We're talking about people who are making AT LEAST $500,000, while the engineers, who to my understanding are now being "encouraged" to work extra hours and weekends, are making something like $40,000 at this company.


    It is rapidly becoming harder for them to maintain their code, and develop new software that might earn them a profit.

    --

    "You spoony bard!" -Tellah

  32. Hmm, sort of. . . by JSBiff · · Score: 3, Interesting

    As for point 1, I don't really think Joel would say that bugs are "good" or that they shouldn't be fixed. Just fix them in the most economical manner.

    I do somewhat agree with you on the other points, though I'm going to take the liberty of doing some "charitable" interpreting of Joel on a couple of the points:

    2. Load in useless features to drive sales, knowing that your code will suck.

    I think, with respect to this, Joel isn't interested in useless features. What he is basically saying is that if users REALLY want a feature, you're stupid to to take the attitude that "I know better than you: you don't need this feature". You just lose customers that way. Remeber, the customer is always right.

    3. Once you have gobs of crap code and a large user base, there will never exist the possibility of re-designing things (eg, WinXP) since it doesn't matter that code sucks (see point 1) and all that counts is revenue.

    Well, although I do believe there are certain situations where a complete re-write is in order, I think he makes a valid point. I think Joel (again I'm interpreting here) would say that it is better to revise the current code, clean the current buggy code up and "perfect" it rather than to start over. After all, starting over doesn't even guarantee you that the new code will be any less crufty than the old code, just different! (Although, sometimes your design was fundamentally flawed to begin with and you need to start over to deal with the intrinsic problems in it, but hopefully those kinds of problem can also be dealt with by revisioning instead of starting over completely.) Start over with a new code base and you just end up with new bugs sometimes. Plus, as he points out, not releasing an updated product in the market for 3 or 4 years REALLY hurts a technology company.

    4. Being efficient is a waste of time. Let the hardware catch up with the crap code.

    Hmm, he does sound a bit like he's saying that. But, to be charitable again, I'll interpret him as meaning that it's not worth spending a lot of money and time to get small incremental performance increases or size decreases. But, obviously you're not going to set out to make your code as inefficient as possible. And he does have somewhat of a point about Moore's law. How many people are still using WordPerfect 5.1? Undoubtedly there are still a few people. . . but is Corel making any money from those people? Probably not, and since Corel is a company that needs (desperately at this point) to make money, they are going to add features that user want, that they think will give them a competitive advantage to Microsoft, even if that means increasing the size of the program a little bit.

  33. Strange obsession by ScottMaxwell · · Score: 2, Funny
    Quoting from the article:
    [Netscape] had to sit on their hands while Microsoft completely ate their lunch.

    ... dBase for Windows [...] took so long that Microsoft Access ate their lunch.

    ... Microsoft ate Ashton-Tate's word processing lunch.

    Maybe they should interview him again when he's not so hungry.

    --

    ``Life results from the non-random survival of randomly varying replicators.'' -- Richard Dawkins
  34. Re:Taking lessons from...Better Yet Check this one by GiMP · · Score: 2

    My college asked me to rewrite their pascal program in Java. I asked why. Their excuse was that it ran under DOS. I think it was a lame excuse.

    Anyway, the never rewrite code idea.. never optimize.. We now see why Windows is such a terribly bloated hog,.

    I think he forgot to mention the move of MacOS from m86k to PowerPC, and finally to OSX which is a wholy different kernel and can be considered a pretty major rewrite. And they did it without suffering! Ok, apple hasn't always been doing well, but it wasn't directly related their rewrites or huge porting projects.

  35. Name a business thats never made a mistake by Convergence · · Score: 3, Interesting

    I challenge you to name a business that never made a mistake.

    They all do, or they all will make a mistake. Pointing out that Netscape or Real lost because of a mistake is disingenious, because EVERY business makes some sort of mistake. They spend too much time adding on buggy features, or they spend too much time getting it stable that they lack features, or both at the same time.

    But, Microsoft's monopoly position mean that they're almost immune from mistakes. They can afford to have 3 teams rewriting code. They can afford to be a loss-leader for YEARS. They can write crap, but make sure it gets users from version 2.0.

    And, Microsoft makes mistakes, mistakes that would put any other software house out of business. Look at how late they got into the internet, and how many people they bought out to catch up? The billions of dollars spent developing IE.

    At that level, Microsoft doesn't need to give a fuck if they make a mistake. They have immunity from mistakes. They can use their monopoly to hide it, cover it up, or get a second chance later. Others, without a monopoly, cannot afford the expense of keeping up.

    1. Re:Name a business thats never made a mistake by Alomex · · Score: 2

      But, Microsoft's monopoly position mean that they're almost immune from mistakes.

      You got it ass-backwards. Microsoft was making mistakes and recovering from them better than anybody else way before they became a monopoly.

      If I had to attribute M$ success to one single thing (which is simplistic) it would be to their ability to completely, severely f**k up, pick up the pieces and carry on.

      They drop the ball with Pascal, Excel, Microsoft Word, FoxBase, Microsoft Works, Windows 2.0, Xenix, Windows 3.0, you name it...

    2. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      "Microsoft was making mistakes and recovering from them better than anybody else way before they became a monopoly. "

      I think you just made his point. In a fair market with lots of healthy copetition a company can make a mistake or two and still survive. Before MS has a monopoly the market was wide open and lots of comapnies took risks, failed some, and still survived. Once MS got their monopolies all other companies who took risks and failed immediately collapsed. In todays software market one mistake will doom any company who competes with MS. MS can crive any company it wants out of business by netscaping them. Make a competing product, give it away for free, bundle it with windows, force people to use it when they want to use other software.

      In todays market there is only room for open source and MS everybody else is dying.

      --

      War is necrophilia.

    3. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      You do realize how much 50 million is don't you? Very few companies in the world generate revenues over 50 million let alone spend 50 million to develop a product that they will give away. I can't think of one other company which can afford to do such a thing.

      --

      War is necrophilia.

    4. Re:Name a business thats never made a mistake by jonathan_ingram · · Score: 2

      Why all this bashing of Microsoft Word? When it came out, it was better than anything else out there -- small, relatively fast, and relatively featurefull (ignoring word count :). I still have copies of Word 2 and Word 6 on floppies somewhere gathering dust (Word 2 was my favorite version -- I used to have to write macros for it). Word 95 introduced red underlining to indicate spelling errors, which personally I think is a wonderful innovation.

      True, since Office 95 they've gone the route of changing the UI every pointless revision to milk money out of the gullible, but that seems to be the fate of any large successful mature commercial software package.

      People forget that MS products get there initially because they are attractive to people. Some of this is monopoly abuse, if you want to call it that, but some is also because *what they produce is attractive and useful to people*.

    5. Re:Name a business thats never made a mistake by Alomex · · Score: 2
      When it came out, it was better than anything else out there

      The market did not think much of either Word 1.0 or Word 2.0. As usual, Microsoft succeeded in the third attempt: Word 3.0.

    6. Re:Name a business thats never made a mistake by Alomex · · Score: 2
      I think you just made his point.

      Not at all. The point is which came first, M$ resilience to mistakes or its monopoly?

      While the two feed from each other, M$ was on a class of its own when it came to recovering from mistakes much before it was a monopoly.

    7. Re:Name a business thats never made a mistake by mpe · · Score: 2

      But, Microsoft's monopoly position mean that they're almost immune from mistakes. They can afford to have 3 teams rewriting code. They can afford to be a loss-leader for YEARS. They can write crap, but make sure it gets users from version 2.0.

      They can also bundle something into the "operating system" and then make use of their dodgy OEM contracts to be sure that people have to explicitally take some action. Installing someone elses software, etc. Such that unless the other sofware is considrably better than the Microsoft offering most people will consider it "too much trouble".

    8. Re:Name a business thats never made a mistake by mpe · · Score: 2

      True, since Office 95 they've gone the route of changing the UI every pointless revision to milk money out of the gullible, but that seems to be the fate of any large successful mature commercial software package.

      The important issue isn't the UI, so much as changing the file format...
      Also since word processors are "mature" types of applications the only "features" which get added are "bells and whistles". Which in practice end up being "bloat" which slows down the core functionality.

    9. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      Once again you miss the point. For MS (before or after the monopoly) it's different. Before the monopoly the market was open for everyone. Everyone (including MS) could survive making a mistake or two.
      After the monopoly MS could still afford to make mistakes and nobody else could. Even if a company makes no mistakes they could still be killed by MS because it can sufficate any company it wants by making free competing products.

      --

      War is necrophilia.

    10. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      Fine if you say so (I don't think you are including all the sub companies of MS but what the hell). IBM has debt, Sony has debt MS has no debt. MS has a larger cash reserve then most companies make in profit. COmpare the profitablity and the accumulation of cash and see how formidable they are. As long as they have a monoply (and are extending it to more markets) they can not be stopped. Right now the only thing that can stop MS is a well placed bomb or two. Neither the free market nor the govt is strong enough.

      --

      War is necrophilia.

    11. Re:Name a business thats never made a mistake by Alomex · · Score: 2

      Everyone (including MS) could survive making a mistake or two.

      That is what is just plain incorrect, but you keep coming back at it. You like to claim of a rosier past in which tech companies could screw up and survive. This never existed in the PC world. It just moves too fast.

      Most companies, even before M$ was a monopoly did not recover/survive after their first mistake, much less two. WordStar? CPM? Atari? Altair? Kay portables? Apple? Lotus? Ashton Tate? Borland?

      The list is endless....

    12. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      All those companies (CP/M was not a company) made mistakes? How many? What mistakes did lotus make? or Borland? Borland made and continues to make great software. MS ripped off lots of things from them like the tabbed worktables in excel and the tabbed interface for example. Quattro was superior in every way to excel (including the dos version) for a long time. Alas even when you make great products it's useless to battle a company which can outspend you in marketing, programming, lobbying, lawyering etc. On top of all that MS raided the borland staff by agressively going after Borland employees (they got sued for that and settled for close to 200 million IIRC). The only reason excel won is because it was bundled with word and PPT. At the time the MS office was introduced it undercut every body elses software. The entire office suit cost as much as quattro or wordperfect. This kind of "dumping" is only possible because MS has a monopoly in the OS market. They can subsidize all of their other software no matter how inferior it is. Of course everybody had to cut their prices, of course profitability suffered, of course marketing budgets were cut, of course personell had to be cut, of course R&D suffered. None of that was due to a mistake and all of it was due to predetory pricing by a monopolist looking to expand their monopoly to other markets. MS can always do this to anybody they want. Nobody can do anything about it but suffer and die. That's the harsh reality in today's market. Like I said the only hope is open source (or perhaps a few well placed explosives not that I condone that kind of behaviour mind you.)

      Borland continues to exist as a business and still makes some great products. Unfortunately they are alive only as long as they don't represent a threat to MS. The minute they do they will be wiped off the planet just like netscape.

      --

      War is necrophilia.

    13. Re:Name a business thats never made a mistake by Alomex · · Score: 2
      What mistakes did lotus make? or Borland?

      Their big mistakes are legendary. The fact that you don't know them proves that you have no idea what are you talking about. Go and read up about the history of 1-2-3 and Turbo Pascal, then we can carry on with this exchange.

    14. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      I don't have to read the history I lived through them. I used both Turbo Pascal (which was a breakthrough application) and lotus 1-2-3 which was the killer app that made people buy PCs.

      What mistake did borland make with Turbo Pascal? Turbo Pascal had a long and fruitful life. Have you ever heard of Delphi? It's a language based on pascal go look into it some day.

      As for Lotus MS purposefully sabotaged all it's versions of windows so that Lotus would not run. Every time you upgraded windows it broke Lotus. Have you ever heard of the phrase "windows isn't done till lotus won't run"? it was a mantra at Microsoft for a while. The Mistake lotus made was thinking that the people inside MS were ethical as they are. Lot's of people made that mistake and they all suffered. They simply could not accept that people would be that slimy and evil and it bit them in the end. MS proved to be the most abusive, unethical, and evil company on the face of the planet. If Borland and lotus made a mistake it was not realizing this fact. They simply assumed that they were dealing with human beings. Now they know they were dealing with walking slime buckets. Of course many companies got stabbed in the back by MS including IBM, Digital, compaq, HP, stac and of course netscape. Now nobody trusts them.

      Fool me once shame on you fool me twice shame on me. I guess even large corporations can learn that simple lesson.

      --

      War is necrophilia.

    15. Re:Name a business thats never made a mistake by Alomex · · Score: 2
      What mistake did borland make with Turbo Pascal?

      Easy, back in the late 80's TurboPascal was poised to become the language of choice for all developers. At that time Borland should have been porting TurboPascal to other architectures. In fact back then TurboPascal was so dominant that Microsoft stopped all work in compilers. What was Borland's next step:

      They took their best programmers of TurboPascal and had them work on TurboC, TurboBasic, TurboProlog, Eureka, Spriiiint...

      Borland singlehandedly revived C in the pc category, when they should have been killing it. They put Microsoft back in compiler's game.

      Delphi is but a shadow in popularity of what TurboPascal was.

      You really need to read up in PC history. When you do, pay special attention to the part on the development path from Lotus 1-2-3 v2.0 to Lotus 1-2-3 v3.0.

      That was the big snaffu from Lotus which created an opening for Quattro, WingZ and Excel. None of this imaginary "sabotage" that you like to claim...

    16. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      "They took their best programmers of TurboPascal and had them work on TurboC, TurboBasic, TurboProlog, Eureka, Spriiiint... "

      So let me get this straight. Acording to you borland should have stayed a one product company. Not exploring new avenues of revenue and growth right? Oh yes that would have been much smarter. I suppose if you are dumb enough to think borland could have killed C then you are dumb enough to think you can sustain a company with just one product. And what are the other architectures they were supposed to port it to? All there was was z-80 and 8080. Or do you mean they should have ported turbo pascal to pdp-11 or VAX? LOL! what a moron.

      "Delphi is but a shadow in popularity of what TurboPascal was. "

      Yes and that has nothing to do with Microsoft right?

      "None of this imaginary "sabotage" that you like to claim...

      "None of this imaginary "sabotage" that you like to claim... "

      I don't claim this. It is well documented just do a search for the phrase "windows isn't done until lotus won't run". The sabotage did take place and was reported widely in the computer media.

      Oh never mind I am talking to somebody who thinks borland could have killed C and survived on one product, why bother talking to idiots.

      --

      War is necrophilia.

    17. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      I seriously doubt anything borland did would have slowed down the growth of C.

      The problem was that the guys at borland actually wanted to provide superior products. That's why they invented things like OWL and VCL. Alas they did not have a monopoly and could not push their agenda forward like MS could.

      --

      War is necrophilia.

    18. Re:Name a business thats never made a mistake by Malcontent · · Score: 2

      You have delivered nothing but inane statements like "borland tried to kill off C" and "borland should have ported turbo pascal to other architectures". Well I am pointing out that you are moron if you if think that those were sound business judgements. That's the most assinine thing I have ever heard in my like. Borland tried what every business does. Develop new products, try to diversify. Apparently you think this was a "mistake" and that they should have stayed a one trick pony.

      Like I said you are idiot and moron.

      --

      War is necrophilia.

  36. Re:Microsoft's Competitor's Incompetence? by BitwizeGHC · · Score: 2

    I think their software was just less incompatible than their competitors'. Remember "DOS isn't done till Lotus won't run"? Remember DR DOS and Windows 3.1? Microsoft's stranglehold on the PC platform is instrumental to its success.

    --
    N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
  37. Reminds me of this quote by Daath · · Score: 2

    By the late Douglas Adams, may he RIP:

    I love deadlines - I love the whooshing noise they make as they go by

    I still can't believe he's gone :(

    --
    Any technology distinguishable from magic, is insufficiently advanced.
  38. Missing vital part of recipe by pdqlamb · · Score: 2

    Compete against a company with apparently unlimited resources. They can keep throwing programmers at you, buying more magazine ads, articles, and columnists than you*, and keep doing this until you fail. Microsoft, with a monopoly on operating systems and OS revenue, comes to mind.

    Borland languages? Hire away their best programmer. Netscape? Give away a product to undercut them. Wordperfect? Buy ads until the reviews start tilting your way, and (in the Netscape preview) bundle it with the OS for 1/4 to 1/8 the retail price of the competition. 1-2-3, ditto.

    *A recent newsgroup article said of a magazine, "Everything in [the magazine] is an advertisement, and some of them are marked as such."

  39. Valid point, but something else to think about: by JSBiff · · Score: 3, Insightful

    I agree with you that sometimes the design is fundamentally, intrinsically flawed and needs to be thown out; but more often times you can revise and evolve code.

    As far as Microsoft redesigning the OS with NT:
    Microsoft is one of the few companies who can afford, financially, to have parallel development teams. When Microsoft started building NT they had help in funding the development because IBM was helping them (remember that NT started out of the OS/2 project that Microsoft was working on with IBM). And later on they had made such a fortune on Win95 + Office 95/97 that they had more than enough money to fund parallel development.

    Microsoft realized that, at least in the early versions of NT, normal users would have a hard time administering NT and running a lot of the programs they wanted to use under NT. That is why they paid developers to keep developing Win9X/ME, EVEN AFTER they decided to redesign the OS. I would say that Win2k Pro is the first version of NT that most users would have no more problems with than if they were using Win9x.

    Since most companies can't afford to keep parallel development teams in order to maintain the old product until the new product is "ready" for all their users, it usually (though not always, I think) makes more sense financially to try to evolve and revise the current code base.

    Point 2: Microsoft IS, in most cases, following exactly the strategy that Joel outlines. Take Internet Explorer for example. Up until IE4, IE just plain sucked as a browser. Microsoft kept revising/evolving it though; With 4 it still had lots of annoying things about it, but was generally usable. With 5.x they fixed more bugs, got a lot of things working fairly well (of course, there were still some things that were annoying about it, especially from a web developers' perspective, like a bad implementation of Cascading Style Sheets, which still isn't quite right (but I'd hasten to add that Netscape 4.x's implementation of CSS is much worse; sometimes valid CSS would CRASH some of the 4.x browsers). Now they've released IE 6. Still not perfect, but adequate and productive for most users. The point of my writing about IE like this is that Microsoft has been able to, relatively quickly, revise their browser, whereas Mozilla/Netscape6 has basically become really useable only in the last 4 months or so (here's where I point out that I'm composing this in Mozilla under Linux).

    So, I'd say that Joel's point is somewhat valid, and that Microsoft, in fact, does follow his logic, in most cases (Office, SQL Server/BackOffice, IE, etc).

    1. Re:Valid point, but something else to think about: by IntlHarvester · · Score: 2

      Your first point -- it gets deeper than that. Windows 95 was a necessary product because experience (Xenix, OS/2, NT 3) had shown them that people wanted 90% driver compatibility and 99% software compat, and there needed to be a bridgehead. It's a beautiful kludge in it's way, but damn has it outlived it's usefulness.

      But, then a few things happened --
      1) NT 4.0 development got behind - major features (plug-n-play, power management) got pushed back to NT5
      2) NT5 got hitched to ActiveDirectory, a hugely complex system that took a long time to get right, and all of its other great features were delayed accordingly
      3) (I suspect) Microsoft found that segmenting the market into 'professional' and 'home' and charging according was making them tons of money.

      My guess is that Win 98/ME were the 'backup plans' in case NT5 missed it's target (which it did, even the planned Win 2000 "Home" edition), but reports indicate there was also the factor that "it makes tons of money so therefore it must be good!"

      The end result was an unpleasant situation where consumers had a choice of running their Win32 apps on an unstable Win98 or an unfinished WinNT. This brought about an enormous amount of pain (which for the most part they could afford, being the only desktop OS vendor and all...)

      The point is that keeping 9x in service for so long wasn't really "the plan". It's really too bad that the backup idea wasn't something like NT 4.5, which could have shipped for home and business users in 1998.

      --
      Business. Numbers. Money. People. Computer World.
  40. Re:The truth: the other apps sucked by SoftwareJanitor · · Score: 2

    Another reason is that Microsoft was busy telling all the other developers (you know, the ones that made the PC platform popular, like Lotus, WordPerfect and Borland) to write all their software for OS/2, while they were secretly planning to stab IBM in the back and spend their real efforts on Windows. So Lotus, WordPerfect and Borland missing the boat with their original Windows versions is at least partially Microsoft's fault too. Microsoft had intentions of taking over the development tools and application software markets, and the DOS->Windows transition worked in their favor to doing that. It also didn't help matters that Microsoft was cutting off the air supply of the other software vendors through forced bundling and product dumping, which cut off revenue from other vendors when they most needed it to develop new products.

  41. Re:Good point NOT by renehollan · · Score: 2
    For simple, exercize code, this is true. Once you enter the real development world, this is patently false. Let's examine these one by one:

    Clear, Consistent Formatting

    Forget about importing free third party code that doesn't adhere to your formatting standard them. you bend to the maintainer of a particular piece of code, and in a large project there may be many major maintainers. It helps of course if all in-house people can agree to a layout style, but you're going to have to deal with foreign code anyway, so don't stess over it.

    If it really matters for publication purposes, use a pretty-printer. All decent programmers are not put off by slightly different indentation styles across major code sections so long as there isn't too much stylistic scizophrenia in a given file. And no, you don't want programmers who can't "handle" it touching code -- they mess things up too much.

    Hungarian Notation? Ugh. Spare me the need to be ever so explicit about types. Good programming is all about layers of abstraction. It isn't a "pointer to an object with 5 abstract member functions: open, close, read, write, and control". It's a pointer to a DEVICE, damn it! Learn the paradigms and abstractions before delving into the code.

    Copious Comments

    How many times have you seen, "i += 1; // increment pointer"? Doesn't help, does it? You document the trees but ignore the forest that way. Get the internal abstractions and paradigm out of the way and you're done. "This state machine maps input data and current state to an output message and new state." There! Done!! Documented!!! You don't need the "what's a state machine?" people around.

    Documentation

    Less is more. Really. The trick is to maximize the ideas communicated per words written. It takes time to think up, time to write, and time to read. At some point there is no excuse for not reading the code. Documentation should be a roadmap, not a novel.

    Coders who follow these rules truly are an asset to their company. Geeks who hack, write unreadable code, and utter geek credos about enforcing obfuscation and being purposefully vague have no place in a business environment.

    Coders who follow these rules produce what? 3000-6000 lines of code a year? Ain't gonna get product out the door that way. What you get is code with lots of comments about what it is supposed to do, but doesn't because of all the time spent on documentation instead of design and debugging.

    As for unreadable code, I've found that good programmers who have low defect rates and high productivity can read code like prose, provided the paradigms ("what was he thinking?") are explained early on. It's the medeocre ones that need the handholding.

    These mantras are derived from the belief that coders should be interchangable, that design, and documentation should fit the needs of the lowest common denominator. Well, that's a waste of talent. You're forcing those who can crank out correct code an order of magnitude or more more productively than the average to slow themselves down by a corresponding factor.

    Stop hiring idiots. Pay three times the average wage and hire only the best. You'll have much better productivity/cost ratios. So what if 4/5 programmers can't understand the code? The one you've got does the work of 2 to 3. And others like him can pick it up with little or no effort.

    --
    You could've hired me.
  42. Re:He's only partly correct about the rewrite thin by Cato+the+Elder · · Score: 2
    I agree with much more than Joel. Of course, being able to hit the program with a testing suite that encapsulates all the known bugs implies you have such a thing. But code that has "all these little fixes" and all this "programmer knowledge" in its twistly little lines leads to bugs too. Dependancies get hidden, comments become out of date, an unsafe hack is put in for one particular operating system.

    Joel seems to conclude that because a lot of prominent companies have failed at code rewrites that they are a bad idea. He's right that you can't put your existing product on hold while you rewrite the code from the ground up. But if you don't take the hit one time, it will cost you in lots of little ways over a long time. Would he advocate never upgrading a companies IT infrastructure because of the disruption that would cause? Probably not. The key is to test stuff first, and try to get everything switched over when it will inconvience the fewest people.

    One big problem with rewrites that he doesn't address is the "second system effect" from The Mythical Man-Month. This is the urge of, when your doing your redesign, to but everything into it, conquer the world, put every single feature in. This, in my opinion, is what happened with Netscape. Joel seems to think that this kind of problem is inevitable with rewrites, I disagree.

    The buisness side of the equation I think he missed is all the companies that have disappeared because their product couldn't be updated for changing times, and they couldn't afford to do a rewrite. Some startup, or a new arm of Microsoft, comes and throws tons of money at a done from scratch solution, and becomes the next leader.

    Anyway, that's what I'd tell Joel if I worked for him on some project that was riddled with crappy code. And if he fired me, hey, plenty of other jobs.

  43. He missed one by drodver · · Score: 5, Interesting

    He missed expecting developers to work 9+ hour days as standard practice. A good book is "Debugging the Development Process". The author also worked at Microsoft, he was a project manager for a couple of different projects that were missing deadlines. He said often they were working 12 hour days all the time. When he started making people go home and also managed the to-do-list better the project would stabalize.

  44. That's a surprise? by Nindalf · · Score: 2

    All the execs would rather lay off people than cut their [own] salaries.

    Well, of course! When was the last time you took a pay cut for someone else's job?

    Perhaps this is incompetence on the part of the owners, but it's not management incompetence to take as high a salary as you are allowed. You just don't turn down money from the boss. Your work and everything under you is your problem, the expense of your salary and everything above you is your superiors' problem.

  45. Re:I'm a little confused.. by ICodeThereforeIAm · · Score: 2, Insightful

    You must be young. Borland used to have a PIM (sidekick), a database (DBase), a spreadsheet (Quattro) and a wordprocessor trying to compete with MS. Needless to say, MS won. Now Borland is focused on their development tools.

  46. Re:Trying to hire female and minorities as a quota by SoftwareJanitor · · Score: 2

    Their minds don't work like that

    I don't think that is a fair statement. I think it is more that their culture puts more emphasis on conformity than creative thinking and their educational system puts a lot of effort into more engineering type processes than artistic ones. But those are all pretty broad and vague generalities. It is better to judge each individual on their own merits.

  47. NT was for nothing by Sloppy · · Score: 3, Insightful

    No one seems to be taking up this position in their replies to you, so I'll give it a try...

    Maybe NT really was a mistake. Maybe Microsoft would be even richer if they had just kept evolving Win9x and let it accrete more features.

    Did Microsoft really gain anything from NT? I don't mean gain things that important to geeks (reliability, performance, cleanliness, etc), I mean gain anything that is important to being commercially successful.

    Name one feature that NT has and 9x doesn't, which has resulted in increased revenue for Microsoft.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    1. Re:NT was for nothing by Error27 · · Score: 2
      I think that if windows 95 and 98 had been decent operating systems Linux would not be nearly as popular.

      Microsoft has a pretty good operating system with either XP and 2000. But now Linux is too big to go away.

      Perhaps they could have turned 98 into a decent operating system in time but I doubt it.

    2. Re:NT was for nothing by zulux · · Score: 2

      Maybe NT really was a mistake. Maybe Microsoft would be even richer if they had just kept evolving Win9x and let it accrete more features.

      In a way, NT was a mistake. In the time spent from Windows 98 to Windows XP - Microsoft has lost ground to KDE. I the time that Microsoft has spent removing the paperclip and playskooling the desktop, KDE had gone from nothing to something cool.

      --

      Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

  48. Re:Another college freshman by Abcd1234 · · Score: 2

    I would partially agree. Yes, in the real world, there is some very complicated code. BUT, if you write the code correctly, you should be able to understand it with relatively minimal commenting. Basically, comments should exist to clarify parts of the code that are difficult to understand, or to provide information not immediately obvious (ie, code assumptions, side-effects, etc). The rest should be self-documenting. If it's not, there's something wrong. Period. After all, how can someone else maintain the code if they constantly have to read the comments just to figure out what it's doing?

  49. Re:Why the Linux project fails by Drahca · · Score: 2, Informative

    An important factor in Linux' cost is its maintenance. Linux requires a *lot* of maintenance, work doable only by the relatively few high-paid Linux administrators that put themselves - of course willingly - at a great place in the market. Linux seems to be needing maintenance continuously, to keep it from breaking down.

    And you base that on? I admit that Linux takes a lot of work to setup and is badly documented. So as an administrator you need to know a lot of stuff and have experience. Therefor good sysadmins are scarce, and earn a decent living. But when Linux is actually running it just doesn't brake down like that and doesn't require hours of maintenance, it just works!

    About the EXT2 filesystem. It has had its best time and should be replaced. Ext3 is not the *longterm* answer, and I sincerely hope Linux advocates realize this. The reason Redhat is using ext3 as its new default FS is simple, there is no valid alternative. Ext3 is the *only* new Linux FS which is included in the newest kernel release, it is mature and fully tested. There however are alternatives on the way. Such as XFS and ReiserFS. I hope one of those FS's will become the new default FS for Linux. It is after all beter to have one good FS, that several mediocre ones.

    Back to Linux' cost. Factor in also the fact that crashes happen much more often on Linux than on other unices. On other unices, crashes usually are caused by external sources like power outages. Crashes in Linux are a regular thing, and nobody seems to know what causes them, internally. Linux advocates try to hide this fact by denying crashes ever happen. Instead, they have frequent "hardware problems".

    Please! If this was true than why oh why are SGI and IBM (and many others) putting so much effort in Linux? Ah right, to patch it and make it work...

    The steep learning curve compared to about any other operating system out there is a major factor in Linux' cost. The system is a mix of features from all kinds of unices, but not one of them is implemented right. A Linux user has to live with badly coded tools which have low performance, mangle data seemingly at random and are not in line with their specification. On top of that a lot of them spit out the most childish and unprofessional messages, indicating that they were created by 14-year olds with too much time, no talent and a bad attitude.

    No argument here. Even if you stick to software from the distros themselves you end up with buggy programs with GUI's that resemble, well, don't know anything quite so bad. That give error messages like: "Error: Unkown Error" or "Oops!" or "valoir parser" (french). This really is a problem. And I hope this will be adressed in the future.

    I could go on and on and on, but the conclusion is clear. Linux is not an option for any one who seeks a professional OS with high performance, scalability, stability, adherence to standards, etc

    standards..like POSIX? Scalability you mean as in SMP, beowulf.. Performance as in used on many a webserver.

    Face it, Linux is evolving rapidly, and perfect as it may not be, it is one damned usable, scalable, well performing, stable, FREE OS!

  50. Do we really need... by phillymjs · · Score: 2

    ...a former Microsoftie explaining how Netscape failed?

    "Well, we bought another company's browser, threw the Microsoft logo on the splash screen, and gave it away for free. Nobody bought Netscape's when they could get ours for free, so there goes the R&D budget for Netscape. We're raking in *our* R&D money from the Windows/Office upgrade treadmill we put the planet on, and..."

    ~Philly

  51. Re:Why the Linux project fails by flacco · · Score: 2, Troll
    I could go on and on and on, but the conclusion is clear. Linux is not an option for any one who seeks a professional OS with high performance, scalability, stability, adherence to standards, etc.

    You could go on, but it's the end of a workday and you have to punch the ol' Microsoft time clock.

    --
    pr0n - keeping monitor glass spotless since 1981.
  52. Actually, you could write code like Joel by Erris · · Score: 2
    He actually said this:

    A programmer will whine about a function that he thinks is messy. It's supposed to be a simple function to display a window or something, but for some reason it takes up two pages and has all these ugly little hairs and stuff on it and nobody knows why. OK. I'll tell you why. Those are bug fixes. One of them fixes that bug that Jill had when she tried to install the thing on a computer that didn't have Internet Explorer. Another one fixes a bug that occurs in low memory conditions. Another one fixes some bug that occurred when the file is on a floppy disk and the user yanks out the diskette in the middle. That LoadLibrary call is sure ugly but it makes the code work on old versions of Windows 95. When you throw that function away and start from scratch, you are throwing away all that knowledge. All those collected bug fixes. Years of programming work.

    Now we know, in the M$ world bugs=knowledge. No wonder SpyG^H^H^H^H MSIE takes up a 500M foot print. Whoo hooo!

    The real question is, "How do you sell that shit?"

    --
    DMCA, Hollings, Palladium. What might have sounded like paranoia is now common sense.
  53. Re:He's only partly correct about the rewrite thin by blamanj · · Score: 2

    One big problem with rewrites that he doesn't address is the "second system effect" from The Mythical Man-Month.

    Spot on. The key to successful rewrites is not to attempt to build the "ultimate architecture" for the application, but to target the actual problems in the code base. The ones that cause the code to be riddled with patches and work-arounds because the original design simply didn't meet the challenges of the real world.

    I don't doubt that Mr. Spolsky has learned some valuable lessons in his career, but in that article he certainly comes across as if he were saying "I'm a manager now and I know everything there is to know about the development process." When you start phrasing things in absolutes (never, always) it's usually a sign of trouble.

  54. MS successfulness != code quality by ortholattice · · Score: 3, Insightful
    According to Joel, the single greatest development sin a software company can commit is "deciding to completely rewrite your product from scratch, on the theory that all your code is messy and bug prone and is bloated...A programmer will whine about a function that he thinks is messy. It's supposed to be a simple function to display a window or something, but for some reason it takes up two pages and has all these ugly little hairs and stuff on it and nobody knows why. OK. I'll tell you why. Those are bug fixes. One of them fixes that bug that Jill had when she tried to install the thing on a computer that didn't have Internet Explorer. Another one fixes a bug that occurs in low memory conditions. Another one fixes some bug that occurred when the file is on a floppy disk and the user yanks out the diskette in the middle. That LoadLibrary call is sure ugly but it makes the code work on old versions of Windows 95. When you throw that function away and start from scratch, you are throwing away all that knowledge. All those collected bug fixes. Years of programming work."

    My God. So this is what Microsoft code looks like? It's a miracle it can be maintained at all. This sounds like sloppy coding by trial-and-error, at its worst. Code filled with "ugly little hairs and stuff" that "nobody knows why" is almost a guaranteed recipe for buggy, unstable code. If all these "bug fixes" were properly commented to begin with there would be no argument as to why they should be kept. Thank God for open source, where programmers are _proud_ to show off their code (well, a lot of them, anyway).

    I would attribute the successfulness of Microsoft, and the failure of others, to factors other than the quality of its code.

    1. Re:MS successfulness != code quality by simm_s · · Score: 3, Insightful

      You don't code much do you? The point is that the environment you are given may not work as told.

      This sounds like sloppy coding by trial-and-error, at its worst.

      Not always:
      Example: The hardware on device X has a timing hazard under conditions Y. Even if your code is perfect it will not work under every condition (that is the real world). So under that condition you do something that seems to have nothing to do with the design under normal condtions. Voila! Problem is solved your code is more robust.

      In the land of make-believe you can just ask the hardware maker to recall their million+ units to fix your silly little issue, but we live in reality.

      Those "ugly little hairs" may not make sense to the 10th maintainer on the project that was ported three platforms ago (Even if commented). I've seen alot of opensource code and some of its pretty damn unreadble. I've seen libraries given with no api reference or samples, drivers with no documentation, and the list goes on. I guess "real men" figure it out just by reading the source. While wasting hours trying to get the code to work in their project.

      Poorly documented open source is just as closed as proprietary code.

    2. Re:MS successfulness != code quality by decesare · · Score: 2

      Clean, compact code will not sell any more copies...

      No, but there's a second variable in the profit equation, and that is cost, which for software means not just development cost but support costs also. Depending on what the code actually does, it probably costs a lot less to support, fix, and add enhancements to that clean, compact, well thought-out code than it does to support a buggy, bloated alternative.

      The big problem here is that when working on the product specifications and plans, very few managers bother to even consider issues related to support and maintenance, much less actually try to anticipate and/or account for how much that support and maintenance is going to cost the company over time.

  55. Re:Good point NOT by cjsnell · · Score: 4, Insightful
    Coders who follow these rules produce what? 3000-6000 lines of code a year? Ain't gonna get product out the door that way. What you get is code with lots of comments about what it is supposed to do, but doesn't because of all the time spent on documentation instead of design and debugging.

    Excellent point. My philosophy about commercial software is this:

    Never forget why you're writing the code to begin with. The point is to get working, stable code out the door as fast as possible. Anything that does not accomplish this is a waste of time.

    Doing your architecture work is fine, but do it on a whiteboard in your cube with your co-workers. Don't waste time holding formal design meetings and drafting useless documentation and diagrams because, honestly, nobody will ever read them.

    Modularize/componentize your code as much as possible. Document what the module as a whole does and what data it requires and what data it returns . You shouldn't have to waste time commenting every single peice of code. If you''ve modularized and documented what the module does, any decent programmer can figure out the rest.

    In addition to not hiring idiots, don't hire people who love to wallow in bureaucracy and process. Besides not getting jack shit done, they impede everybody else.

    If you want to comment and spend hours drawing Visio diagrams, fine. Wait until after the product is released to do this. These do not accomplish the goal (see point #1).

    Chris

  56. Yes! This is spot on! by IGnatius+T+Foobar · · Score: 2

    If there were ever a time to make an exception and allow a comment to be moderated up to 6 or 7, the above post would be it. I can't believe how many people here are actually believing the tripe in this article, which basically suggests that Microsoft won so many markets because they actually had better products. SoftwareJanitor's post is spot-on: Microsoft had (and has) enough monopoly ca$h to keep plugging along until they eventually get it right. Most other software companies can't afford that, so they just end up folding.

    Come on now, do you really think that a product as awful as Exchange would get very far if it didn't have Microsoft's money behind it?

    Give no credit to Microsoft here. They're the bad guys and they will continue to be the bad guys for the foreseeable future. Don't be swayed by this moron.

    --
    Tired of FB/Google censorship? Visit UNCENSORED!
  57. Rewriting code by Todd+Knarr · · Score: 2

    As far as Joel goes, I've been there, done that, got the t-shirt. The problem is, he's wrong. Yes, it costs to rewrite code from scratch. What he misses is that it costs to not rewrite code from scratch too. The question is, which costs more? After a certain point, all those accumulated bug-fixes and patches and kludges to make the code work take longer to work around than it would take to throw it out, take what you learned from it and reimplement it right so it doesn't need all those kludges. At that point, if you refuse to rewrite you end up tying your hands. To borrow one of his cases, yes Netscape sacrificed a lot by throwing out the crap codebase of 4.x. Yes, they couldn't respond to MS's advances while they were rewriting. But if they hadn't rewritten, they wouldn't be able to respond to MS now because it'd take forever to try and turn a tag-soup browser into something that could actually parse XML given a DTD.

    I think I'll agree with the analysis I ran across in the IEEE software development magazine, that concluded that software has a lifespan of about 4-6 years, at which point it's cheaper and faster to throw it out and rewrite it based on what you've learned than it is to keep modifying it.

    Come to think of it, that applies to lots of things. There's a point where you just have to stop tinkering with a prop-driven aircraft, abandon the whole propeller idea and start building jets if you want to go faster.

  58. Re:And just how much software have YOU designed? by achurch · · Score: 2, Funny

    Given your opinion on commenting, it shows that have almost zero real world experience. Lord save me from l33t people like you who think they know it all.

    Given your opinion on commenting, it shows that have almost zero real world experience. Lord save me from l33t people like you who think they know it all.

  59. Re:Why the Linux project fails by elflord · · Score: 2
    An important factor in Linux' cost is its maintenance. Linux requires a *lot* of maintenance, work doable only by the relatively few high-paid Linux administrators that put themselves - of course willingly - at a great place in the market. Linux seems to be needing maintenance continuously, to keep it from breaking down.

    Hogwash. Any operating system needs basic maintenance in the form of security updates. However, it's simply false that Linux "falls apart" all by itself.

    According to Linux advocates, an alternative to EXT2FS would be ReiserFS. Unfortunately, ReiserFS is still in beta stage.

    What do you mean by this ? The current release of ReiserFS is not a .0 release, it ships with production kernels, and IIRC SuSE uses it by default.

    This means it is not intended for production use

    Nonsense. Read the ReiserFS webpage. It's a mature project, and it's perfectly fit for production use.

    Crashes in Linux are a regular thing, and nobody seems to know what causes them, internally.

    On what basis do you make this claim ? I admin several Linux boxes, and crashes are rare. Downtime usually consists of kernel upgrades, power outages, and OS upgrades.

    I could go on and on and on, but the conclusion is clear.

    Given the fact that your reasoning seems to be based upon your conclusion, and not the other way around, I find myself agreeing with this assertion.

  60. Not relevent to free software movement by bug1 · · Score: 3, Interesting

    This article is really about the economics of rewritting software.

    The fundamental difference between free software and commercial software is that free software is about the product, commercial software places a higher value on the profit than the product.

    The classic engineering design method is to build something, break it, build it again break it again, etc etc.

    Ive never heard of good engineering design comming from build it, break it, fix just the bit that failed, break it, fix just the bit that failed, etc

    The whole program is one product, patches dont always fit in nicely with the overall program flow, thats when a program becomes ugly.

    Ugly code is more costly to free software because it stops people wanting to get involved, if commercial software is ugly they just pay them more money or something, managment doesnt care how much programmers like readign the code, they just care that it works and its on time/budget

    1. Re:Not relevent to free software movement by mpe · · Score: 2

      That would surely explain what most free software is in unfinished, hardly usable ,"this feature is not implemented" state, while commercial stuff mostly works great out of the box.

      You are missing the point that free software is available at all steps of development. You only tend to get to see proprietary commercial software when they think they have a viable product to sell...

  61. Thinking "simply"... by DocStoner · · Score: 3, Insightful

    [1st and foremost: I use and support Microsoft products. The software and OS's work "OK". No further explanation or flaming is necessary.]

    Everything this guy says tells programmers to consider the bottom line, the almighty dollar. This attitude works in other industries, but will eventually bite them in the ass. (Automotive anyone?)
    He's actually giving us the directions on how to beating MS. So, if you are producing such and are in this to make a fortune today instead of tomorrow... take notes they will be invaluable... for the near future.
    However, we all know this is the worst advice for those of us who use and program open source software. We want simple code. We want it to do just the basics. If it's too basic for you, here's the code, feel free to add to it.
    Remember the automotive industry? Japan (and Germany) started out with simple basic cars and trucks. And the typical American car buyer? "They're so small, so plain and slow." Hmmm, now these little 4-cylinders are blowing the doors off of the bigger American cars. Because each time they built their cars, they started out simple and refined each part before they added on.
    MS is winning today, but soon people will like their programs and OS's like they demnd their cars now, reliable and economical. It will happen, but how long will it take?

  62. Sometimes you just HAVE to throw out old code! by leonbev · · Score: 2

    Joel forgot to mention that there are some good times to throw out old code:

    * If the existing program is written in some old, obscure programming language (like Forth or INTERCAL), and no one on the existing programming team knows how to read it, rewrite. Unless the program is HUGE, it's probably cheaper to rewrite it than hire a new programmer that knows how to change it.

    * If the existing software has more bugs and incompatibilities than features that still work as originally intended, rewrite. Let's face it, some code is SOOO bad that it just isn't worth fixing.

    * If the code is poorly commented, or doesn't adhere to the most basic modern programming conventions (I'm thinking GOTO loops, 2 letter variables, and line numbers here), scrap it. You'll drive the programmers nuts trying to figure it out and fix it.

    * If using the existing code requires buying thousands of dollars worth of proprietary middleware and conversion software to make it work on a new platform, rewrite. Joel mentioned this one to some extent, but some pointy haired bosses out there just don't realize how much more complex and problematic a system can become once you start adding machines who's sole purpose is to act as a gateway or translate data between formats. Trust me, I have personal experience with this one.

  63. Re:Yes! This is spot on! by SoftwareJanitor · · Score: 2

    Come on now, do you really think that a product as awful as Exchange would get very far if it didn't have Microsoft's money behind it?

    Let alone that Exchange wasn't even their first attempt to break into the email server market... Those who remember the horror that was MS-Mail know the revulsion of hearing Microsoft apologists say things like "well, at least Exchange is better than MS-Mail"...

    BTW, thanks for the compliments.

  64. Hubris, laziness, and impatience by ttfkam · · Score: 5, Insightful

    Let's compare:

    for (i = 0; i array_size; i++)
    free(array[i]);
    free(array);

    and now let's look at:

    // get rid of the array
    for (i = 0; i array_size; i++)
    free(array[i]);
    free(array);

    Has your life *really* been so harmed? Is this *really* so terrible? Comments should not be written with the thought that your university professor would know what everything else means. Comments should be written so that all of those folks without a PhD in CompSci. know what it means.

    What if the next joe to hit your code doesn't have a degree? What if the recently-hired intern was just handed a "C in 21 days" book and told by the manager to "fix it" because the programming team is snowed in (or similarly unavailable) and the customer is screaming? (Yeah, try and tell me that's never happened...)

    A fine use of comments is (for example) every ten lines to say, in general, what is going on. One thing I used to do is write a comment at least every 10-15 lines. Why? When the next joe who comes along has to read/edit my code, scanning through some periodically placed comments will *always* be quicker and easier than reading the code. ...assuming they are English speakers of course. Proof? I have programmed (I don't count the BASIC years) for ~10 years. I have been writing/speaking English for over twice that long. Which do you think I'm better at?

    The code effectively shows my implementation, but may not show my intention. I have coded for years. I started dreaming in code several years ago. Shortly thereafter, the code actually worked when I typed it in the next morning. That isn't the point. How good a coder you are isn't the point.

    When you have a hundred thousand lines of code to go through, comments become like "Cliff's Notes." For the quick patch (probably the majority of code being written by most people), comments are invaluable. Who cares if I didn't read Moby Dick if I can still pass the pop quiz? If I need to make an indepth study, I can still do this, but thank god for the "Cliff's Notes."

    Now then, on to the "proper" use of comments.

    1. Write out what you are planning to do in English. (or whatever else may be the dominant language in your development group) Fill in every step in the problem. This is NOT psuedo code. This is akin to: Find out who www.yahoo.com is, open a connection, ask for the main page, and check to see if our cache is still valid. If the cache is stale (the yahoo page has been updated), get a new copy of the main page. If the cache is still valid, pull the page from cache instead. Drop the page into the "ready" bin and send a message to the user that the page is here.

    2. Make a copy and label it "documentation."

    3. Go back to the original, fill in all of the logic in whatever programming language at the appropriate points in your "documentation," and label it "source file."

    This means that your documentation is done, your code is adequately commented, and your algorithm and intent(!) are clearly defined for both your co-workers (and yourself when you have to fix something ten months from now). If you can't spell out the problem and the solution in your primary native language, you sure as hell better not be trying to spell it out in a programming language that members of your team have only been using for two years.

    The only excuse not to do the above is laziness. For some people, laziness is not considered a bad thing. It was noted as being one of the main virtues of a hacker -- hubris, laziness, and impatience. Hell, according to this measure, I myself am lazy from time to time. But cut the bravado, the beating of the chest, the battle cries of "I'm smart enough to figure this out, so should you be," and call a spade a spade. Avoiding comments means that you are being lazy.

    --

    - I don't need to go outside, my CRT tan'll do me just fine.
    1. Re:Hubris, laziness, and impatience by ttfkam · · Score: 2

      I wish I had remembered to switch that out (I had actually thought of it when I started the post). It goes to the point that comments should make the implicit intent of a particular piece of code, explicit.

      You're right of course.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    2. Re:Hubris, laziness, and impatience by Rocketboy · · Score: 2


      The code effectively shows my implementation, but may not show my intention.


      Possibly the most intelligent comment I've ever seen on Slashdot.

    3. Re:Hubris, laziness, and impatience by Harri · · Score: 2, Insightful

      If your code is written so that it requires this level of commenting to understand, it is _crap_.

      If you have a block of code that says

      // do X
      [ code that does X ]
      // do Y
      [ code that does Y ]
      and so forth

      Change it so it says

      void doX(){
      [ code that does X ]
      }
      void doY(){
      [ code that does Y ]
      }

      // ....
      doX();
      doY();

      Each function should do _one_ thing. Comments should be reserved for stuff which it isn't possible to express in the code itself.

    4. Re:Hubris, laziness, and impatience by Chris+Mattern · · Score: 2, Informative

      > Let's compare:
      >
      > for (i = 0; i array_size; i++)
      > free(array[i]);
      > free(array);
      >
      > and now let's look at:
      >
      > // get rid of the array
      > for (i = 0; i array_size; i++)
      > free(array[i]);
      > free(array);
      >
      > Has your life *really* been so harmed? Is this
      > *really* so terrible?

      Well, yes. Because instead of a comment that
      states the blindingly obvious, we *could* have
      had:

      // search is done, so get rid of array
      for (i = 0; i array_size; i++)
      free(array[i]);
      free(array);

      stating *why* we're getting rid of the array.

      Chris Mattern

    5. Re:Hubris, laziness, and impatience by ttfkam · · Score: 2

      If a code beautifier can't deal with the input, you've got bigger fish to fry than the comments...

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    6. Re:Hubris, laziness, and impatience by ttfkam · · Score: 2
      I generally take comments as a sign that the code they comment needs simplification, and then refactor it until the comments are redundant.


      Heh... so much work and vitrol to avoid a few measly comments. As was stated by my first post, having a few extra comments would rather likely not hurt anyone. Skipping a few extra comments (more often the case) can definitely hurt.

      See my other post regarding this thread.
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    7. Re:Hubris, laziness, and impatience by Salamander · · Score: 2
      Now then, on to the "proper" use of comments.
      1. Write out what you are planning to do in English...
      2. Make a copy and label it "documentation."
      3. Go back to the original, fill in all of the logic...label it "source file."

      I'm reluctant to discourage people from writing both specs and comments, but I think that advice needs to be taken with a grain of salt. One of the most common causes of error in programming is having two copies of the same thing that get out of sync over time. This "thing" can be specs vs. comments in your example, variables in a program, or cached disk blocks in a system. Maybe I'm especially sensitive to this sort of problem because this last example is pretty much my specialty (or maybe it's the other way around) but alarm bells go off for me whenever someone suggests duplicating something without specifying how the copies will be kept in sync.

      IMO comments should be complementary to what's in the spec, not a copy. Explanations of how the program is written, especially those that would apply regardless of module structure or implementation language, belong in the spec. Explanations of how the code is written, that might be hard to understand except when the explanation and the code are close together, belong in comments. Putting information of either type in the place designated for the other is IMO a mistake.

      --
      Slashdot - News for Herds. Stuff that Splatters.
  65. Re:Believe this guy? by RGRistroph · · Score: 2

    Lawsuits didn't matter before, why should they start mattering now ? Especially since any major hole in passport will likely come with a convient scapegoat, a hacker, all the better if you haven't actually caught him and can make him out to be bigger and more dangerous than he is.

    The customers only indirectly bear the cost of fraud, so it's not like people will flee passport after being burned.

    When credit card fraud happens, it is often the merchant who gets burned. It is conceivable (although in my opinion, unlikely) that merchants might stop using the passport service after seeing a higher rate of fraud with it, the way some online merchants have switched to or away from paypal in response to fraud.

    The credit card company can carry the cost of fraud sometimes. Visa and Mastercard are looking into systems that would be more secure, and offering to accept the cost of fraud in order to convince merchants to use them. If cost of fraud is high enough, those companies might try to stop their cards from being used on passport, or charge a special fee to those customers who do use it.

    I'm not arguing that the customer's should bear the cost of the fraud. The one person who doesn't have much effect on the overall security of the system is the customer; in general the cost of fraud should be born by those who have the ability to fix the security -- this creates a system in which appropriate resources are directed to the problem.

    But one part of the whole credit card system is the fact that it hides the cost of the system from customers. Those 1.5 to 2.5 percent fees on every credit card transaction are carefully hidden from the consumer. It was at least once true that credit card companies would refuse a merchant who simply tacked on the fee like a slaes tax. (PC's For Everyone in Cambridge Mass. used to be a counter example.)

    Because the nature of credit card business is to invisibly pass the cost on ( and not just to it's own customers, mind you . . . since the merchant can't charge that 2.5 percent to the customer's who use credit cards, he raises all prices slightly, so you pay even if you use cash ) it is well suited to passing on the cost of fraud in a similarly undetectable way.

    I don't see any reason why cost of fraud on a weak passport system simply won't be spread around to all of us, even those who don't use it. Think of it like another windows tax -- you pay Microsoft if you order a computer without windows, if that OEM is selling Windows to any other customers; you pay Microsoft if you buy anything from anyone who accepts passport from other customers. Welcome to the new world order.

  66. Re:Nit on C2 "compliant" by os2fan · · Score: 2
    I'm paraphrasing what the Resource Kit says, not what has passed C2 classifications. I have seen elsewhere that Windows is C2 complient when turned into a standalone box with no external access.

    Personally, I would rather see installation routines individually C2 classified: ie if you select option 6, you get a C2 system. That means that one can reproducably install a C2 system from a given distro.

    --
    OS/2 - because choice is a terrible thing to waste.
  67. Re:Joel listed all the reason's why I like free .. by SoftwareJanitor · · Score: 2

    Bloat is fine, just get everybody to buy bigger machines. If it sells, it is good. Sounds like the american auto industry in the 60's before the japanese invasion.

    It will be interesting to see what does eventually come along to knock Microsoft off their pedestal. Something will, eventually. Those who say it can't happen don't have a big picture view of history. Sure, it might not happen tomorrow, or next year, but it will happen. And it doesn't mean they will dry up and disappear. GM, Ford and Chrysler didn't, although they were forced to adapt and no longer look very monopolistic. Examples... If you told people in the late 70's and early 80's that IBM would be knocked off as king of the hill of hardware vendors, almost everyone would have told you that you were nuts. Couldn't happen. Sure, IBM is still around, but they are no longer the 800lb gorrilla they once were. If you told people in 1980 that CP/M would be knocked off as the leading business micro OS, most people would have told you that you were nuts. The list goes on and on. But nothing is forever. If nothing else, even if a competitor doesn't come along to knock a dominant leader down, the leader often becomes old, tired and lazy and falls down often drunk on their own power. One of the things I've seen quoted from Gates is that he has a fear of Microsoft becomming (the old) IBM. It is starting to look more and more like it is happening, despite Microsoft's efforts to avoid it.

    Wordperfect 5x was written in C. They were caught off guard because the next thing was going to be OS2, then MS came out with win3.0, which took off.

    I don't think that it was an accident that Microsoft told IBM and all of the other software development companies that OS/2 was the future while at the same time they were already planning to pull the rug out from under it and go full out with Windows and NT. Microsoft wanted the development tools markets and applications software markets. Getting everyone to go for one platform and then switching to another was a great way to get a huge head start on everyone else. A very dirty trick, but who would expect fair play from Microsoft.

  68. Where I work.. by macdaddy · · Score: 2

    ...there is a handful of people that basically doom projects to failure. If they don't think of the idea, the project dies. If the project doesn't greatly involve them, they kill it. If they are involved too much, they cite how incompetent they think you are because they have to be involved so much, claim they're too busy, and kill it. I've found that if they kill something, the rule of 3's applies. 3 minutes, weeks, or months after they kill your project they either a) completely reverse their opinion on it to a superior, b) reinvent it as their own pet project of which they are of course an expert in the field, or c) a combination shot of both to the mid section. Even when you involve the big cheese that oversees all and get his endorsement on something, they somehow manage to later convince him with a, b, or c and cut you from the loop. One person in particular is as incompetent as they come. Literally this person doesn't know Jack®. Still this worthless person manages to get their hands into every single pot and slow things down, fsck the process up, or kill the thing entirely. There really is no reason for this person to be employeed with us. Worthless doesn't begin to describe this person in all honesty. What dooms projects to failure? Incompetent management, staff, and politics IMHO.

  69. Re:Here's some more by SoftwareJanitor · · Score: 2

    Ease of portability. If you read the concept behind NT, they developed the HAL in order to move it easily to new hardware. This allow them to support Alpha, MIPS, and PowerPC (while they did) with a very similar code base. Should there be another hardware platform that they wish to support, their major task will be to rewrite the HAL. And I don't just mean new processors. Try porting Windows ME to PPC architecture.

    Which has basically done nothing to improve the popularity of NT/W2K/XP, since the non x86 versions were complete marketing flops. It doesn't look like any other architecture is ever likely to become popular with a Microsoft OS. Even the Itanium is looking like it is going to have a slow and rough time. AMD's much more conservative 64 bit x86 extension has a serious and credible chance to beat the Itanium, especially if it is cheaper and does a better job of running legacy 32 bit x86 code.

  70. Re:Good point NOT by ttfkam · · Score: 2
    How many times have you seen, "i += 1; // increment pointer"? Doesn't help, does it? You document the trees but ignore the forest that way.


    I agree that doesn't help. They're just restating code. If, however, the author of this code snippet had said something like

    i += 1; // advance to the next character in the stream

    This gives semantic context to the action being performed and THIS is the point of comments; it's not about the restatement of code.

    Stop hiring idiots. Pay three times the average wage and hire only the best. You'll have much better productivity/cost ratios. So what if 4/5 programmers can't understand the code? The one you've got does the work of 2 to 3. And others like him can pick it up with little or no effort.


    And then when your wunderkind has left the company because someone else offered a raise that you can't match, or the star decides to go into business for himself/herself, or dies from a caffeine overdose, and you are left with no documentation, no comments, no variables longer than four letters, and the "talent" isn't returning phone calls, then what? In your scenario you either lose a year going through the code one line at a time to find the off-by-one bug buried somewhere, your company goes bust making the attempt, or someone rewrites it (also wasting time). You're point would have merit if programmers were know for staying at a company for ten or twenty years. But in "the real development world" two years is the average.

    So everyone should be screwed because some hotshot thought that LISP was a good idea for the problem at hand even though no one else at the company knows LISP? Sure the program is efficient and runs like a dream right now. Fat load of good that does you if it breaks or needs to be extended. And it will break. And it will need to be extended. All code has bugs. A large codebase has more bugs. And new requirements are a fact of life.

    Egos don't keep companies in business and they certainly don't put food on the table.

    If you can throw letters down in Emacs so quickly, why can't you seem to find time to have one line out of 15 be in English. It's not like you really have to switch tasks. You're supposed to be writing about the task at hand. I assume that you can program in more than one language; why isn't English one of them?

    (Apologies in advance to those programmers who are in non-English-speaking development environments)
    --

    - I don't need to go outside, my CRT tan'll do me just fine.
  71. Re:Here's some more by os2fan · · Score: 2
    And unlike OS/2 3.x and 4.x, Windows NT4 is not going to get officially sanctioned USB drivers. Oh well.

    Ah yes, "stability". I laugh when I see that. Like some of the sessions that run in it look so shaky that you wonder if the conmputer is about to reboot: programs like DOS stuff.

    No, running DOS programs does not make a system unstable or insecure. But MS has imposed a penalty on NTVDM.EXE that conveys to the user that the underlying system is incredibly shaky.

    As for "user mode programs bringing down the OS", hmmm - yes, I've seen charmap.exe trash the machine so hard they had to rebuild it.

    The sad thing is that you HAVE to allow users to write to the OS home directory, because it stores all sorts of data goodies there. And with that, it is possible for users and applications to trash their WINNT directory. Trashed so bad that you have to rebuild the system. Oh well.

    Like MS has not been weaning developers off stuffing exes and data into the OS directory, so that it could eventually be run read-only. Oh no.

    --
    OS/2 - because choice is a terrible thing to waste.
  72. Programming for programmers by achurch · · Score: 2

    to make a long reply short, I don't write code for non-programmers, especially when dealing with personal projects. I think it's reasonable to expect a certain level of skill out of anyone who intends to work on my code (or any code, for that matter), and I design and code with that in mind. You can call it laziness if you like; I call it "efficient use of limited time". I write documentation for non-programmers.

    And yes, when I'm doing something at work I put in more comments than usual--among other reasons, because the other folks in my group don't have that much programming skill--but I also don't consider comments a substitute for documentation, as you (and the original poster) seem to. Documentation is absolutely good; just let me push it aside when I've got a handle on it and want to work on the code.

    Oh, and here's a little question... I've been speaking English for 24 years, and Japanese for only a little over 5; why is it, then, that I have trouble expressing some concepts in English that I have no trouble with in Japanese? Hm? Maybe it's because some languages are better at expressing certain concepts than others.

    1. Re:Programming for programmers by ttfkam · · Score: 3, Informative

      I have to admit, my rant wasn't intended to target you specifically. It was more of a general rant. Maybe I'm just cranky because k5 is still down.

      And I agree that comments aren't a substitute for documentation. Use cases and UML don't lend themselves to source code comments. However, my comments about "Cliff's Notes" still stands. Comments judiciously sprinkled within code helps casual scanning for meaning much faster and easier no matter your coding skill. Coding skill simply speeds the case where comments are not present.

      In answer to your question, while certain logical constructs are best expressed in code, overall concepts are usually just as easy if not easier to express in a natural language.

      Unless you are writing programs and libraries that are only going to be used from end to end by other programmers, the outside world is dictating needs, requirements, and problems. That outside world speaks a natural language. If you cannot map the problem set and the solution set to a natural language, I submit that you do not have an adequate knowledge of the problem.

      However in this case, comments would be a side effect.

      Programming languages describe and work with the nuts and bolts. No programming language that I am aware of is sufficiently abstract to directly map to complex real world problems; no creative use of partial template specialization in C++, dynamic classloading in Java, dynamic function definition in Scheme, etc. can do this.

      Conversely, no natural language that I am aware of can adequately describe a truly logical, deterministic domain either (just check out legal documents for proof). There needs to be more translation between the two.

      For now, those bridges are comments and documentation.

      -----

      For a less abstract argument, let's leave computers out of it for a second. Two people from Indianapolis can communicate with each other better than either can communicate with someone from Sydney. They all speak English, but the dialects, the idioms, and the inside jokes may not translate. So when we write for general distribution, we try to keep those local colloquialisms to a minimum (and no, I admit that I haven't been a perfect example of this in my posts :-/).

      Now keeping this analogy in mind, a programmer has an intimate relationship with a computer/compiler/system libraries/whatever. Together they have many inside jokes, goofy idioms, and function prototypes that mean absolutely nothing to someone else who, not being necessarily stupid, simply has a different focus or area of expertise.

      While it may be more effort, and it may reduce some of the free-wheeling fun you would have had if you were alone with your CRT, doesn't it seem appropriate to make it more comprehensible if for no other reason that to allow others that specifically don't know as much as you to learn from a good example? Wouldn't that help to encourage others to continue using your code instead of scrapping it just as the interview topic suggests? Wouldn't it help to keep a few less wheels from being reinvented?

      Maybe I'm too idealistic. Maybe I'm just not jaded enough. But for me, part of being a lead software developer or a senior software engineer or a project lead is not simply to crank out a mountain of code while others look on and a select few help out. We don't code forever. Some of us get sick of it before too long. Some go into management. Doesn't it make sense to try and *teach* the ones coming up to do what we do? For me, it does. But, again, I am lazy sometimes. A few extra comments means that more than half of the time, I don't need to be asked what something I wrote was intending to do regardless of whether or not they are as good a coder as I am. They just read the comments.

      ...I'm also prone to being long-winded. ;-)

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    2. Re:Programming for programmers by achurch · · Score: 3, Informative

      In answer to your question, while certain logical constructs are best expressed in code, overall concepts are usually just as easy if not easier to express in a natural language.

      This is more or less what I was trying to get across (not all that effectively, I guess); comments are most helpful when they give the reader more information than they can easily get from reading the code, and code that's easy enough to understand without comments shouldn't be commented "on principle". I guess it's just that my idea of "easy" is a bit different from that of other people. <shrug>

      At any rate, I do comment and document my code (or at least, I'm trying to do better than I have in the past), and I agree with the point you make with your Indianapolis and Sydney analogy. I guess I'm just cranky today, too...

  73. Don't forget CVS by dimator · · Score: 2

    One thing I can't stand is when people check in some code, and the comment they associate with the check-in is "fixing some things" or "updating" or just "."

    WTF?! Put something meaningful, damn it. Comments are not for YOU, they're for others; be considerate.

    --
    python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
  74. CEO salaries by ttfkam · · Score: 3, Interesting

    If the minimum wage had gone up at the same rate as CEO salaries since 1990, the minimum wage today would be $25.50/hr.

    Or is it that CEOs work that much harder than they did ten or twenty years ago?

    The guys at the top did NOT pull themselves up by the bootstraps. They were hoisted up on the backs of others. Don't get me wrong. I have met some truly brilliant minds that were in charge of some companies. But I've also met some true boneheads who still gleefully pulled in $500K/yr+. We're moving headlong back into the days of the robber baron who rules over his fiefdom with an iron fist. Yeah, those were good times. Well, of course! When was the last time you took a pay cut for some peon...er...someone else's job?

    --

    - I don't need to go outside, my CRT tan'll do me just fine.
  75. To succeed in commercial software... by jspolsky · · Score: 5, Interesting
    Let me tell you a bit about the context of everything that I write at Joel On Software. Everything I say should only be taken as advice if your goal is to write (a) commercial (b) software (c) for lots of people that (d) succeeds, or at least has a pretty good chance of it. I run a tiny software company, Fog Creek Software, in a niche where Microsoft has (at least) two competing products. I'm not any happier about Microsoft's dominance than anyone else. I don't own Microsoft stock. On the other hand, I try to be as rational, logical, and non-religious about every decision I make because it's the only chance I have of succeeding.

    Yes, it's true. If you make a major mistake, you get killed, often by Microsoft. Some people think it's a pretty sad state. I just think it's capitalism and evolution. Dodo birds are extinct, and so is Visicalc. I don't want to be extinct, so I try to learn from the mistakes of the companies that have tried to go up against Microsoft. It's easy for me because I was inside and I know something about the way R&D worked at Microsoft. I've tried to share many of these lessons on my site.

    To succeed in commercial software you have to get beyond being shrill and angry about Microsoft. You have to be cool headed and smart and study the past and make the right decisions for your company, not the right decisions for some arbitrary sense of aesthetics (although of course I am as big a fan of clean documented code as anyone.)

    Production code is not so pretty. Open source code is not so pretty. No real code is all that pretty. It takes time to study it, understand it, and read it, to understand how it got the way it is. The more widely the code is used, the more true that is. For Fog Creek's latest software product, CityDesk, we stayed up one night tracking down a bug that only happened on Chinese Windows, where asc(chr(x)) turned out not to be equal to x, an assumption we had been making. How many of you ever thought about getting your code to work on Chinese Windows? No matter how well that piece of code was designed, I'm sorry, I've been programming for 20 years and I never realized that asc(chr(x)) was not always equal to x on some platforms, and I designed it wrong, and until someone tried it on Chinese Windows, I never would have known. Now the code uses byte arrays instead of strings and doesn't have that problem. There's a nice comment in the code saying "use byte arrays instead of strings because of MBCS versions of Windows." The code now works perfectly, but the byte arrays are a little bit uglier than strings. If ten years from now somebody rewrites CityDesk from scratch, I'll guarantee you that 95% of the Windows programmers working today would make the same mistake again, and stay up all night again.

    If a piece of your code is ugly and doesn't work, by all means, rewrite that piece. If it's ugly and works perfectly, you're wasting valuable hours rewriting it, time that could be spent doing something that will gain you market share. If you really have an undecipherable mess of spaghetti, 9 times out of 10 you're just being lazy about deciphering it because it seems like more fun to create it from scratch, but it's the ultimate in arrogance to think that your newly created from-scratch version is going to be all that great.

    --
    Joel Spolsky
    spolsky@panix.com
    Joel On Software
    1. Re:To succeed in commercial software... by King+Of+Chat · · Score: 5, Insightful

      People should try putting some damn comments in.

      Early on in my programming career, I was looking at such a piece of code - something which was simple when first written (in C) 5 years previously, but had so many mods, the function was pushing 1000 lines (ugh). Some guy had put in this change, commented it as "for performance improvement", then commented it out with an extra comment explaining that it was taken out because it didn't work. At the time I thought "why is this guy making himself look like a dick?". Later I got it - he'd left it like that just to stop some other poor bastard making the same mistake (it was a calculation thing which we were always pushed to improve performance).

      If you do something wierd or clever, for f*ck's sake put a comment in (do as I say, nbot as I do).

      --
      This sig made only from recycled ASCII
    2. Re:To succeed in commercial software... by armb · · Score: 2

      > Some guy had put in this change, commented it as "for performance improvement", then commented it out with an extra comment explaining that it was taken out because it didn't work.

      Surely a clearer technique would be to replace the "improvement" with a comment saying "we tried here, but it didn't work", and use the revision control system (CVS, RCS, etc.) for anyone who wants to look at the exact details?

      (I find the opposite case is more common - think something can be removed, find why it was needed, add a comment saying "this might seem redundant, but really we have to allow for ".)

      --
      rant
    3. Re:To succeed in commercial software... by armb · · Score: 2

      Why doesn't "Plain Old Text" handle < and > without needing me to type < and >? I suppose I should have previewed. Anyway, that should be "we tried here" and "really we have to allow for "

      --
      rant
    4. Re:To succeed in commercial software... by 3seas · · Score: 2

      Joel, it seems to me that right in what you have to say, you words from
      experience are based on the current methodologies of developing software.

      You are really speaking in terms of a race, like perhaps a horse race to
      be the first to the finish line, regardless of how chopped up you make the
      track. You recognied that, so does Microsoft. The people in the stands
      placing bets, aren't placing bets on who is the most graceful and tears
      the track up the least, but who will cross the finish line first.

      There will always be a rake to go over the track and hide the mess later,
      like a complier converting the code into something the machine understand
      but impossible to read by even the programmer.

      But here is the problem: The race has got to get alot faster.

      Imagine the programming task that would be required to do just the
      software side of a holodeck (star trek fiction or fantasy?) simulation so
      real and detailed and interactive as the show presents. (perhaps keeping
      in mind that when cell phones came about they were actually more complex)

      With current software development methodologies, it's not possible. Or at
      least no more possible to calculate by hand what computers were designed
      to do in a more reasonable time period. You can do it, just not within a
      reasonable timeline to make it useful. Computers simple just made the
      calculation run much much faster, even faster today. Running such a
      program is not the problem, it's creating the program within a reasonable
      timeline.

      And this is the bases of your experience and communications on the matter
      of software development.

      We used computers to automate calculations and then run then very fast.
      We need to do the same thing with software development. But upon doing
      that, it will change the race, change who the jocky is and even the horse.
      Maybe even change what the people in the stands bet on.

      Unfortunately for the track owners, this is something that is more likley
      to evolve out of community property such as the OSS/GPL side of the
      spectrum. But it will also be a good thing for everyone.

      Maybe all I'm doing here is simply pointing out why you are right, for
      now.

    5. Re:To succeed in commercial software... by Cederic · · Score: 2


      I see a lot of sense in what you are saying.

      However, a good enough development process can avoid a lot of the "lost knowledge" that you are so wary of.

      As a simple example, purchase and read Refactoring (Fowler et al, Addison Wesley 1999). ( http://www.amazon.com/exec/obidos/ASIN/0201485672/ qid=1007562004/sr=8-1/ref=sr_8_3_1/002-0755063-106 3244 )

      Simple effective techniques to change code. Use these techniques and you don't need to start from scratch, but you can also rewrite an entire system safely.

      ~Cederic

    6. Re:To succeed in commercial software... by King+Of+Chat · · Score: 2

      Sure - code is the "what", but "what" is not useful without "why". I suspect the lameness filter will prevent me from posting examples. I work on application software which can have some pretty bizzare user requirements and these do end up permeating through the entire system. To a newbie coder, some stuff can look like "no sensible user would want that" but they don't know the system and they don't know that "sensible user" is an oxymoron. It needs commenting.

      I agree comments should be kept to the useful - otherwise they can obscure the code. I don't think that there are any hard and fast rules though - apart from (good) peer review. If there were hard and fast rules for programming, then it wouldn't take any skill, would it? It ends up, as Joseph Heller said "like an experiment in mass lobotomy using rules instead of scalpels". The important thing is not "does it conform to the rules" but "can anyone else understand it".

      In my own personal rules of programming, rule 3 is: "The best, fastest, most optimised piece of code in the world is worth precisely f*ck all if no-one else can understand it". For the record, rules 1 and 2 are "It takes longer to do it quickly" and "nobody cares how fast it is if it doesn't work". I wont list the others.

      --
      This sig made only from recycled ASCII
    7. Re:To succeed in commercial software... by ericsink · · Score: 2, Insightful
      People here are missing the whole point. Everyone seems to be saying that programmers don't read code because the code is poorly commented. Ridiculous.

      Joel is right. Programmers don't read code because they don't like doing it.

      Most programmers act like the universe revolves around them, apparently believing that their job should never ask them to do something that isn't fun.

      It doesn't matter whether the code is well-commented or not -- it usually needs to be read. The natural tendency to read code is an excellent way to distinguish the best developers from the rest.

      --
      Eric Sink
      Software Craftsman
    8. Re:To succeed in commercial software... by mpe · · Score: 2

      Surely a clearer technique would be to replace the "improvement" with a comment saying "we tried here, but it didn't work", and use the revision control system (CVS, RCS, etc.) for anyone who wants to look at the exact details?

      Because the comments will tend to stay with the code. The revision control system might not be available to the person at the time or the old version (which didn't work correctly) might have been deleted years ago...

    9. Re:To succeed in commercial software... by jaoswald · · Score: 2

      I don't get your example.

      If you expected asc(chr(x)) to be an identity operation, why didn't you just use x? If some conversion was necessary to satisfy the platform's API, why doesn't the platform provide a conversion that is guaranteed to work on all the frigging versions that are out there?

      What is the point of a widespread platform if you potentially have to special case for every known variation?

      If Windows hasn't gotten beyond this kind of inane kludginess, it's no wonder things are such a mess.

    10. Re:To succeed in commercial software... by Junks+Jerzey · · Score: 2

      If you expected asc(chr(x)) to be an identity operation, why didn't you just use x?

      Duh. He *did* use x, and it didn't work. And the reason it didn't work is because asc(chr(x)) is not an identity.

      How you manage to get through any classes is a complete mystery.

    11. Re:To succeed in commercial software... by pdc · · Score: 2, Informative

      Here’s a similar problem I had. I wanted to generate web pages using ASP, but I wanted to use UTF-8 as the character encoding. The easiest solution seemed to be to make my UTF-8 encoding routine return a string, which I then pass to Response.Write. Make sense?

      This seems to work, but behind the scenes there is a conversion between 8- and 16-bit character sets and back. UTF-8 encoding makes a sequence of bytes. I was storing these in a VB string, which stores Unicode character data, so it transcoded my byte sequence as if it were character data encoded in Window’s ANSI ecoding (MbcsToWideChar). But this is OK, because Response.Write does the inverse conversion: it takes UTF-16 character data and writes what it thinks is Windows ANSI character data (WideCharToMcbs).

      It all goes horribly wrong if WideCharToMcbs(McbsToWideChar(x)) is not equal to x, for some value x used in the UTF-8 encoding. Normally this isn’t a problem (for the platforms I have tested it on), but recent additon of the EURO SIGN to Unicode and Windows ANSI has caused me trouble: some code in SQL Server that does the transcoding itself rather than using the APIs causes this identity to be invalid... :-(

    12. Re:To succeed in commercial software... by 3seas · · Score: 2

      Ok, the third link basicly states two proofs that expose the limitations of mathmatics. And I take it as simply an example of the fact that you cannot solve a general language problem by creating another language. (math as an abstraction set is a subset of all possible abstractions). Perhaps this link you gave in effort to suggest a/the "meta-language" solution? (as is what link #1 is about.) At any rate, link #3 is a statement of fact that I can assure you I'm aware of, even without having ever heard of these two.

      As to link #1, Grabbed my attention but degenerated into "what if?" IP whining. Ok, so the whining expressed an apparent problem and projected concern, but it is either to speculative (what if upon what if upon what if...)or to entrapped within IP cannot based law thinking that it cannot manage to excape enough to see another solution. (or maybe a little something is lost in the translation that is admittedly a poor translation of the original french version. - But I must add, not so poor that it didn't get the message across.)

      Getting past that corporate-political projected bottomless pit depressing illusion of IP whips, chains and bars (though some valid points were made), it got somewhat interesting again.

      The solution the paper strives to reach, is in fact far more possible to achieve thru OSS and GPL side of the spectrum software development directions, than thru closed systems of any kind.

      In the writting of this respose/post I went to check on some things I read and recalled the comment "There exists, as far as we know, only one project resolutely oriented towards this direction" and upon accessing and spending several hours looking thru that site I realize that my comment above about the third link you gave, may in fact not yet be fully understood by the author of the paper or the tunes collective.
      And as such it is probably why nothing has yet to actually be established and done in the tunes project.

      I bet they all have been feeling like they have been trying to grab their own shadow and make it solid. Of course never being able to really quite do that, but it's oh so close, like words on the tip of your ......

      For they have smack dab run head first into the proofs of the #3 link you gave. And haven't yet realized it.

      try my home page!

  76. requirements by brer_rabbit · · Score: 2
    Deciding to completely rewrite your product from scratch, on the theory that all your code is messy and bug prone and is bloated and needs to be completely rethought and rebuild from ground zero.

    From what I've seen, a complete code rewrite is what happens when requirements were failed to be met. Usually some novice designer comes in and fails to capture the requirements. They either blindly implement it leaving lots of holes or keep going back to marketing so often finding so many uttlery useless boundary conditions that the thing takes forever to write.

    A code rewrite is what a novice will do when they've insufficiently captured requirements.

    You can get one step closer to marketing by quick prototyping. A professional will do a quick prototype in Perl, cut so many conditions out of the requirements that the excuse for a code rewrite is merely adding a CPAN module or rewriting a portion in C.

  77. Microsoft DO good re-writting ! by warloch71 · · Score: 2, Insightful

    The first OS was DOS. Then came on top of that Windows 1, then 2, 3, and finally 3.1 and 3.11 At that point, someone at MS looked at the code and get sick. So They RE-WRITTEN FROM SCRATCH a complete new OS : NT, from which was born what is probably the best and most stable OS ever released by MS: NT 4. At that point there where two branch: the DOS legacy kernel (Win95, Win98, WinME), and the re-written kernel: NT4, 2K and now XP. I don't know where the non-rewritten legacy code of WinME is in ANY WAY better than 2K.

  78. Chars and bytes arrays are both the wrong solution by StrawberryFrog · · Score: 3, Insightful
    How many of you ever thought about getting your code to work on Chinese Windows? ... The code now works perfectly, but the byte arrays are a little bit uglier than strings. If ten years from now somebody rewrites CityDesk from scratch, I'll guarantee you that 95% of the Windows programmers working today would make the same mistake again, and stay up all night again.

    Nope.

    The right solution, which many would take if doing it again today, is to do it all in Unicode.

    --

    My Karma: ran over your Dogma
    StrawberryFrog

  79. Thoughts about rewriting code by ggeens · · Score: 2, Interesting

    I'm an IT consultant, making a living by developing applications for large companies. This is a totally different environment than the one described in this interview. My programs have one buyer, and typically run on a single machine.

    I have been through a couple of code rewrites. In one project, we simply started from scratch. New database (Oracle 7 -> 8), new data model, new OS (UNIX -> NT) and a new programming language (C -> Java). I had the system requirements and the new data model as input, and I designed all the rest. I never looked at the original code, except to check the semantics of a few queries. (Joel's "hidden knowledge" doesn't apply here, since we were going to a new platform anyway.)

    On another project, I redesigned and rewrote parts of the system. Each of those conversions have cost me dearly, and I wasn't really satisfied with the results. (In a partial rewrite, the new code needs to fit in with the existing system, and things get messy very quickly.) I wouldn't have done any of thos rewrites if the old architecture had been able to handle the new requirements.

    Finally, I have one remark about aged code: comments are your friends. If you need to look at a piece of code twice before understanding it, you should add comments. If a particular construction is not obvious, explain why you do it that way.

    I've only seen it done properly once. Literally half of the screen width was reserved for comments. (Yes, that is excessive, but it encourages people to write things there.) Every change to the code was tagged with the change request it belonged to. In many cases, the old code was still there, but commented out.

    I'd argue that program code is not "hard to read" by itself. It is written that way. Programmers never consider the fact that their work will be read by humans (including themselves). Once you step out of that mindset, you will write readable code.

    --
    WWTTD?
  80. Re:I'm a little confused.. by Old+Wolf · · Score: 2

    On a par? Borland C++Builder kicks VC++'s ass.

    The only reason it's not the market leader is because of paranoid droids who go for an "all-Microsoft" development environment, for unclear reasons.

    Even Turbo C++ 3.0 , buggy as it was, was so easy to use that (in its time) it was one of the leading compilers.

  81. Joel is almost completely and totally wrong... by barfy · · Score: 4, Interesting

    He is correct that a rewrite is expensive, and can (and usually does) take a long time.

    However, the mistake is not in doing the rewrite, but in not managing the process well.

    The number one reason for doing a rewrite is for a cleaner, more stable architecture for writing new features against. The need for a new architecture is discovered in the process of adding new code to the old, and discovering issues that were not adequately addressed in the older version, or in learning better methodologies, or in the existence of better tools and programming processes.

    Programs that have been improved by a total rewrite...

    Windows NT/XP over DOS (and DOS windows)
    Excel over Multimate
    Word For Windows over Word for DOS.
    Adobe Indesign over PageMaker
    Quake over Doom
    Quake II over Quake

    That is off the top of my head...

    ALL real successful software was origninally generated by extremely small teams of EXCELLENT *STAR* quality programmers. (There are not very many of them. If you don't believe that programming is a talent industry, you don't really understand what it takes to make successful commercial software).

    The only real other option is unlimited resources (time and money) and it seems that where this exists is at Microsoft, and in some open-source projects.

    The biggest problem comes from management believing that random team of programmers can create a new platform from scratch and that it can be done in a schedule that permits dropping the old code base.

    ID does it by continuing to build new platforms with very small extremely talented teams.

    ADOBE and Microsoft did it, with lots of time energy and effort, with parallel development against the old code base.

    But this does not mean that it shouldn't be done. Those that do not rewrite eventually lose, because they are not able to respond to the market on the old code base, and are not able to make the kind of advances that a required by the customer base to upgrade if they use thier product already, or to switch or begin using their product if they hadn't already been convinced.

    Managers are going to be disserved in the long term by reading Joels thoughts on the process, and ultimately the companies they work for will be eaten for lunch by new competitors that are not burdened by legacy code, but also really understand well the problem space they are trying to solve.

  82. Re:Here's some more by Old+Wolf · · Score: 2

    I thought Arthur C Clarke developed HAL ?

  83. the crack good? by 7-Vodka · · Score: 2, Insightful

    GOD man, if i'd written software that worked perfectly the first time like that, i would MOVE ON and do something else to sell. Also, if you've sold your software to all the people who want to buy it (i'm assuming this is your point, that plp already own your earlier working copy thus you cannot charge them again), then you should have made a lot of money in the first place.

    --

    Liberty.

  84. Re:The truth: the other apps sucked by SoftwareJanitor · · Score: 2

    It would be interesting to be able to roll things back and find out. Without the same sort of forced bundling and "everything from one vendor" mentality with PHB's, if Word and Excel would have shipped on OS/2 PM I think they would have had a more serious climb. On the other hand OS/2 would probably have not floundered as badly had it had a few more applications, which one would suspect had something to do with Microsoft burying ready to ship versions of Word and Excel for OS/2 as you suggest they did.

  85. Making software fail: 19 easy steps to success! by Ogerman · · Score: 2

    Yes folks, this method is absolutely tried and true. It has worked for the venerable software industry for years! There really is no other way to develop your software!

    1.) A good piece of software starts by scratching where's there's no itch. But that doesn't matter, because with the right marketing, you can create an itch where one previously did not exist. Your software should be covered by as many US patents as possible to prevent other software developers from trying to scratch the same itch.

    2.) Write everything yourself. Never reuse your own code or that of others. Modular code is your enemy. Avoid it like the plague.

    3.) If your first implementation doesn't work, kludge it until it does.

    4.) Interesting problems should be handed off to somebody else, or better yet, developed by a third party as an undocumented module with highly restrictive licensing. Your users will never know the difference.

    5.) If you lose interest in a program, your last duty is to make it disappear from the face of the earth as quickly and quietly as possible. (this includes discontinuing all tech support and preferably changing your 800 number) Turning the software over to public domain or releasing the source code might somehow help a competitor.

    6.) Treat your users as scum. You know far better than them how to develop the software and what features they need. If the complexity of the code base becomes overwhelming, you clearly need more middle managers to increase your programmers' productivity. Now is also a good time to double the price of the software to meet increased development costs.

    7.) Never, ever release source code to any of your software. Your customers don't have any use for it anyhow and you might somehow help your competitors. If customers complain about a bug, wait 6 months before fixing it and charge a nominal fee plus shipping for the update. Requests for features should be written on small slips of paper, placed in a hat, and drawn at random no less than one year after a major version release.

    8.) Your customers should have no part in the debugging effort. Beta-testers, if allowed, should be registered and be given time-expiring binaries only.

    9.) Choice of data structures is of lower priority than rapid code development. Your users can always buy faster hardware.

    10.) Do not attempt to foster an online community of your users. They'll just complain, flood your support resources, and worst, they might even band together and develop free software to replace their need for yours!

    11.) The next best thing to having good ideas is stealing them from others and then claiming them as yours. (preferably with broad patents) The latter is always better as it saves you R&D costs.

    12.) Often, the most striking and innovating solutions come from realizing that it's your users' needs that are wrong, not your software.

    13.) Perfection (in design) is achieved when your software has enough features to run untolerably slow on anything but the fastest currently available hardware. Some hardware vendors may offer kickbacks for this service.

    14.) As a tool, truly great software should have only one use. Your software should have safeguards to prevent customers from using it in ways you did not intend. Anyone who successfully finds new uses for your software should be sued immediately under the Digital Millenium Copyright Act.

    15.) Don't be afraid to mangle data in any way you see fit. After all, yours is the only software that needs to access it anyhow. Leaving it intact may allow competing software to operate on the same data or encourage users to request new ways for your software to process the data.

    16.) If your software requires its own language or command set, it should be as convoluted as possible to discourage users from using anything but the GUI you've designed. Syntax of the language should be based on an innovative combination of Old English, Arabic, Hiragana, and Swahili.

    17.) Any secret encoding schemes or passwords critical to your software's security should be stored in a file called 'no_secrets_here.dat' to confuse would-be hackers. The contents should be ascii-armored and successively encrypted an even number of times using ROT-13. Anyone who dares break your security scheme can be sued under the Digital Millenium Copyright Act.

    18.) Give your programmers the problems they are least interrested in. Otherwise, they might get excited and try to change the program specifications without first consulting middle management.

    19.) Provided your lead software development manager has a medium at least as good as an overhead slide projector and knows how to increase productivity with threats of downsizing, you can always let go of a programmer or two.

    This satire made possible by Eric Raymond, author of The Cathedral and the Bazaar. Read his works if you want your software to succeed instead. (-:

  86. Re:Good point NOT by StaticEngine · · Score: 2
    Coders who follow these rules produce what? 3000-6000 lines of code a year? Ain't gonna get product out the door that way. What you get is code with lots of comments about what it is supposed to do, but doesn't because of all the time spent on documentation instead of design and debugging.

    No, they produce much, much more. I wrote about 4000 lines of C++ in 2 months for the networking component of a Racing Game. It worked great when it was demoed in front of the Company Board. It was well commented. And then I spent three days typing up 47 pages of documentation on my work before adding and improving on the project.

    So to reiterate, 2 months, at about 50 hours a week, writing 4000 lines of well commented, well formatted code, and writing complete system documentation for that component. Design Time included. And I am not an Uber-Programmer.

    This is not hard. It's highly doable. Only the people who think it can't be done are the people who won't be able to do it.

  87. Bloatware by dreamquick · · Score: 2, Insightful

    "If you're a software company, there are lots of great business reasons to love bloatware. For one, if programmers don't have to worry about how large their code is, they can ship it sooner. And that means you get more features, and features make users' lives better (if they use them) and don't usually hurt (if they don't)."

    The thing about bloat is that it's not a bad thing until it *kills* your product.

    Lets say my product has been through several major versions and has a reasonable userbase - but is bloated & the majority of the users complain about it seeming slow.

    Now according to that interview we should just learn to deal with this via moore's law rather than actually having the vender write code more responsibly.

    However if my competitor introduces a smaller, less bloated product with more features than your product that also runs faster, then you run the risk of having the userbase start to convert.

    Once that happens if you follow the rules from this interview you are doomed - you cannot rewrite to reduce bloat, you are not supposed to be interested in reducing bloat.

    The only exceptions are :

    the userbase has to be smart enough to appreciate what advantage any change would bring, otherwise they just act like sheep (the AOL arguement).

    the product is not "sticky" - e.g. i can just copy all my existing content into the new system, meaning transition is painless.

    cost of ownership is high - if i have to spend $200 to buy my product then i will naturally be reluctant to waste my investment / look stupid.

    Moral of this story - only build bloated software if you have stupid users, or you have them pinned in a corner with no-where else to go, or if they paid through the nose to buy it.

  88. Man, you are a bunch of sad, sad people by bilboyablan · · Score: 2, Insightful

    Man, I have been a Slashdot reader for several years, and I have noticed before that the audience/posters really can be really acidic/negative at some times.

    But this is ridiculous. All of you people nagging on Spolsky, have you at least read some of his articles at all? They are really good, suggest a pragmatic hands-on approach to software development, and are a real joy to read.
    And please, I am not a Microsoft freak at all, but could you for once acknowledge that they have done some things right?

    And you are really anal, focusing on small details instead of getting the point. What does it matters if Spolsky had this or that position at Microsoft, or if he in fact participated in active programming or not.
    In fact he did, read
    http://www.joelonsoftware.com/articles/fog000000 00 75.html (yes, I could have done a HREF, but I don't care about it, just copy the damn text and paste it on your web browsers address bar, I know you can do it).

    You are really a bunch of sad whiners, and I am sick of you. Bye slashdot, I am tired of your inmature and negative crowd.

  89. I guess we just have different tastes by vscjoe · · Score: 2
    Joel's approach (you know, never rewrite from scratch, VB is the best thing since sliced bread, etc.) works in a sense: it's what has made Microsoft such a successful company and lets him churn out Windows applications. Yes, rewriting is bad for business.

    But, frankly, I don't care. I loathe the kind of incrementalism that the software industry practices and that results in the kind of commercial software we are getting. If it takes 9 failures to produce something great on the 10th try, great, so be it. The alternative, decades of slowly evolving, uninspired, tedious, bloated, market dominant software is much worse for anybody other than the software publisher. Software needs competition and failure, just like biology and economics.

    Of course, failures are painful. Investors and managers don't like them and will anything to avoid them. But, hey, that's probably one of the reasons I prefer open source software. On a project that has no commercial aspirations, you can afford to fail and start over.

  90. MS Word was never the best word processor by Moritz+Moeller+-+Her · · Score: 2

    and arguably it still isn't today. AmiPro 3.0 beat Word in 1993 by a long way. The only reason it became No. 1 was by bundling it with Windows... Basically MS gave Word away as a gift.

    If you have never used another Word processor (like e.g. StarOffice) you don't know what you are talking about.

    I could cry if I look at the problems my colleagues have with their MS Word programs.

    --
    Moritz
  91. Re:API specs? by CArmeanu · · Score: 2, Insightful

    Well, how should we understand your comment? If there is a bug within the API you use, just don't care and use it as documented in the specs? So you would try to sell/share/use some product that fails due to a lack in the API?

    I think Joel is right and should not care about the specs. If it doesn't work, it doesn't and you find a solution to get around. The client or user wouldn't care why it doesn't work. He would simply stop buying your products and tell his friends and colleagues not to do so also.

    But, this is exactly what he is talking about anyway ...

    Chris

  92. Hungarian notation considered harmful by beable · · Score: 5, Insightful
    Clear, Consistant Formatting: [...] variables use Hungarian Notation or some other standard
    I find Hungarian notation much harder to read than not using it. For example, I find the Unix man page for strcpy which looks like this:
    char *strcpy(char *dest, const char *src);
    much easier to read than the Windows-style Help which is full of stuff like "LPCSTR lpBuf" and suchlike. The idea which is commonly called "Hungarian Notation" says that a variable name should include the type of the variable as a prefixed abbreviation in front of the name. This leads to stuff like:
    byte[] baBuf;
    whereas without Hungarian, it might be called:
    byte[] message;
    which would be much more meaningful.

    Especially in object-oriented programming, the type of a variable is the least important piece of information about the variable, and has no place being abbreviated and prefixed to the name. The most important thing about a variable is what the programmer is using the variable for, and that information should be what the name of the variable tells another programmer. If somebody really wants to know the type of a variable, then their editor or IDE should tell them what it is. If it doesn't tell them automatically, then they should look at the variable declaration, which will state exactly what type the variable is. If programmers want the variable name to tell them the type, then what is the point of declarations? And why bother putting a comment near the declaration saying what the variable is for, because people aren't going to read the declaration or comment anyway, because they are just going to look at the Hungarian warts.

    The argument that Hungarian notation reduces the possibility of assigning variables of different type to each other is long dead with compilers well capable of throwing errors if any incompatible type assignments are attended. I think that Hungarian notation is dead, or at least should be.
    --
    ...
    1. Re:Hungarian notation considered harmful by CounterZer0 · · Score: 2, Insightful
      This leads to stuff like:
      byte[] baBuf;
      whereas without Hungarian, it might be called:
      byte[] message;
      which would be much more meaningful.

      Or you could do this:
      byte[] bamessage;
      whereas without Hungarian, it might be called:
      byte[} Buf;
      which could be much less meaningful.
      If you're going to knock on something at least do it correctly. I agree, Hungarian notation can be harder to understand sometimes, but other times, it makes more sense. Plus, it enforces a STANDARD naming system, not just 'This looks good to me' conventions. BTW: Unix man pages are usually easier to read than windows help for just about anything ;)
    2. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      And you can't call it "baMessage" for what reason?

      Let's say I'm writing software for a portrait studio. Each picture you take is called a pose.

      What would you think "PoseNumber" would be? Would it surprise you to discover that it is actually a string, and not a number?

      What about the difference between an int, long, a short, or an unsigned __int64? "index" doesn't tell you anything about what you're dealing with. It tells you you're dealing with a datatype that represents the index, but nothing about the datatype itself; so every time that becomes important (say, when you want to write it out to disk in some ass backwards format that the client needs it in, or display it on the screen), you've got to wast 5 minutes finding where the variable is declaired. You may think it's fine to spend time searching through 300mb of source code to see where a variable is declaired, but it's a waste of my time -- especially when one or two characters would have told me what I needed to know.

      Stop being lazy and spend time making your code clear, not ambiguous. Your variable names should be descriptive and tell you what they are. Not most of what they are.

    3. Re:Hungarian notation considered harmful by A.Gideon · · Score: 2, Insightful

      Embedding type information within variable names is an artifact. It stems from poor coding practices, which permit great "distance" between declaration and use. It stems from poor tools, where these tools don't facilitate locating a declaration.

      This practice is also inefficient, potentially very so, in that redundancy is being increased. Worse case, some function's name must be changed because of a change in the return type (or argument list).

      There are such changes - depending upon the language being used - that will not require alterations in the calling code. For example, if a return of type T is changed to return a type derived from T (which therefore supports the full T interface), then callers remain uneffected. But if the return of type T was embedded within the function name, then all calling code must be changed.

      Expensive.

    4. Re:Hungarian notation considered harmful by Dwonis · · Score: 2

      Hungarian notation is fine...until you change around your datatypes (think of promoting char -> int -> long -> long long, or float -> double). Then, it's just confusing.

    5. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      Search and replace is a wonderful thing.

    6. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      You don't get it.

      Unfortunately, the world is not a perfect place, and writing a wrapper for every basic datatype you ever use is NOT practicle. OOP is nice. It's a good way to abstract GRAND concepts. It's not an efficient or practicle way of dealing with low level details. C++ is not a pure OOP language. And good lord, don't get me started about COM or exception handling...

      Re: "get a better editor"

      Emacs won't help you if you're looking at a printout doing a code review. Type is an important bit of information when trying to know what a variable does.

      Should I delete [] or delete? Is ++ a valid operation or is (*)++ what I really want?

    7. Re:Hungarian notation considered harmful by cduffy · · Score: 2

      I was agreeing with 'ya (well, except about exception handling) until you got down to here...

      Should I delete [] or delete? Is ++ a valid operation or is (*)++ what I really want?

      If you don't know all the variables (type, &c) in scope in the code you're writing, lack of *understanding* is your problem -- not lack of *notation*. Once you understand how the data is layed out (which should be done before mucking with the code), Hungarian notation is superfluous and does nothing but decrease readability.

    8. Re:Hungarian notation considered harmful by Dwonis · · Score: 2
      Tell that to the users of libc.

      Search and replace kills source-compatibility.

    9. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      No, it just means that without hungarian notation I have to lookup which variables are members of my class, how I need to deal with them, and what operations need to be done.

      Ex:

      Is customers a linked list (delete customers)? Or is it an array of customers objects (delete [] customers)?

      Am I dealing with a pointer to an integer (*InvoiceNumber)++, a reference to an integer (InvoiceNumber++, with the understanding that the calling function's value will be modified), or just an integer (InvoiceNumber++, with the understanding something else will need to be done to transfer the result to a more permanant location)?

      Hungariant notation isn't necessary, it's convenient. Using it means I don't have to remember/lookup the minute details of 50 variables used in a function.

      I don't know about anyone else who's used it, but I find that it drastically increases readability. It also drastically reduces the amount of time I have to spend investigating a segment of code to asses what the hell is going on.

      m_iInvoiceNumber tells me immediately that I'm dealing with a member of my class that is an integer, which represents the invoice number -- not a long, not a short, not a char *, not a std::string, an integer. I didn't have to check the top of the file to see if some schmuck made it a global variable. I didn't have to check the whole subroutine to see if it was declaired locally. I didn't have to open the header file, search through the text to figure out if invoice number is declaired there, or one of it's base classes. Instead of spending 5 minutes trying to figure out what the hell "InvoiceNumber" was, because I couldn't remember it from the last time I had to look it up an hour ago, I knew everything I needed to know in 1/10th of a second.

      And lord help you if you're forced to maintain VB code ...

    10. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      Changing your type is just as likely to kill compatibility, except it'll exhibit itself as odd subtle bugs next time you link to the library.

      Or am I missing a finer detail here?

    11. Re:Hungarian notation considered harmful by Dwonis · · Score: 2
      Yep, you are. First of all, depending on the case, it's quite possible that it will not "exhibit itself as odd subtle bugs next time you link to the library". This is especially true when using macros to declare types . . . like when you use autoconf.

      For instance, time(2) has returned a long int pretty much forever. So, it would have been safe to name a variable storing time(2)'s return value as lCurrentTime. Let's say you also have another long int somewhere else called lFoo

      When the 64-bit platforms roll in, and even possibly replace 32-bit platforms, you use autoconf to compile your program perfectly on those platforms (since you used a macro to declare type). Now, you have the wonderful situation where lCurrentTime is a long long int, yet lFoo is a long int.

      What happens? New developers are confused and frustrated, and experienced ones are still confused, but they soon make a habit of relying on variable declarations, rather than the notation (and will curse your name every time they screw up because of the notation).

      In the long run, Hungarian notation can't be trusted, and if you need it to remember your types, your code is probably already too complex, and needs re-thinking (eg. modularization) anyway.

    12. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      I'm still missing the point ...

      Let me see if I'm following:

      You've got time(2) returning a value. Time(2)'s return value is really a macro definition called "TIME" (or something).

      When I write my program TIME is really a long int, so I write my code under the assumption that I'm dealing with a long int.

      So I write "TIME lBlah = time();" ... which is wrong way to name your variable, because lBlah isn't a long int, it's a TIME value. tmBlah or something equally descriptive would be more appropriate. If your code was "long int lBlah = time();" it's still broken, regardless of your variable naming.

      Now, if I'm following what you're saying further on, I (using that term loosely) go on to make the mistake of declairing long int lFoo to hold a time value, which was mistake number two, as lFoo shouldn't be declaired long int; it's a TIME value.

      You are STILL going to have this problem regardless of what kind of naming convention you use.

      Hungarian notation can be trusted if you trust your coworkers to use it properly. I have yet to discover a bug that was caused due to a misunderstanding of a mislabeled variable type. I have seen one instance of a variable name being wrong (a long which was really a string) in 3 years.

      A blind search and replace is always a bad idea; however, I don't recommend a blind S&R, just a search and replace (examine what's going on with the line before you make the replacement).

    13. Re:Hungarian notation considered harmful by cduffy · · Score: 2

      Yes, I see what you're trying to say.

      However, I think that looking up "which variables are members of my class, how I need to deal with them, and what operations need to be done" isn't something which should be avoided, but rather a necessary step *before* trying to modify some code. Any crutch intended to allow one to code without understanding the larger data structures and algorithms involved is, as far as I'm concerned, ultimately counterproductive.

      If you don't know what's a global variable, what's an int, what's a pointer, &c. in some function before you start, you don't understand that code well enough to hack at it yet. And yes, I use the word "hack" intentionally -- because if you don't understand the wider context (and if you did, you wouldn't need or use that crutch), hacking is all you can do.

      Okay, I'll admit: I've worked on horribly written code, with tens of global variables, where Hungarian notation would have been useful if available. However, that doesn't mean that using Hungarian notation is The Right Thing; rather, writing code with data structures which can be easily grokked is The Right Thing.

    14. Re:Hungarian notation considered harmful by Keeper · · Score: 2

      [quote]
      If you don't know what's a global variable, what's an int, what's a pointer, &c. in some function before you start, you don't understand that code well enough to hack at it yet. And yes, I use the word "hack" intentionally -- because if you don't understand the wider context (and if you did, you wouldn't need or use that crutch), hacking is all you can do.
      [/quote]

      I agree with you here. What I'm saying is that hungarian notation makes it easier to figure out what it's doing! It's an aide; it reduces the amount of time you have to spend investigating the code and it's purpose. It's like a footnote at the bottom of the page. Without it is like reading one of those choose your own adventure books -- goto page 10, goto page 40, goto page 13.

      I'm not saying that it's necessary to do code, but to suggest that it's superflous, promotes bad coding practices, or is a waste of time isn't true either. It CAN be superflous, it CAN promote bad coding practices, and it CAN be a waste of time, but it is only those things when it isn't used properly.

  93. IE does make money - as part of the OS sale by DunbarTheInept · · Score: 3

    IE does make money, in precisely the same way that the Windows Eplorer file manager makes money, and COMMAND.EXE makes money, and the CD Player makes money. It's cost is recouped on the sale of the OS into which it is packaged.

    --

    Don't label something "offtopic" unless you know the topic well enough to tell what's on topic.

  94. You can tell he worked for M$ by Zero__Kelvin · · Score: 2


    "SMS: Joel, what, in your opinion, is the single greatest development sin a software company can commit?"

    "Joel: Deciding to completely rewrite your product from scratch, on the theory that all your code is messy and bug prone and is bloated and needs to be completely rethought and rebuild from ground zero."


    So folks ... there you have your reason why M$ code that should take up 20 Megs takes up 200 instead, and is bug-ridden. If your code is messy, bug prone, and bloated ... so what? People have been buying it for years, so why change it?

    OK, so that was partially tongue in cheek, but seriously, there are lots of times when such a drastic measure is just what the doctor ordered. You see, the biggest sin a company can make is not ensuring consistent variable naming, copious - quality - commenting, and solid and thorough documentation. This means, among other things ... gasp regular code reviews! The 'it seems to work, and might with other things in the future' mentality is the Achilles heel of the industry. If it works, why fix it? Because it's not a wheel, dumbass, it's a complex compileable document that has been made as simple as possible, but never simpler when done right. Don't re-write your bloated, buggy code indeed!

    Maybe he should have a sister sight ...

    JoelonSeriousHallucinogensMixedwithPshychtropics.T heyreComingWithThe.net ;^}

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  95. Verbosity isn't bad as long as it's WHY not HOW. by DunbarTheInept · · Score: 3, Informative

    Comments should explain WHY, not HOW.

    If all the comments are doing is telling you exactly what you already knew from being moderately literate in the language, then they are just ugly chunks of text that get in the way of reading the program.

    But that doesn't mean verbose comments are bad. If the verbosity is dedicated to telling you *why* something is being done, rather than giving a play-by-play description of how, then it is very useful. If I see a for-loop that counts backward from ( array_size -1 ) down to zero, don't give me a comment that says "counting backward in a loop". I can TELL that. But what I can't necessarily tell at a glance is *why* the author chose to count backward instead of forward - what was the algorithmic purpose to doing it that way - THAT is what I want to see comments explaining. And with THAT type of comment I am very happy when it comes with a lot of verbosity.

    The worst examples of useless verbosity are when you see code written by someone who has *just* learned a new programming language and is unfamiliar with the "culture" of that language. They tend to document things that everyone already knows like the back of their hand. (For example, a novice C programmer tends to go into excessive detail about the use of null chars to terminate strings.)

    --

    Don't label something "offtopic" unless you know the topic well enough to tell what's on topic.

  96. No truth at all in Cringely's article by Baki · · Score: 2

    First, the question remains whether Java won't be a Microsoft killer. As applet it has not delivered what was expected (though it isn't dead yet), but at the server (servlets, EJB's etc) and in embedded devices (soon there is a JVM in all cell phones, and cell phones are predicted to at least partially replace the desktop computer) Java is very alive an a big threat to Microsoft.

    He claims that Java is bulky and slow still, after 5 years, and C# is supposed to be winning because it "feels better" and is "snappier"? Where on earth did this guy get such benchmarks from to prove this? It simply is NOT TRUE. Java performance has come a long way, and I haven't seen any evidence to date that C# is faster nor a better language. In fact C# is lacking in one major area, checked exceptions (meaning you are not obliged to catch or explicitly throw exceptions, which will lead to massively unreliable C# code bombing out all over the place).

    MSFT once more is pushing an unproven and less superior alternative, just and only because it wasn't able to apply it's embrace and extend strategy to Java, that is the ONLY reason MSFT rejected Java.

    Exactly the Java/C# example shows that Microsoft may drive other companies or technologies out of business, not because it makes less mistakes or has more technical excellence, but just be unethical tactics, misleading, false promises and massive marketing, leveraging its OS monopoly to kill off competitors.

  97. Re:Sure-fire way of making a software project fail by Bert+Peers · · Score: 2
    5. Have a combo of developers and managers explain to salespeople what the product does, what its highlights and features are, then watch those sales people take off and sell something completely different. "What do you mean, I sold something nonexisting ? The deadline is next month".


    Real story.

  98. Zero defect software by Bert+Peers · · Score: 2
    A lot of the comments here are trashing Joel for his anti-rewrite stance. I just wanted to point out that if you read some of the work on his site, he does offer advice that is more "acceptable" from a CompSci point of view, too.


    One of the things in particular that striked me as suprisingly simple but yet powerful is the Zero Defect concept : in theory, you try to eliminate all bugs before adding any new code to a product. The reasons being

    1. it's harder to hunt the bugs later when the amount of code is even higher
    2. the longer you wait, the less you'll remember about the code containing the bug
    3. with zero/few bugs, you can always ship a product when you have to, not "later on" when you will have "removed the bugs" -- you can always ship right here, right now, with zero bugs, only maybe not all the features you'd want.


    All in all, I think this concept makes a good argument for refactoring, redesigning, partial rewrites maybe. He's just saying that it often does not make sense to fix one bug by rewriting a piece of code, in the process undoing the fixes to ten earlier bugs. So before you go trashing this guy for being a total moron, check out his site...
  99. Didn't work for Detroit?!? by kaisyain · · Score: 2

    Even with the huge DaimlerChrysler merger, GM and Ford still have revenues that dwarf the competition. Ford has 1.5 times the revenue of Toyota, 2.5 times the revenue of Volkwagen, 3.5 times the revenue of Honda or Nissan, and 5 times BMW or Mitsubishi.

    Ford also owns Aston Martin, Jaguar, Volvo, Land Rover, 1/3 of Mazda, and 10% of Kia. GM owns Opel, Vauxhall, 20% of Fiat, half of Saab, half of Isuzu, 20% of Suzuki, and one-quarter of Subaru.

    The American auto industry made horrible mistakes from 1967 straight through 1978. Yet they still dwarf the competition. If you call that not working out, I'd love to see what you actually consider success!

  100. Re:Not sure how to take Joel and the MS experience by G+Neric · · Score: 2

    the evil comes from the monopoly. "...absolute power corrupts absolutely"

  101. Re:You're wrong about Hungarian by G+Neric · · Score: 3, Interesting
    Also, Charles Simonyi was chief architect at Microsoft at the time he created the Hungarian notation (early 80s)

    no, he developed Hungarian Notation in the 70s as a small part of his PhD thesis at Xerox PARC. His thesis has a very interesting concept in it: imagine that programming is a game where two programmers are given the same task to work on, independently. They are allowed to communicate before beginning, but not once they start. If they produce identical code, they win big.

    The point is that this is exactly how the software industry works: if you and I followed a set of conventions that caused us to generate the same code, we could maintain each others code with no extra effort (and rewriting it would produce the same result again :)

    it illustrates what is wrong with perl's "there's more than one way to do it"

  102. Re:How to make a good software project / product f by Alex+Belits · · Score: 2

    1. You are a moron.

    2. Open source programmers simply don't care if AOL will make more or less money off their work. Their problem is completely different -- they have to have a standards-compliant browser on non-Microsoft platforms that they happen to use, and the only viable project is still Mozilla -- Opera and Konqueror have their inherent limitations precisely because they became faster by ignoring or breaking cumbersone standards, and there is no reasonable way to fix the standard in the situation where W3C has basically idiots+Microsoft at the helm. Mozilla, by following W3C madness such as DOM and countless stylesheets models, allows people such as myself to keep Microsoft products away from their desktops, and that goal has nothing to do with AOL or any other company's money.

    --
    Contrary to the popular belief, there indeed is no God.
  103. Re:Chars and bytes arrays are both the wrong solut by TheSliver · · Score: 2, Insightful

    The anti-Unicode stance, which tends to be wholly American is interesting since before the attempts to unify character set encoding there was complete chaos in non Roman character sets. This wasn't thought at all interesting or useful because it didn't affect US english software.

    Each of the language systems had their own methodologies and for some multiple encoding schemes.

    Unicode is a painless way to protect your app from different character set operating systems so long as it is implemented at the core. Bolting it on afterwards is nasty.

  104. The real reason MS really whacked WordPerfect by jyoull · · Score: 2, Insightful
    OK so I sold computers and software during the time that this all went down and this is what happened...

    1) WordPerfect for DOS, coded in assembly language, was one damn fast, tight, piece of work. The best word processor for DOS, hands down, no question about it. Everyone used it.

    2) MS and IBM announce OS/2. I go out and buy a big fat book about "Programming for OS/2". MS starts pumping the application developers to build OS/2 products. At this time, MS Windows 286 and 386 exist, and MS says they're to be phased out in favor of OS/2, the future of operating systems.

    3) Fast forward a couple of years, not too far... MS dumps its OS/2 partnership with IBM and releases new versions of Windows, saying that Windows is now the future of operating systems, and they don't need IBM's help. Shortly after this, Word for Windows 1.0 magically appears. WordPerfect Corp. sends a letter to all its dealers that says (paraphrasing from memory) "MSFT told us that OS/2 was the only OS we needed to code for, we believed them, and consequently we have no Windows product at this time... but we're retrenching and will put out WP for Windows as soon as possible. Oh shit."

    So, this game was not lost to assembler EXCEPT in this sense -- if WP for OS/2 was written in assembler lang. instead of something higher up, a quick port from OS/2 code to Windows code would have been impractical or impossible. Would love to hear from some of the WP developers about what actually went down around this event.

  105. Re:yes it is by Phillip2 · · Score: 2

    "That's what evolution is all about: survival of the fittest (and mankind is obviously part of the environment)."

    Its normal to distinguish between "the environment" and "mankind". Hence "artificial" as opposed to "natural" selection.

    Phil

  106. Re:Redevelopment is sometimes the answer by SuiteSisterMary · · Score: 2

    That's not a re-write. That's a re-design. A re-write, in Joel's context, is where you're not trying to change anything, but instead, just build a new road to Rome.

    --
    Vintage computer games and RPG books available. Email me if you're interested.
  107. Re:Rewriting is good. Money is even better. by SuiteSisterMary · · Score: 2

    You confuse redesign with rewrite. Moving wordperfect from assembler to C would be a redesign; a major undertaking. Taking the WordPerfect, say, 6.0 codebase, throwing it out, and rewriting it, in the same language, with your end goal being not to have to reprint the user docs (i.e. nothing changes) just because 'the old code looked poor' would be a rewrite.

    --
    Vintage computer games and RPG books available. Email me if you're interested.
  108. Bad point by quark2universe · · Score: 2, Insightful

    Repeat after me ... Job security is a fallacy. It does not exist. It never has and it never will. It is supposed to be your protection from being laid off, right? If your company has any least little bit of financial struggle and they want to appease Wall Street, LAYOFFS. You're not safe. "Job security" is a lousy excuse for not commenting your code.

    --

    Believe in things of which no person has ever learned
  109. Re:Good point NOT by dazed-n-confused · · Score: 3, Insightful

    After the product is released, nobody will allow you the time you'd need to write comments or user documentation or Visio diagrams. The only effective way to produce documentation and commented code is to generate it as you go along.

    I'm surprised you haven't yet been modded down as a Troll, you are so far off-base. See Dave Parnas' "Software Fundamentals" for a detailed exposition of why your approach is wrong, wrong, wrong.

    Your objective should be to get working, stable, maintainable, supportable code out of the door. This means it's commented and documented (and, yes, diagrams count as documentation). If you fail to do this, you're failing your users and (ultimately) your company.

  110. But M$ can have parallel development! by gosand · · Score: 2
    It must be real easy to let go of a project when you have the cash to finance parallel development teams! When you have one team, one project, it is REAL hard to let it go and switch gears. When your monopoly affords you the luxury to just throw money at the problem, life is good.

    That isn't creative and innovative, that is wasteful. I would hate to see how much money and resources M$ wastes on failed projects that we never hear about.

    --

    My beliefs do not require that you agree with them.

  111. Oh the religion, oh the pain by Junks+Jerzey · · Score: 5, Informative

    Like Joel, I have been programming for 20 years, so I'm certainly not trolling just because what I have to say isn't the in thing with the core of the Slashdot audience.

    I read Joel's interview yesterday, before it was mentioned here. Good interview, I thought, he makes lots of good points. But the debate about it here has nothing whatsoever to do with what was said there. Many of the comments key off of the word "Microsoft" and so immediately assume that the interview is crap and has something to do with justifying Microsoft's monopoly position (are these people really bots?).

    Most of the the comments, though, are taking little bits of advice and twisting them around into mini-lectures about commenting style or programming issues, or they're simply being used as jumping off points for the poster's own spouting. Let me make this perfectly clear:

    These people are not professional programmers.

    Anyone who has been through the wringer of commercial software development, and not just a few classes and some tiny open source projects, wouldn't be so religious about such trivialities. Real software development is different. It is not a battle between the Evil Bad Commenters and the Perfection of Beautiful Computer Science (or more correctly What My Professor Said in Class Last Semester). That's not how it works at all. All programmers know about commenting, about indentation style, and so on. There's more to developing commercial products, though: deadlines, missed features, last minute requests from the client, strict requirements for supported platforms, and so on. In this kind of environment, commenting style is a very minor issue (not to say it isn't important, but ranting about it is like ranting to an experienced guitarist about your pet music theories--when you barely know how to play guitar at all). A good way of spotting such people is to ask them what they think of "goto." Odds are you'll get all sorts of vitriol about the evils of goto and the benefits of structured programming and how you should never, never, ever, even if your life depended on it use a goto. An experience programmer would shrug and say "sometimes they are useful, sometimes not."

    My advice: Learn, practice, work on projects, and over the years you'll become a pro. A college student without significant software engineering experience is not in a position to rant about how commercial development doesn't fit his ideals. The true sign of experienced developers is that they've been through it all and have enough experience that they don't feel the need to rant every chance they get--or at all.

    1. Re:Oh the religion, oh the pain by Junks+Jerzey · · Score: 2

      Are you saying you agree completely with Joel's comments? I do agree with some of what he has to say but I wouldn't go all they way. Joel seems to be saying code re-writes are crap and it's more important to meet the deadline than get a good program out the door. That's where I take exception.

      You can't take exception to his examples. Sometimes a rewrite is good, very often it is bad. There's a newbie tendency to think that rewrites are a silver bullet, which is why there's so much debate about it from the kiddies. Joel backs up his argument with examples. The kiddies just rant.

  112. Job security? by LinuxParanoid · · Score: 4, Insightful

    Dude, think about what you are saying. Do you want to keep maintaining your old crappy code or pass that job onto someone else? Or do you want to go write some new code?

    Your perspective assumes your company requires a fixed amount of software. Think more imaginatively.

    Better documentation means you can shove maintenance to a more junior programmer with less pushback.

    Also, without good documentation, its a b*tch to try to outsource/handoff pieces of the code you don't want to bother writing.

    Besides, I don't care how well documented your code is, you should always be able to convince a boss that its more efficient for you to make changes to it (even at higher salary) than some cheaper guy who has never seen the code before.

    --LP

  113. Re:Good point NOT by renehollan · · Score: 2
    And then when your wunderkind has left the company because someone else offered a raise that you can't match, or the star decides to go into business for himself/herself, or dies from a caffeine overdose, and you are left with no documentation, no comments, no variables longer than four letters, and the "talent" isn't returning phone calls, then what?

    Of course you don't hire one wunderkind, you hire five or six, and team them up in pairs (a good Extreme Programming tip). But you don't hire 20 average joes. Let the competition hire them and suffer.

    Sure the program is efficient and runs like a dream right now. Fat load of good that does you if it breaks or needs to be extended,

    If it runs like a dream, you get to sell it right? And make money, right? Out the door, fast, right, make the window of opportunity.

    Contrary to popular belief design for extensibility is not hard -- it comes naturally to experienced coders.

    If you can throw letters down in Emacs so quickly, why can't you seem to find time to have one line out of 15 be in English?

    Perhaps the English would not be as descriptive or useful as the 15 lines of code, and very distracting. The kinds of docs you want are along the lines of "this rebalances a 2-3 tree". You don't want an essay explaining 2-3 trees, but that's what many call for.

    --
    You could've hired me.
  114. Joel on Software by dazed-n-confused · · Score: 2

    His site's FAQ ("What's going on here?") includes unsolicited praise for the discussion group: "The forum is great because you attracted a group of thoughtful people who can write clearly. No flames. No all caps. No crap. Little HTML showing where it shouldn't. No one replying just to be the first to reply."

    And then he gets featured on Slashdot. Poor Joel. Poor discussion group.

  115. Death March by beanerspace · · Score: 3, Insightful

    Ed Yourdon wrote a book a couple of years entitled "Death March: The Complete Software Developer's Guide to Surviving 'Mission Impossible' Projects".

    Whenever I hear of a software project failing, I think of this book because it explains in gory details what happens when software is treated like fast food instead of architecture.

    When Joel Spolsky gripes about "re-writing" as the cause to failure, he's both right and wrong at the same time. Rewrites don't kill projects, MISMANGED rewrites kill projects.

    There are some other points that raise my suspicious about Spolsky's training and experience. Since the 90's, there has been a big effort in the industry to develop large scale products with some semblance of reuse. Hence, one of the determinat reasons for the lurch into object oriented program.

    Spolsky descriptions sound to me like he's still thinking of code, and of failed projects that were lacked modularity. Nor did he give much attention to other major factors such as FEATURE CREEP, where a small system becomes spagetti over years and years of maintenance. Same with scalability, challenges definately occured in the past decade or so with the massive changes in processors, operating systems and their associated APIs/internals.

    But again, it all gets down to one's approach. If you treat software development like you're flipping burgers for the lunch crowd, then you're going to have to deal with the indigestion that comes along with building a house sloppily.

  116. Differing goals by bakuretsu · · Score: 2, Insightful

    I think a lot of people are confused into thinking that quality software makes successful software. This could not be further from the truth.

    True, successful software should *work*, but that doesn't mean there isn't a less commercially successful software package out there that just works better.

    Case in point: BulletProof FTP for Windows is a highly acclaimed and highly successful FTP client. Their marketing strategies are right on the mark, and thanks to this, they have raised the revenue required to maintain their code, their website, and even acquire G6 FTP Server from Gene6 Software.

    BulletProof FTP is commercially successful.

    I, personally, use LeechFTP, it's distributed as freeware, and isn't even supported anymore. Sure, it has it's quirks, but it didn't cost me anything. Commercially successful? No. Quality programming? Yes. LeechFTP is the only FTP client I know of to implement a multithreaded design for uploads and downloads, a feature that I use daily to transfer entire website directory trees (having three simultaneous logins to the FTP helps drastically).

    LeechFTP was never marketed to produce a profit, and if it were, it would fail. BulletProof Software undoubtedly followed all of the cut-throat and low brow schemes that Joel outlined to maintain their market share and draw a revenue. That doesn't mean their product is no good, but to some extent the goals of producing quality software and producing PROFITABLE software have to be separated.

    Microsoft has built themselves up to a point where they can spend enough money to retain enough programmers to keep their products working as well as Mr. Joe Average requires for his needs. That is a luxury for them. Without those resources (or the help of many dedicated programmers that will work for free), other companies will have a very hard time balancing those two goals.

    --

    --
    The Bailiwick - DESIGNHUB2005
  117. Sure-fire way of making a company fail: by streetlawyer · · Score: 2
    1. Never act like a salesman. Grudgingly tell your customers you might, possibly, deign to design the project that they want. Always make them feel like idiots for even asking whether something might be possible if you don't feel like implementing it.
    2. Don't listen to the customer ever again. Tell them that the spec agreed is frozen, and that their changing business needs are their problem, not yours. If they accidentally get through to you on the phone, remind them how much more important your carefully designed project architecture is than they are.
    3. Let your developers take as much time as they feel they need. Never put them under any pressure, because hey, that would be unfriendly. Tolerate sloppiness and lack of delivery, because otherwise your employees will all probably resign and go play Quake somewhere else. Never fire anyone, and never, ever even think about judging someone by results. After all, it's the programmers who run your company, not you.
    4. Go bust. Hey, there's no shame in bankruptcy these days!
  118. Re:Good point NOT by renehollan · · Score: 2
    ...and those 47 pages are worthless the minute someone changes your code and doesn't update the documentation. Unless you're in a literate programming environment, you've just wasted three days that could have been spent getting the dweeb in the next cube out of his bug-ridden hell. I can't see a protocol description taking more than 10 pages for something like that, and if it does, the protocol is probably unnecessarily complex.

    If you have the luxery of time when such protocols stablilize, then, by all means, embelish.

    The correct code production rates that you need are on the order of 1000-5000 lines of correct code a week, or at least with defect rates over the life of use down to 0.1 line per kloc.

    The bottom line is that I've seen people apply best practices and get a correct code production rate of around 6-8 LOC/hour. I've seen (and apply) extreme programming techniques, and routinely beat that by a factor of five, sometimes much more (when the code is routine, like the umpteenth generic marshalling/serialization package you've written, or recursive-descent parser).

    --
    You could've hired me.
  119. On Java success... by mindstrm · · Score: 2

    The one thing that really gets ME about java (which I like, btw)..... is how damn confusing it is to figure out what Sun is talking about most of the time.

    Now.. I'm not a software engineer... I'm not a professional programmer.. though I do code quite a bit. But I'm very computer savvy... and I find it *very* difficult, in reading through sun's Java stuff, to figure out what the hell they are talking about. I know there is something there... I know they have some really nice ideas and stuff.. but.. it's very, very confusing.
    And I just have to wonder.. if I can't figure it out.. who can?
    You see. that's where MS comes in... even if they sacrifice technical superiority.... It seems to me that Sun's stuff is just aimed at too high a level. You need some serious software engineering people to figure out how to use some of Sun's stuff.. with MS.. it's a level or two lower (and yes, less sophisticated)

    1. Re:On Java success... by mindstrm · · Score: 2

      Yes.. that part is clear. But when you get into them discussing JINI and all their other 'technologies'... it's confusing.

      Hey. Maybe I'm just stupid, and everyone else gets it. I'm just saying that one reason I found java difficult to accept was the fact that sun threw so much buzz at it.

  120. Comment rules by markmoss · · Score: 3, Interesting

    Do programming classes still make you put a comment on each line of code? E.g.:
    x = y + 3; /* set x to y plus offset of 3 */

    Come out of that sort of training, and it takes a while to realize that comments aren't stupid, your teacher was. Comments should NOT say what a line of code does. Except in obfuscated code contests, if what one line does isn't obvious, either the writer or the reader is incompetent.

    Every module and function should have a block of comments to say what the module or function does, what the function arguments are, and especially give the specs, and tell what assumptions are hidden in the interface If possible, go back after software testing is done and note the conditions in which the module was tested -- this is invaluable for re-use, since it avoids the assumption that "this part was thoroughly tested", when it wasn't actually tested for what is now being done with it. Every time someone has to update the program, it's a "code re-use" for the modules that weren't touched...

    In large functions, you might want to put in comments for each major block of code, but first think about whether the function ought to be split up... Line by line comments are needed only when you are doing something that is unusual, not straightforward, or handling an issue not stated in the specs; say WHY you are doing it that way, or why you have to do it at all.

  121. Odd article to see on Slashdot by benedict · · Score: 2

    I'm surprised to see such a programmer-bashing article linked from Slashdot. I'm glad it was, though; it was interesting. It bashed users pretty badly too, and had a very silly outlook on bloat.

    The real cost of bloat isn't disk space or even memory, Joel; it's bugs.

    This "SoftwareMarketSolution" site seems to be by and for marketroids. There's a lot of the testosterone-filled jargon of marketing in there. Joel refers to a "great book" called _High St@kes, No Prisoners_, a title which puts my back up pretty badly. The focus all throughout is not on how to deliver value to customers but rather how to beat the competition.

    I see little merit here.

    --
    Ben "You have your mind on computers, it seems."
    1. Re:Odd article to see on Slashdot by benedict · · Score: 2

      Since it's so obvious, you should figure it out for yourself.

      Oh, ok. Go to the article that this story points to and
      look at the yellow box in the upper left, that talks
      about Novell.

      There's lots of use of words like "moaning" and "whining".
      These are loaded words, used here to dismiss what certain
      people have to say.

      The premise of the article itself tends towards machismo,
      though the interviewer and interviewee didn't have to
      take it in that direction.

      --
      Ben "You have your mind on computers, it seems."
    2. Re:Odd article to see on Slashdot by benedict · · Score: 2

      You're making my point for me very effectively.

      --
      Ben "You have your mind on computers, it seems."
  122. Re:The little guy needs to know the stakes! by SoftwareJanitor · · Score: 2

    Wow. That is a whole lot of rationalization. I don't think that fear of being crushed by an all powerful bully raises the level of software engineering most of the time. I think in fact it does the opposite. It stifles innovation because a lot of people will just say 'why bother'. In a truly competitive market, where no player has more than, say 30 or 40% market share, there is a lot more room for smaller players to carve out a niche. I think that the level of software (and otherwise) engineering is raised a lot more when there are two or three comparable, credible alternatives to choose from and they have to compete based on merits rather than who can outspend who on marketing, exclude others through restrictive licensing or dealership policies or whatever.

    Your example of the stress that ID is subjected to due to monopolistic seems more like evidence that the current market situation is screwed up rather than working correctly. If every company other than Microsoft is forced to be so cautious that they can never make any sort of mistake lest they be crushed, then before long there will be nobody else left, and nobody will be willing to take the risk to ever enter any business that Microsoft might somehow, somewhere decide to think about. And since Microsoft seems to have intentions to expand from computers into television, news media and entertainment, pretty soon there will be nothing on TV or movies but what Microsoft wants...

  123. Odd "interview" by cant_get_a_good_nick · · Score: 2

    Did they actually talk to him, or just read his articles and construct what they think would be Joel's responses? If you read his articles (I don't agree with all of them, but they do make you think) you'll notice a lot of similarities, even in wording. Or maybe Joel read all his stuff the night before for background notes.

  124. Re:Taking lessons from...Not Quite by darkPHi3er · · Score: 2

    Normally, i don't respond to AC posters, but you weren't obnoxious and you seemed to be actually trying to deal with my points, so, out of courtesy (can i say that on /.?), here's a rather abbreviated response (prob still 2 long for lameness)

    "I don't think you read it very closely. "

    Not to be pissy in that /. kinda way, but actually i did, i appreciate your literalism, but, i've been dealing with these kind of coders for a long time (and in large teams), so my reaction is about 70% to Joel's words and about 30% to what i've SEEN when you design/code his way:
    eliminating our agreements, here's my response

    1. More features are always better features

    Ok, but

    2. Coders are not responsible for optimization

    YOU: "He didn't say that. He said that most memory "optimization" doesn't actually help much, which is true."

    I wasn't referring to his quote about memory optimization, I was referring to his repeated statements about "bloatware" and "features". Optimization is not merely about reducing run times or footprint, it also is about choosing the right design and architecture. If you have a program where a given feature is used >1% of the time by >1% of the users and you keep it in new version, you have "non-optimized" code. Giving marketing droids free reign to include features leads to bloatware products like Word and Excel, where even MS acknowledges that most users NEVER use most features. I think Joel makes it pretty clear right here with "For one, if programmers don't have to worry about how large their code is, they can ship it sooner". That's a defintion of the ESSENCE of non-optimized software design.

    3. Hardware vendors must not change h/w designs that would break installed base, even to improve their architecture

    YOU: "He didn't say that at all."

    No, he sure didn't SAY it. Because essential to Joel's thinking on code/design is that you "fix it in the next version". He makes that perfectly clear in numerous places in the interview. Well, if you have version after version ....and each of them getting bloatier, your hardware vendor has lost his ability to do any major redesign of the h/w without either breaking his h/w or your computer. As someone pointed out earlier in this thread, that leads, for example, to the microcode solution (and in devices, shimware). The best example of this is both Transmeta and Intel, both of whom have to mask more efficent cpu designs under an inefficient microcode layer in order not to break the installed base. Transmeta (bless them) is at least doing it by design.

    4. Your s/w is SOOOO... important that shipping delays for optimization/tuning/additional debugging are not to be accepted

    YOU: "You threw in that "additional debugging". He never advocated shipping bugs. As for optimization and tuning... he didn't say that there are no circumstances under which you can delay the software for optimization. He did say that it's not generally a good idea... and he's right. Generally, it's better to ship something correct but slow on time, and release updates, so that you at least have something on the market, unless the thing is so unbearably slow that it's unusable. "

    WHOA! "Generally, it's better to ship something correct but slow on time", REALLY? better for WHO? Certainly NOT the user (Wordperfect Windows 6, dBase Windows 1, Access 1.0 and the 1.1 release are perfect examples of this) who ends up paying $$$$$ for crap and then hope the vendor is going to get around to fixing it. And on your/his point about "it's not generally a good idea.." to delay RTM/ship for additional optimization, if you've lead a commericial software team (even a small one) you know "it's not a good idea..." from managment, will turn into "Don't". by the time it gets to your coders.

    6. There's never a reason to rewrite extent code, EVER...(here's my nominee for that reason -- Microsoft Outlook)

    YOU: "No, he said there's never a reason for a ground-up rewrite --- and he's right. Refactoring, on the other hand, is great: rewriting extant code a bit at a time."

    Now, it's YOU who are taking him out of context (as you have accused me of doing). NOT ONCE does he mention "refactoring" code. The closest he comes to it is suggesting that if something is really broken, you can rewrite it a little bit at a time.

    There are actually LOTS of reasons to do a ground up rewrite. I wasn't being sarcastic when i mentioned Outlook, nor was i bashing MS, i know and like a lot of them and respect many of their products. Many Softies are terminally embarassed by Outlook and all the problems it has caused.

    The architectural design of Outlook is so poor that it has led to billions of dollars of lost data and systems damage. Yet, because of all of the things that Joel has promoted (and MS' ego), they keep recreating that program, version after version. The mistakes of the earlier versions are retained and the new version have new exploits created as a consequence of the old architecture

    7. Architecture is secondary to UI, maintanence of the UI experience is the MOST important standard

    YOU:"I don't recall him saying that either, but maybe I missed it."

    I can see how, if you don't do a lot of design or architecture, how that would be non-obivous.

    Simply put, if you can't ever change the base code, you can't ever effectively change the UI, as the integration between the UI and base code is (or should be) the tightest of all the design bindings in the entire OS or App. Witness "Windows Explorer", it's a clunky, ugly, non-effective piece of crap because it is bound to the files systems design and the UI. Everyone hates it (incl many Softies), but you can't do much, if anything, about it.

    8. Any problems caused by #7 above should never be fixed by redesign, but instead should be prioritized and patched by response to User problems.

    YOU: "Yeah, that is redesign, regardless of whether you want to use some derogatory term like "patching" or not."

    NOPE, sorry, these are both very clear "terms of art" with five decades of clear definition and usage behind them. You don't "design" a patch they way you "redesign" a app, system or even a feature.

    Patches fix things that are broken. Usu with a "one patch" to "one problem" ratio, unless you really messed up your design and QC (if you want to see what happens when you attempt to "redesign" by "patch" -- see the NT4 "Service Pack of Death").

    "Redesign" is not done at the "support" or "QC" level, but at the "architectural" level, redesign consists of stepping back from the extent product and saying "how can we do this better next time?" NOT "How can we save ourselves some future design time by using this patch to throw in additional features?"
    ........

    --
    Ten quid, she's so easy to blind. And not a word is spoken...
  125. Re:Trying to hire female and minorities as a quota by SoftwareJanitor · · Score: 2

    Share the roads of your city with Asian drivers

    Uhh. I live in Austin, TX. We've got lots of asian drivers. I don't think they are any worse than the hispanic drivers, black drivers or rednecks driving their red F150's. Everyone around here drives like fscking maniacs. Either way too fast or way too slow and changing lanes without looking seems like standard proceedure regardless of racial background.

  126. projects or products? by jafac · · Score: 2

    Y'all seem to be missing the point here.
    Engineering practices do come into play, I'm sure. Commenting code, etc. yadda yadda, all very important.

    Let's just assume you have competent engineers (and managers) who know how to do their jobs.

    Then, how do you make a software project fail?

    Turn over engineering decisions to marketing and sales people so that the engineers CAN'T do their jobs.

    I've been in this business for 10 years, and I work for a fairly large software company, and I'm telling you, this is the #1 problem we all face.

    If you have a sales guy who's the golfing buddy of the CEO - you'll get features, MAJOR features, added to a project 2 weeks from the ship date.
    And if the CEO's OTHER golfing buddy is the head of marketing, that ship date WILL NOT SLIP, because hell, you don't want to piss off the trade rags who are all lined up to do reviews on your product and publish on that date. Otherwise the next trade show will be awkward.

    These are pretty simple examples of what goes on - and the fallout from this is, code changes happen - after beta testing is finished, features are slapped in without code review. Testing suffers - if you do a complete regression pass prior to actually shipping.
    Then you end up either shipping late (which most companies do anyway) - or shipping on time, and in both cases, you end up with a buttload of field issues that didn't appear in your abbreviated beta testing, or in your QA lab.

    Buggy software makes for poor sales (unless there's no competition). In addition, 9 times out of 10, the feature that the sales guy asked for gets in, but it doesn't work the way he imagined it worked, so this absolute drop-dead feature he needed to make that $10million deal isn't what the customer wanted, and so that sale falls through.

    I've seen this happen again and again. When you throw out careful engineering practices, and let the marketing and sales guys design a product that should be designed by engineers - the end result is - just what you'd expect.

    Sure - you MUST give a product a certain feature set in order to have market appeal. You MUST make target dates in order to synch with the marketing strategy.
    But these non-engineering influences need to adopt some better practices.
    1) Do REAL market research. Study the feasibility, keep engineering in the loop from day one.
    2) Make REAL detailed descriptions of new, requested features. (including "performance enhancements") Figure out what problem the customer is trying to solve with this feature, and why. See if alternate approaches can solve the same problem more elegantly. (this is how GREAT software is written, as opposed to the hobbled-together crap that's being sold by most companies today).
    3) Write the engineering spec for the product IN STONE - set a date. From this point on, unless there is a technical problem - NOTHING about this product changes. Any new features have to go into the next version. Sorry charly. That last great whizbang idea missed the boat. Trying to get engineering to put it into your product at the last minute to save your ass in that ONE big deal that's going to get you that christmas bonus.
    4) provide adequate time for testing. I can't stress this enough. If you're hitting problems in the field due to diverse customer environments, then expand your beta testing.

    --

    These are my friends, See how they glisten. See this one shine, how he smiles in the light.
  127. Re:API specs? by BlueWonder · · Score: 2, Informative

    Well, nobody ever told me explicitly that -5000 + 5000 = 0, but I was able to deduce it.

    Exactly my point: It can be deduced from axioms ("specs") about integer numbers, addition, etc that -5000 + 5000 = 0. Therefore, I would not assume that asc(chr(x)) equals x unless it can be deduced from the specs.

  128. Re:problem = clueless management/directors/execs e by K-Man · · Score: 2

    It goes beyond making the job unpleasant - the same cluelessness means that products don't get the innovations they need, and the entire business direction is defined by "don't go there, that's hard". Then they pack the ranks with VP's of this or that, and they might as well bury the engineers and forget about them. I call it the compost pile model - they keep adding fresh layers on the top, hoping something useful will form at the bottom.

    My last employer was (at one point) an internet search engine, but in the three years that I was there, they made absolutely no technological improvements to the search code (I know, I read it), but they doubled the layers of management, made hundreds of changes of priorities, etc. Then they decided that search was unprofitable, so they formed a bunch of distribution partnerships with other portals - except Google. Now Google is eating up the market and everyone else is chapter 11. So what do they do? They lay off all their R and D people :-)

    --
    ---- "If we have to go on with these damned quantum jumps, then I'm sorry that I ever got involved" - Erwin Schrodinger
  129. Legacy DOS Code by llywrch · · Score: 2

    This has been an issue that has puzzled me for the longest time: if your company has a program that runs on -- say -- DOS 5.0, & you can't afford to pay someone to port it to Win98/Win2000/Linux/BSD/whatever, why not leave the aging 486 running this ancient program alone?

    Either you have an idiot in charge of IT who wants every computer at the same iteration of hardware & OS for ``simplicity" reasons, or you have a bunch of lazy users who don't want to leave their cube to walk over to the old computer to run this legacy application, then move the data to a shared directory from whence they can work on it at their cube.

    And if a case can be made that it has to run on several current-generation computers, then it's justification to be rewritten & migrated to the office standard.

    Something just doesn't compute here. Unless this is MS's way of hiding the fact they have to leave a butt-load of legacy function calls because no one in Redmond is sure they aren't being called in some dusty corner of Word or Excell that no one still working there understands.

    Geoff

    --
    I think I see a trend here. Maybe for them it really would be easier to muzzle the entire internet than to produce p
  130. IE for the Mac: Why is it good for M$? by hearingaid · · Score: 2

    You raise an excellent point.

    I have a theory; it's only a theory, mind.

    I think the reason why M$ produces IE5 for the Mac (which I think is a better browser than Windows IE5 or 5.5; haven't used IE6 yet) is because of tradition.

    M$ historically has had a fairly strong presence in the Mac market; for a long time, for example, MS Word was mainly a Mac product. (At the time, Serious PC Owners used WordPerfect exclusively for word processing.) Many Mac users have a generally positive attitude towards M$.

    Even Mac users like me (an admitted /. reader :) have something of a fondness for some M$ programs, especially MS Office (I own Office 2001).

    I think they're doing it to keep Macheads happy, and thus to keep sales of Office fairly brisk.

    --

    my old sig used to be funny, but then slashcode ate it and now it's not funny anymore

  131. Re:Chars and bytes arrays are both the wrong solut by WNight · · Score: 2

    While you may be able to tell yourself that you don't have any obligation to support Win95, you're going to lose more customers (likely) by not supporting it than you would by supporting the Chinese language.

    Now, if you were writing an app with a lot of Chinese appeal this might not be the case.

    Or, if your app likely wouldn't work on old computers. (Doom 3, etc).

  132. Re:Chars and bytes arrays are both the wrong solut by rodgerd · · Score: 2

    I guess you didn't actually read the rest of Joel's comment. He's interesting in writing commercially successful software. Lots of people still use Win95.

  133. Re:Small chunk minds take longer to pick up by DunbarTheInept · · Score: 2

    I may not have communicated my intent clearly. The examples of comments you gave *are* the sorts of comments I like to see. They summarize at a level much more vague than the code. They explain why you wrote the code, not what it is doing in a detailed fashion. ("I wrote these next few lines in order to make it do foo.")

    --

    Don't label something "offtopic" unless you know the topic well enough to tell what's on topic.

  134. Re:API specs? by BlueWonder · · Score: 2

    you are performing an action on x, and then performing an inverse to that action

    No, unless the specs explicitly say that asc is the inverse of chr.

  135. Code does decay... by 24601 · · Score: 2, Interesting
    I do agree with you that a lot of developers spend time rewriting code not to make it better but rather just to make it different.

    However, I have to take issue with your position that rewriting code is bad because it throws out all the bug fixes that past programmers spent time and effort finding and fixing. I suggest reading an article in IEEE Transactions on Software Engineering 1/2001 issue. "Does Code Decay?" I would like to post a URL to that article .. but unfortunately it requires payment.

    Eick, et al's conclusion was that indeed code does decay. Their definition of decay was "A unit of code is decayed if it is harder to change than it should be, measured in terms of effort, interval, and quality." (italics theirs) The source of their data was the entire change history of a 15-year old real-time software system for telephone switches with over 100 million lines of code. What they did is measure the number of files that a single change had to modify. What Eick found was that once the initial development flurry of activity died off the probability of a change needing to result in modifying more than one file was less than 2%. Within five years the probability had increased to greater than 5%. It is Eick's contention that this is a sign of code decay because the number of "simple" changes was dropping and the number of complex, involved changes was increasing.

    Furthermore, they found that modules began to exert "gravitional" effects on nearby modules. This resulted in blending and stronger and stronger coupling of the modules.

    They listed a number of causes of decay:

    • Inappropriate Architecture
    • Violations of the original design principles (The program is required to do something that was not anticipated at design time)
    • Imprecise requirements
    • Time pressure
    • Inadequate programming tools
    • Organizational Environment (low morale, high turnover, poor inter-developer communication)
    • Programmer variability (some code that should only be touched by experts is mucked up by novices.)
    • Inadeqate change process
    Bad management of course will magnify the issue.

    To that list I would also add that as the field matures we learn better and better techniques. A very good example of this was the seachange that I saw when the use of exceptions were first introduced. I remember all the effort of trying to communicate an low-level error condition up to the calling chain. Error codes return values -- what a nightmare! Once I saw exceptions and understood them -- It made the quality of my code much, much better.

    So to Eick's list I would add general advances in the field result in the realization that what was previously considered "best" practice is no longer the case. This happens in every scientific field and computer coding is no different.