Article View: news.software.nntp
Article #86090Re: Nothing is more configurable than Thunderbird.
From: Darrin Doc O'Leary
Date: Wed, 09 Jul 2014 16:29
Date: Wed, 09 Jul 2014 16:29
135 lines
8809 bytes
8809 bytes
For your reference, records indicate that <Pidgeot18@verizon.invalid> wrote: > On 7/8/2014 5:19 PM, Darrin "Doc" O'Leary wrote: > > There are plenty of other higher-level networking libraries that can be > > referenced to determine a good way to go. And if that is *not* the case, > > if even *those* projects are mismanaged such that they don’t stand on > > each other’s shoulders, the people managing them should be given the boot > > until they learn how professional software development gets done. > > This is a great example of failing to appreciate the original design. No, it’s a great example of failing to update a design and implementation as the code base grew. Even in my own code I can see that my “original design” is not fully future-proof. But, as a professional, I know that what that means is that I have a bit of refactoring to do in the future. What I’m *not* going to do is release it as open source and pretend that developers are supposed to respect that first system. > If > we're referring to how horrible Thunderbird's NNTP code is, first keep > in mind that it was designed at least as far back as 1998 and possibly > earlier. Quite frankly, the body of higher-level networking libraries > was far sparser in those days, and what has been considered good > practice for developing networking has changed dramatically in the > intervening 16 years. And had the code been written with sufficient modularity, they would have been able to swap out the lower level changes without it affecting the higher level interface. If the design it right, a firm line gets drawn between the NNTP command-response cycle and the actual way the data gets transferred. There will be layers above and below that that are abstractly as independent. > Oh, and this code was written by paid professional > software developers. Maybe they were paid, but I see no evidence of them being in any way professional. > You criticize the code for not being modular. The problem is that the > "mess of headers" is in large part a result of it being modular and > using modular code. You clearly only have a surface understanding of what modularity means when it comes to larger code bases. To scale, you need a fractal approach, which would involve segmenting large blocks of tightly coupled coded into their own libraries, and then having one master header to include all that related functionality. That doesn’t escape the Thunderbird developers completely, because there appear to be plenty of Mozilla and other libraries linked in, but it certainly appears to have escaped anyone who wrote the NNTP parts I looked at. > You have headers for basic ADTs like std::vector or > std::shared_ptr [except using custom variants since this code predates > the STL being remotely usable]. There's the underlying network API to > read and write to the socket, as well as handle things like SSL or > proxies transparently. There's the line buffer for the network stream, > or the logger to log salient data for debugging. The callbacks for > knowing what username and password to use if prompted. Nobody looking at the code today care that much about the historical reasons for it being junk. The point is that nobody involved today seems to have any interest in refactoring the code to make it better. I care about custom STL excuses from 1998 about as much as I care to hear excuses from OpenSSL developer on why they need custom memory allocators. Same goes with most of the other junk code. The point of a good design is that if you *must* include sub-standard code at some point, it is done in a way that makes it easy to replace it when something better comes along. > It may not be the best design, it may not > even be a good design, but it is a clear and intentional design. No, it’s a rookie just cranking out a kitchen sink solution. What you describe as intent is simply sheer incompetence. It speaks to a lack of any serious thought on how the system *should* function, and is very much in line with the brogrammer approach of just throwing code into the repository. > How can you work out all of the problems when some of the problems don't > exist yet? How would you design your code to support SSL if you predate > SSL? I don't deny that new code needs to have detailed discussions, but > it is foolish to think that you could conceive of every possible > development for a project that might live for 20 or 30 years. You’re again completely missing the point of a modular design. If I can abstract the networking bits away from the rest of the code, I don’t have to *care* about SSL (or whatever) coming along in the future. Sure, some parts of the code will have to change to take advantage of it, but if the design was done right, the changes are limited to a small part of one API and nobody else using higher-level functions needs to be bothered. Again, NNTP extensions make for a great test case. There is no need any developer should have to look at any existing core source code to implement one, but I have yet to see a single newsreaders that was built with the expectation that NNTP response codes weren’t all just some pretty little predefined things that can all be bundled up into a single header full of #define statement. > The people who wrote that code were paid to write it. It is, quite > frankly, no better or worse an example of "professional software > development" than other examples I'm aware of. It’s only the weakest definition of professionalism to make it about cashing a paycheck. > But to go so far as to presume > that the design is so horrid that the developers should have been fired > is a step too far: understanding the rationale behind the design > requires examining a lot more evidence in the absence of detailed design > notes (which, quite frankly, appear to be usually lacking in both > "professional" development environments and open source). Too far or not, I don’t know what other solution you’d propose other than to take away their paycheck; that is your sum definition of professional, after all. The point remains that *someone* is allowing bad practices to ruin the project. If it’s not the coders, it’s the people who direct the coders. Ideally, yes, they’d be open to external prompts to change to better practices. But, like I said, that doesn’t seem to be the MO of most open source projects I’ve looked into. So, no, nobody *has* to be fired. But things have to change if you expect improvements, and something has to be done about the people who are both blocking the change and the people who allowed the system to become what it has become. Otherwise, you can’t blame any *actual* professionals for not wanting to get involved with nightmare projects (and certainly not to *volunteer* to clean up the messes of some paid flunky). -- "Well, here I am." Jubal Early, Objects in Space, Firefly
Technical Details
Message-ID:
<lpjqkv$oqc$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<1lobwpm.9nuqqn4kgmktN%snipe@spambin.fsnet.co.uk> <lpagko$ksj$1@ news.albasani.net> <lpai46$s37$1@dont-email.me> <lpajoi$4pd$1@news.albasani .net> <lpamgk$eja$1@dont-email.me> <lpbmj2$s63$1@news.albasani.net> < Jeff-Relf.Me@Jul.6{15.07.Seattle.2014}> <lpdqsi$plc$4@news.albasani.net> <lpep6v$ii6$1@dont-email.me> <lpf3mv$1o7$1@dont-email.me> <lpfhhq$gld$1@dont-email.me> <lpfo12$mnk$1@dont-email.me> <lph1bp$6p8$1@dont-email.me> <lphqpm$467$1@dont-email.me> <lpi2h1$fv2$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <lpjqkv$oqc$1@dont-email.me>
Subject: Re: Nothing is more configurable than Thunderbird.
Date: Wed, 09 Jul 2014 16:29:19 +0000
From: Darrin "Doc" O'Leary <droleary@3q2014.subsume.com>
References: <1lobwpm.9nuqqn4kgmktN%snipe@spambin.fsnet.co.uk> <lpagko$ksj$1@ news.albasani.net> <lpai46$s37$1@dont-email.me> <lpajoi$4pd$1@news.albasani .net> <lpamgk$eja$1@dont-email.me> <lpbmj2$s63$1@news.albasani.net> < Jeff-Relf.Me@Jul.6{15.07.Seattle.2014}> <lpdqsi$plc$4@news.albasani.net> <lpep6v$ii6$1@dont-email.me> <lpf3mv$1o7$1@dont-email.me> <lpfhhq$gld$1@dont-email.me> <lpfo12$mnk$1@dont-email.me> <lph1bp$6p8$1@dont-email.me> <lphqpm$467$1@dont-email.me> <lpi2h1$fv2$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: alt.free.newsservers,news.software.nntp,alt.os.linux
Organization: Subsume Technologies, Inc.
Lines: 135
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Jul 2014 16:29:19 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
posting-host="faf2f63d449c382d96c1eebd3c09237b";
logging-data="25420"; mail-complaints-to="abuse@eternal-september.org";
posting-account="U2FsdGVkX1/luPgUq/kuugTh4F1b20gdtf5UzgI8D3o="
User-Agent: com.subsume.NNTP/1.0.0
Cancel-Lock: sha1:p6wZJoRBlJpvf621msHBvz2H9mg=