there is no such thing as "extra security code", the more codes, the more holes.
Okay, there is a slight correlation in this regard purely because the larger it gets, the harder it becomes to maintain.
Please don't think I'm trying to pass any sort of judgement, I am merely trying to understand why OS X is so much better (faster on same hardware, more secure, prettier etc etc) than Vista and yet "appears" to have many more lines of code. This is doubly strange given that OS X has less baggage (ie. ground up rebuild from NeXTStep) whereas Windows has roots which stretch back to the 1980's.
craig, i don't think you get my point

You absolutely can't compare anything about OS X to Vista by only lines of code. No matter what you do. Won't mean anything at all in that respect. If you would like to, doing this is going down the wrong path.
And actually, Vista's based on NT, not DOS...so no, the roots stretch to the mid 90s or so, actually newer than nextstep.
Also, what really freaked me out with Windows is the way it went from 20m lines to 40m lines between 2000 and XP. That's a lot of code to churn out for a single increment. As I mentioned earlier, I recall Sun boasting about the fact Solaris had only gone from something like 10m lines to 12m lines between their corresponding releases. To me this made a lot of sense from a stability point of view.
I respectfully disagree. Not only did XP have a gazillion more versions than 2k (e.g. tablet pc, mce, home, pro, ia64, x64, embedded, FLP...), XP was meant for everything and everyone under the sun, particularly consumers with their myriad and seemingly infinte combinations of hardware and software configs, while 2k was business/server oriented (Me was the "home" version of 2k on msdos). Even if LOC actually meant something in this case, it would only be to show just how much 2k and xp are different. Sun can boast all they want about a trivial number, but again,
can't be compared until you know things in excess detail, like what languages were used, what kind of method of counting LOC was used, how their particular development model worked...
I'm just trying to understand it because I have in the past mocked Microsoft for bloat and I'm not quite sure how to defend OS X in this regard having seen the 86m lines figure.
Unless OS X and Vista are identical, I repeat myself: this isn't the way to go. Even then, unless you had direct access to the entire codebases of both OSs and all the programs that come bundled with them and had the herculean amount of time to analyze both of them, you wouldn't know if the extra lines of code were there just because some noob of a programmer wrote them and didn't know better, or they're like that for optimization purposes...something like, say, loop unrolling where one single loop could go from 2 lines to 10 for the sake of using up less resources and speeding up performance.
In general, LOC is just intended to convey a sense of scale....
Okay, another concession as long as you're not comparing a 1000-line app to a 2000-line app
In some perverse dev shops, LOC is also used to rate programmer effectiveness. The higher the LOC, the higher the bonus.
Ridiculous
Yes that's a fair point, with open source, peer review certainly should make for cleaner more readable code which might take a few more lines than terse, opaque code.
Peer review etc. are not uncommon with closed source apps..if anything it's similar enough in a lot of places. Pair programming, unit testing,...everyone does it, doesn't matter if they're being paid for it or not.
That's not to say that sometimes one has to write ****** code anyway (hey we've all done it...) because there just isn't a nice way around it, so instead it'll be well documented (hopefully)
What about commenting? That would account for code. If you made a program that had 5000 lines of commenting and only 100 lines of code it would compile to be very small compared to 5000 lines of code and 100 lines of commenting.
As useful as good comments can be, I doubt they count towards most LOC counts cause the stuff added on to lots of the files, like licensing/author/documentation/info, is generally a supplement to the code
