Article View: news.software.nntp
Article #86077Re: Nothing is more configurable than Thunderbird.
From: Joshua Cranmer 🐧
Date: Tue, 08 Jul 2014 15:05
Date: Tue, 08 Jul 2014 15:05
52 lines
4535 bytes
4535 bytes
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. 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. 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? 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." > 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. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Technical Details
Message-ID:
<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!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!news.stack.nl!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>Show Full Headers
Complete Article Headers
Message-ID: <lph1bp$6p8$1@dont-email.me>
Subject: Re: Nothing is more configurable than Thunderbird.
Date: Tue, 08 Jul 2014 10:05:22 -0500
From: Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid>
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>
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!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!news.stack.nl!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: A noiseless patient Spider
Lines: 52
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Jul 2014 15:05:29 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
posting-host="8cedddb29338592f734c41b16a68fadc";
logging-data="6952"; mail-complaints-to="abuse@eternal-september.org";
posting-account="U2FsdGVkX1+c7JfO1aU9ci+txJ0Kuhw8Dneqhfk7chI="
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
In-Reply-To: <lpfo12$mnk$1@dont-email.me>
Cancel-Lock: sha1:5ipJCm3v8rTIHpaLglz9J3VbK2Q=