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


Groups > comp.databases.mysql > #6043

Re: Design-stage advice and opinions welcomed

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.databases.mysql
Subject Re: Design-stage advice and opinions welcomed
Date 2015-09-25 04:57 +0200
Organization PointedEars Software (PES)
Message-ID <1989121.8MaefjtRha@PointedEars.de> (permalink)
References <d6i203Frj62U1@mid.individual.net> <1475144.GkhjcImej9@PointedEars.de> <d6j7f1F7e8uU1@mid.individual.net>

Show all headers | View raw


Derek Turner wrote:

> On Thu, 24 Sep 2015 22:58:49 +0200, Thomas 'PointedEars' Lahn wrote:
>> Still, simply storing trivial strings as dates is not a viable approach
>> for an event calendar.  Can you think of a reason why
> 
> No, I can't. it seems to me to be a excellent and robust way of handling
> this situation. ISTM that what I'm aiming for is not a set-in-stone
> calendar but a way of predicting what will happen, all other things being
> equal. […] Seriously, what's the problem? genuine question, I'm not doing
> a Richard.

In addition to what I said in another paragraph: You will have to parse 
those strings in order to select the algorithm for computing the future 
dates from the previous one.

It is much better to use language-independent codes for storing data such as 
“first Tuesday”; for example number=1, weekday=2, repeat=TRUE.  From that 
you can either construct a string for strtotime(), or use another algorithm 
to arrive at the dates (it is easy to determine the date of the first of a 
certain weekday in a month even without strtotime()).

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.databases.mysql | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Design-stage advice and opinions welcomed Derek Turner <frderek@suremail.je> - 2015-09-24 10:35 +0000
  Re: Design-stage advice and opinions welcomed Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-24 22:58 +0200
    Re: Design-stage advice and opinions welcomed Derek Turner <frderek@suremail.je> - 2015-09-24 21:15 +0000
      Re: Design-stage advice and opinions welcomed Jerry Stuckle <jstucklex@attglobal.net> - 2015-09-24 17:53 -0400
      Re: Design-stage advice and opinions welcomed Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-25 04:57 +0200
  Re: Design-stage advice and opinions welcomed Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2015-09-25 13:15 +1000
    Re: Design-stage advice and opinions welcomed gordonb.lizck@burditt.org (Gordon Burditt) - 2015-09-25 17:38 -0500
      Re: Design-stage advice and opinions welcomed Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-26 15:16 +0200
      Re: Design-stage advice and opinions welcomed Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2015-09-28 09:46 +1000
        Re: Design-stage advice and opinions welcomed Derek Turner <frderek@suremail.je> - 2015-09-28 03:34 +0000
      Re: Design-stage advice and opinions welcomed Derek Turner <frderek@suremail.je> - 2015-09-28 03:27 +0000
        Re: Design-stage advice and opinions welcomed Jerry Stuckle <jstucklex@attglobal.net> - 2015-09-27 23:53 -0400
          Re: Design-stage advice and opinions welcomed Derek Turner <frderek@suremail.je> - 2015-09-28 10:46 +0000
            Re: Design-stage advice and opinions welcomed The Natural Philosopher <tnp@invalid.invalid> - 2015-09-28 12:57 +0100
            Re: Design-stage advice and opinions welcomed Jerry Stuckle <jstucklex@attglobal.net> - 2015-09-28 09:41 -0400
              Re: Design-stage advice and opinions welcomed bill <william@TechServSys.com> - 2015-09-29 07:14 -0400

csiph-web