Babbage

Discussion in 'Off-Topic Discussion' started by clueless1, Jan 18, 2014.

  1. DIY-Dave

    DIY-Dave Gardener

    Joined:
    Jan 9, 2014
    Messages:
    733
    Gender:
    Male
    Location:
    Johannesburg, South Africa
    Ratings:
    +772
    I agree and we are talking about the same thing.
    The concept of infinite resolution and rounding is one that often crops up and trips up a lot of people.
     
  2. Kristen

    Kristen Under gardener

    Joined:
    Jul 22, 2006
    Messages:
    17,534
    Gender:
    Male
    Location:
    Suffolk, UK
    Ratings:
    +12,669
    All our stuff is database driven. We store the state in the DB, thus easy for us with just a Session ID (and we don't have to allow infinite RAM in IIS, or whatever, to store it). However we do delete several tens of millions of stale rows from the database each night!

    Yeah, all good points. The various versions of JS, and their foibles, put me right off. Except that I think that the code would be trivially simple because all our stuff is CMS templated - so:

    Thank you {YourName} for your Order #{OrderNumber} which will ship {ShipDate}

    but in practice we might have {YourName.Bold} and so on. So my thought was to convert the template (rather than having to parse it and/or substitute variables in-situ) into a list of text, fields, and actions:

    Text="Thank you ", Field=YourName, Action=Bold
    Text=" for your Order #", Field=OrderNumber, Action=None
    Text=" which will ship ", Field=ShipDate, Action=None

    and then I think the JS to render that would be trivial - well, no doubt if & when I do it I will find that there are Gotcha's ... but on the fact of it I think it will be trivial :)
     
    • Like Like x 1
    • shiney

      shiney President, Grumpy Old Men's Club Staff Member

      Joined:
      Jul 3, 2006
      Messages:
      64,876
      Gender:
      Male
      Occupation:
      Retired - Last Century!!!
      Location:
      Herts/Essex border. Zone 8b
      Ratings:
      +127,064
      :scratch: :what: :hate-shocked: :yikes: :gaah: :dunno: :loll:
       
      • Funny Funny x 1
      • DIY-Dave

        DIY-Dave Gardener

        Joined:
        Jan 9, 2014
        Messages:
        733
        Gender:
        Male
        Location:
        Johannesburg, South Africa
        Ratings:
        +772
        Haa haa, yes, who would have thought it in a gardening forum.:)
         
      • shiney

        shiney President, Grumpy Old Men's Club Staff Member

        Joined:
        Jul 3, 2006
        Messages:
        64,876
        Gender:
        Male
        Occupation:
        Retired - Last Century!!!
        Location:
        Herts/Essex border. Zone 8b
        Ratings:
        +127,064
        I'm the one that's usually accused of spouting a load of nonsense!!! :lunapic 130165696578242 5:
         
      • clueless1

        clueless1 member... yep, that's what I am:)

        Joined:
        Jan 8, 2008
        Messages:
        17,778
        Gender:
        Male
        Location:
        Here
        Ratings:
        +19,598
        Accused of?:loll:
         
      • Jack McHammocklashing

        Jack McHammocklashing Sludgemariner

        Joined:
        May 29, 2011
        Messages:
        4,436
        Gender:
        Male
        Occupation:
        Ex Civil Serpent
        Location:
        Fife Scotland
        Ratings:
        +7,429
        I have a problem with the Kiswasty Tombolo on the Ujackapivi, seems to hang when it gets to the Lujipat ?

        Jack McH
         
        • Agree Agree x 1
        • shiney

          shiney President, Grumpy Old Men's Club Staff Member

          Joined:
          Jul 3, 2006
          Messages:
          64,876
          Gender:
          Male
          Occupation:
          Retired - Last Century!!!
          Location:
          Herts/Essex border. Zone 8b
          Ratings:
          +127,064
          Yes, M'lud. But I never done it!
           
          • Funny Funny x 1

          Share This Page

          1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
            By continuing to use this site, you are consenting to our use of cookies.
            Dismiss Notice