Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32767

Re: regexp 0 - 3 digits

Newsgroups comp.lang.javascript
Date 2017-03-15 06:28 -0700
References (2 earlier) <oaak7j$1ag0$1@csiph.com> <XnsA7395EE1BE64eejj99@194.109.6.166> <088ea623-b60c-4115-a558-f21251598f78@googlegroups.com> <7a8905e7-6fa0-41ac-8e90-0becb06e879c@googlegroups.com> <00bec821-02d1-4199-be22-a6090c4ae553@googlegroups.com>
Message-ID <b5145155-c503-4e89-bb51-3949b9f5a71f@googlegroups.com> (permalink)
Subject Re: regexp 0 - 3 digits
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


Julio Di Egidio wrote:
> Michael Haufe (TNO) wrote:
> > Julio Di Egidio wrote:
> > > Evertjan. wrote:
> > > 
> > > > /^\d\d:\d\d:\d\d,\d{0,3}/
> > > 
> > > FWIW, in a code review I'd object to that (a little bit, not much): the
> > > following I find (most) readable and expressive (plus I have introduced
> > > a little "fix", assuming that was the intended use):
> > > 
> > >   /^\d{2}:\d{2}:\d{2},\d{0,3}$/
> > > 
> > > Anyway, the code must be readable, not "writable".  As a rule of thumb,
> > > every keystroke saved now costs 1 more day every day in terms of
> > > technical dept... roughly, but precisely.
> > 
> > Let's not conflate succinctness with code-golf though.
> 
> Let's cut the bullshit.
> 
> Sorry for the typo.

Agreed: rules of thumb, keystrokes = days, scare-quote writability...

Too much vagueness for my tastes.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

regexp 0 - 3 digits Andrew Poulos <ap_prog@hotmail.com> - 2017-03-15 14:39 +1100
  Re: regexp 0 - 3 digits JJ <jj4public@vfemail.net> - 2017-03-15 10:55 +0700
    Re: regexp 0 - 3 digits Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-03-15 06:42 +0100
      Re: regexp 0 - 3 digits "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-15 09:19 +0100
        Re: regexp 0 - 3 digits Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-03-15 09:29 +0100
          Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 03:01 -0700
          Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 05:39 -0700
        Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 05:20 -0700
          Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 05:43 -0700
            Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 05:48 -0700
              Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 06:28 -0700
                Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 06:43 -0700
                Re: regexp 0 - 3 digits Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-03-15 14:06 +0000
                Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 07:56 -0700
                Re: regexp 0 - 3 digits Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-03-15 16:05 +0000
                Re: regexp 0 - 3 digits Julio Di Egidio <julio@diegidio.name> - 2017-03-15 21:12 -0700
                Re: regexp 0 - 3 digits Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-03-16 11:04 +0000
                Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 08:12 -0700
  Re: regexp 0 - 3 digits "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-15 05:45 -0700
  Re: regexp 0 - 3 digits Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-15 11:54 -0700
    Re: regexp 0 - 3 digits Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-04-03 19:59 +0100
      Re: regexp 0 - 3 digits "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-04 09:38 +0200
        Re: regexp 0 - 3 digits Dr J R Stockton <J.R.Stockton@physics.org> - 2017-04-04 06:20 -0700

csiph-web