Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Gene Heskett Newsgroups: comp.lang.python Subject: Re: WP-A: A New URL Shortener Date: Tue, 15 Mar 2016 23:34:25 -0400 Lines: 66 Message-ID: References: <1784840.LWdhd0IYBL@PointedEars.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de vvsQHEDP+9l8GQaLXAK0cQtP9JkqdPrd57jSxf71b3NA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; '16,': 0.03; 'broken': 0.03; 'anyway.': 0.04; 'thats': 0.07; 'domains,': 0.09; 'length.': 0.09; 'subdir': 0.09; 'exception': 0.13; 'wed,': 0.15; '(http)': 0.16; '2016': 0.16; '[2].': 0.16; 'count.': 0.16; 'imo,': 0.16; 'length,': 0.16; 'manageable': 0.16; 'measured': 0.16; 'middle,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reversed': 0.16; 'soap,': 0.16; 'subdirs': 0.16; 'subject:URL': 0.16; 'url.': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'typical': 0.18; '>>>': 0.20; 'fix': 0.21; 'delay': 0.22; 'space.': 0.22; 'cheers,': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'requests': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'example': 0.26; 'chris': 0.26; "skip:' 10": 0.28; 'it\xe2\x80\x99s': 0.29; 'race,': 0.29; 'windows,': 0.29; 'twitter:': 0.30; 'code': 0.30; 'putting': 0.30; 'probably': 0.31; 'software,': 0.32; 'related': 0.32; 'maybe': 0.33; 'http': 0.33; 'shorter': 0.33; 'charge': 0.33; 'handle': 0.34; 'that,': 0.34; 'ones': 0.35; 'machines': 0.35; 'expected': 0.35; 'but': 0.36; 'too': 0.36; 'should': 0.36; 'instead': 0.36; 'there': 0.36; 'url:non-standard http port': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'difference': 0.38; 'received:66': 0.38; 'several': 0.38; 'someone': 0.38; 'data': 0.39; 'whatever': 0.39; 'submit': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'space': 0.40; 'some': 0.40; 'care': 0.60; 'your': 0.60; 'header :Message-Id:1': 0.61; 'caused': 0.61; 'clients': 0.61; 'per': 0.62; 'needing': 0.63; 'pays': 0.63; 'thomas': 0.63; 'more': 0.63; 'march': 0.64; 'due': 0.65; 'capable': 0.65; 'limit': 0.65; 'mar': 0.65; 'fort': 0.66; 'night,': 0.66; "they're": 0.66; 'below.': 0.66; 'cut': 0.67; 'e-mail.': 0.67; 'media': 0.67; 'internet': 0.70; 'skip:\xe2 10': 0.70; 'received:204': 0.75; '*no': 0.84; '81,': 0.84; 'bandwidth,': 0.84; 'hour,': 0.84; 'inexpensive.': 0.84; "that'll": 0.84; 'urls,': 0.91 X-Spam-Status: No, score=1.1 required=5.0 X-Spam-Level: + User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748) In-Reply-To: <1784840.LWdhd0IYBL@PointedEars.de> X-KMail-QuotePrefix: > Content-Disposition: inline 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:104984 On Tuesday 15 March 2016 22:46:44 Thomas 'PointedEars' Lahn wrote: > Gene Heskett wrote: > > On Tuesday 15 March 2016 19:55:52 Chris Angelico wrote: > >> On Wed, Mar 16, 2016 at 10:38 AM, Thomas 'PointedEars' Lahn > >> > >> > And as for second-level domains, consider for example =E2=80=9Ct.c= =E2=80=9D > >> > instead of =E2=80=9Ctwitter.com=E2=80=9D as part of the short URI. > >> > >> That'll work only for the ones that you code in specifically, and > >> that's only shortening your URL by 8 characters. A typical URL > >> needing shortening is over 80 characters - maybe several hundred. > >> You need to cut that down to a manageable length. That > >> fundamentally cannot be reversed without readding information. > > > > And I submit that putting someone in charge of the drives > > organization, and the database on that drive that the url has to dig > > thru, can make a huge difference in the length of the resultant url. > > Maybe it=E2=80=99s just the late/early hour, but you=E2=80=99ve just lost= me. > Please elaborate. > Elaborate? Unless the database is expected to handle the whole human=20 race, what 9 billion of us?, a subdir name longer than 8 chars is wasted=20 space. And we regularly see them much longer that that, with a friggin=20 regex in the middle, using 6 to 15 subdirs if what I read is broken=20 down. Thats assinine IMO, and if because they cannot do it right for a=20 platform other than windows, it doesn't work for me, then I don't care=20 if it links to the g-code (RS-274-D) that would make my machines carve=20 me a key to Fort Knox. If these ID10T's want me to see whatever the=20 heck it is they're are peddling to make me last all night, they WILL fix=20 it. Heck, at 81, and diabetic for almost 30 years, nothing they can=20 sell me will fix it anyway. :( > >> >>> And with the exception of Twitter-ish sites that place a limit > >> >>> on message length, there really is *no need* for shorter URIs > >> >>> nowadays. (HTTP) clients and servers are capable of processing > >> >>> really long ones [1]; electronic communications media and > >> >>> related software, too [2]. And data storage space as well as > >> >>> data transmission has become exceptionally inexpensive. A few > >> >>> less bytes there do not count. > > > > They may not count for that much in terms of what the user pays for > > bandwidth, but see below. And some users are probably still paying > > for their internet access by the minute in some locales. > > So they should loathe more the overhead measured in *kibibytes* and > delay measured in *seconds* caused by additional HTTP requests due to > redirection from =E2=80=9Cshort URLs=E2=80=9D than the few more *bytes* i= n longer, > original URLs, yes? > > -- > PointedEars > > Twitter: @PointedEars2 > Please do not cc me. / Bitte keine Kopien per E-Mail. Cheers, Gene Heskett =2D-=20 "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." =2DEd Howdershelt (Author) Genes Web page