Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: WP-A: A New URL Shortener Date: Wed, 16 Mar 2016 10:48:18 +1100 Lines: 51 Message-ID: References: <17785955.P1rOlOtRcj@PointedEars.de> <56E89D6B.7070705@lucidity.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de p/MQsmuj4WEHrI7ZLa3b6gsm6DkrBb/Xk2S6h/CXF8RA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'offline': 0.03; '16,': 0.03; 'exercise': 0.03; 'resulting': 0.04; 'great.': 0.07; 'cc:addr:python-list': 0.09; 'agree,': 0.09; 'oh,': 0.09; 'part,': 0.09; 'yeah,': 0.09; 'wed,': 0.15; '2016': 0.16; 'agree.': 0.16; 'chris,': 0.16; 'erik': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'list)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:URL': 0.16; 'substitutes': 0.16; 'such,': 0.16; 'weighed': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'ascii': 0.22; 'controlled': 0.22; 'am,': 0.23; 'somewhere': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'complain': 0.29; 'convert': 0.29; 'there.': 0.30; "i'm": 0.30; 'that.': 0.30; 'code': 0.30; "can't": 0.32; 'embedded': 0.32; 'maybe': 0.33; 'problem': 0.33; 'source': 0.33; 'third': 0.33; 'usually': 0.33; 'suddenly': 0.33; 'editor': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'text.': 0.35; 'unicode': 0.35; 'something': 0.35; 'level': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'totally': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'thought': 0.37; 'things': 0.38; 'integration': 0.38; 'received:209': 0.38; 'anything': 0.38; 'shared': 0.38; 'goes': 0.39; 'sure': 0.39; "didn't": 0.39; 'easily': 0.39; 'subject:-': 0.39; 'still': 0.40; 'some': 0.40; 'software': 0.40; 'your': 0.60; 'skip:u 10': 0.61; 'different': 0.63; 'mar': 0.65; 'benefit': 0.66; 'developed': 0.66; 'services': 0.67; 'absolutely.': 0.84; 'chrisa': 0.84; 'dead.': 0.84; 'excellent.': 0.84; 'inherent': 0.84; 'offline,': 0.84; 'to:none': 0.91; 'different.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=3UnnPASo/yE7vvhrSMwyHdnNtIdmjKu1kPy55IED2hk=; b=dr20DF2sx6D2x4Z2KsaSQfTQStFdbnHRckNlOFCbW7fd6bzKvRDzeinj8Rxfdpr4pl MIsUdml3Ku5j11qliOI6KnkLVlQD3T1hXdUYYM9LIer6iYoC0T40oDujILXsGTltmAYg mgl5CIyM21Bk8rWCecPCbTeRpklMDJO/sDkcMPFPAsBzGhqql5yuXgWWvcu/IQwLs1xG hiLqvz5vK2jDOqKkHahEMGSdwRb87qCws0fdF6/8SFvcecjnri95Vi6LnJvKfyAmUVOD fHCYmzeUPFPj0TEGZTqmucRjDls91ExZ+prAZoU2I5nuu83Sy5kBvJannNwvOI0egrDq wYjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=3UnnPASo/yE7vvhrSMwyHdnNtIdmjKu1kPy55IED2hk=; b=jvSpnqprYOaDl0rI2NK250uMdi2ulb3qJg/P4YcW3UWOsX33AkyHa0mSvS+dq1KpBs /kO//1if2hQcEYnUNy5Tbwbu1wXSUBp+rgEEjzlZuNpqNrBF6S7sLaLqZiupO0Mn2kox dSHFPWgu/CA13oSYuzxZSPij86zSwIiPqL9DWpMdkfc0s65VboXLY2MoWh1gjkNwpBrf vUxdSKXyni+nWygLItq4p0zTB1tz3ag7jcS2Q2PhRkccnsjQtakXdguhi/3RYAHsW33N X3BJb5y4+JxGAgf8DK6PWi2IardkRd8pSK/K1dnZesK67ZeEmvO8w67eRcK2+4JAuH9L nWVQ== X-Gm-Message-State: AD7BkJJu/MDzxZwsqtZ8uM3aLdjrvE4QIeEOEJzeSbyxLLvh+gzEbfEqORLsWTREiWtIwTkgry/xPScXoaY6VQ== X-Received: by 10.25.78.137 with SMTP id c131mr195836lfb.21.1458085698677; Tue, 15 Mar 2016 16:48:18 -0700 (PDT) In-Reply-To: <56E89D6B.7070705@lucidity.plus.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104968 On Wed, Mar 16, 2016 at 10:40 AM, Erik wrote: > Hi Chris, > > On 15/03/16 23:16, Chris Angelico wrote: >> >> So URL shorteners are invaluable tools. > > > Perhaps, and in the specific - transient - use-cases you describe that's > fine. The problem I have with them is that they are a level of indirection > controlled by a third party. If the source (let's say this list) has a > message containing a link to something on the target which is still > available via a "shortened" URL, then if the shortening service goes > offline, the link is dead. Even though the target is still there. > > People complain about the use of pastebin in this list for showing code > fragments. It's the same thing - one URL shortening (indirection) service > goes offline and a ton of links are suddenly silenced. It's like a > disturbance in the force ;) I agree, it's a risk. Any indirection adds that. So the benefit has to be weighed against this inherent cost. > FWIW, I also have an issue with services that convert your ASCII text into > unicode such that the resulting glyphs are still things a human reader will > understand as substitutes for the original text but which can't be easily > searched/grepped. Oh, I totally agree. Your text should be your text. >> However, I'm not sure what >> this one is that others aren't. > > > Vinicius didn't say his code was anything different. > > He said he _WANTED_ to do something different _BUT_ realised ideas are hard > to come by, _SO_ he developed some URL-shortening software and then shared > it. Yeah, but there's usually _something_ different :) > I see it as a learning exercise on his part, and that's great. Absolutely. As such, it's excellent. I often like to make a small change when I reimplement, though - something that I thought was ill-designed in the original, or maybe just a simple thing of integration somewhere (eg a little text editor embedded in a larger program). ChrisA