Article View: news.software.nntp
Article #86078Re: Nothing is more configurable than Thunderbird.
From: Darrin Doc O'Leary
Date: Tue, 08 Jul 2014 22:19
Date: Tue, 08 Jul 2014 22:19
98 lines
6987 bytes
6987 bytes
For your reference, records indicate that <Pidgeot18@verizon.invalid> wrote: > On 7/7/2014 10:20 PM, Darrin "Doc" O'Leary wrote: > > My concrete example regarding Usenet is to point out there is no libnntp > > that is used by multiple newsreaders and/or to enhance external software > > like cURL. Everyone seems to run their projects in ways that would flunk > > a CS junior right out of school. Any suggestion that things could be > > different, that everyone might benefit from a *design* discussion, is > > most often met with some “brogrammer” telling you to shut up and just > > commit code. > > I think often times it's not that it wasn't designed. It's that the > original component was designed, no one wrote the guidelines of the > design anywhere, and as subsequent patches and fixes were made, people > broke abstractions in the design to get code done. And sometimes the > original designer leaves and you have to piece together why something > was designed by piecing together all the history you can find. Well, sure. But that speaks mainly towards individual incompetence, whereas my larger point is that it is organization incompetence that *allows* things to play out as you describe. Things like the Linux kernel seem to be handled very professionally, but you don’t have to go very far to see the obvious flaws in how things like OpenSSL or Thunderbird or most other projects are managed. > To make it concrete, here are several problems with a simple "libnntp" > library. I'll assume that it's C or C++--well C, since it's easier to > use C from C++ then the other away around, and let's annoy all the > potential contributors who might want to use RAII features of C++. It > needs to be cross-platform of course, and since C's standard library is > shitty, you have to decide if you want to use a portability layer for > sockets or roll your own. 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. The main problems remains that people who write newsreaders seem unable to write modular code, and so what *should* be thought of isolated functionality (NNTP communication, however implemented) instead is a pile of spaghetti that is intertwined with all the newsreader’s other code. Hell, a look at just Thunderbird’s nsNNTPProtocol.cpp shows over 50 includes, with another dozen in the .h file! I’ve got better things to do than try to untangle that mess. > How are you reading from those sockets? Blocking reads? Then it needs to > be thread-safe (and thus more portability headaches), so it can run off > main thread. Perhaps you're doing asynchronous I/O--even more > portability headaches and now you have the event loop conundrum. > > Perhaps we might consider SSL support. That requires choosing an SSL > library. Of course, if you choose the wrong one, it makes headaches for > clients that use you, so you have to more or less try to support all of > them. But then what do you want to do on SSL certificate errors? Which > SSL root certificate list do you even use? You’re making my point for me. That’s the stuff that all needs to be worked out by having discussions *long* before you start coding. But the approach for open source is more often than not all about taking whatever code someone manages to crank out and calling it done. > Supporting flexibility for some clients that actually care about it > requires complicating the API--you have to set up lots of callbacks so > that the application can figure out how to handle various kinds of > errors. And that starts complicating the API, to the point where some > upstart neophyte asks "Gee, why is this so complicated for a simple > little library? Who designed this trash? I'll just do it myself." That’s only true if the people doing the design simply aren’t very good at their job. NNTP is a great example of this, because it is written to allow for easy extensions. But if you go looking at the source for just about every newsreader, what you most often see is all supported response codes jammed into one file, often handled by a big ol’ case statement. What complicates the API is idiots who try to put a wrapper around every single possible NNTP operation rather than implementing the generic command-response engine that the RFC essentially outlines. > > Mainly because the people in charge aren’t doing a very good job. > > No, actually. It's because what I wanted to do was antithetical to the > design of the code--and as much as I may disagree with that design, I > can see why the original developers designed it as they did. I can see why they did it, too. I stated as much. They did such a poor job they would have been fired in any other situation. Yet somehow they are cheered on when their bad designs and bad code comes in the form of open source. It’s a race to the bottom that I’m not going to participate in. -- "Well, here I am." Jubal Early, Objects in Space, Firefly
Technical Details
Message-ID:
<lphqpm$467$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!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!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>Show Full Headers
Complete Article Headers
Message-ID: <lphqpm$467$1@dont-email.me>
Subject: Re: Nothing is more configurable than Thunderbird.
Date: Tue, 08 Jul 2014 22:19:34 +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>
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!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!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: 98
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Jul 2014 22:19:34 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
posting-host="faf2f63d449c382d96c1eebd3c09237b";
logging-data="4295"; mail-complaints-to="abuse@eternal-september.org";
posting-account="U2FsdGVkX19zwN48YaNlUTXQITZCt2LbM5Cv8dpQtj8="
User-Agent: com.subsume.NNTP/1.0.0
Cancel-Lock: sha1:/RGlr9WjUBiFl+HE6Frz3uPjbOI=