Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default a bone to pick

    as a strong CF advocate, take this as a friendly gripe. and if someone more
    experienced can explain why this 'problem' is actually not a problem, i'd
    appreciate it.

    the issue, generalized, is that certain cf tags will work differently
    depending on which attributes are included. (note: not the attribute value
    which can always be dynamically evaluated).

    EG 1, <cfquery...> when running queries of queries you cannot include the
    datasource attribute.
    EG 2 <cfchart...> in some instances it doesn't make sense to include a scaleTo
    attribute, but the attribute won't take a null value or empty string or the
    like without throwing an error.

    there are probably more examples of this, but the problem should be clear
    enough: you end up with redundant code having to fork between the tags (one
    with the pesky attribute, one without), which leads to extra maintainence and
    bugs and less modularity and is pretty much antitheitcal to the spirit of OO
    code, a spirit that CF has been embracing with gusto.

    that said, i'm wondering what solutions there are or could be to this problem.
    perhaps a reserved word that, when an attribute is set to it, tells the
    compiler to ignore it. OR, a way to dynamically create tags from strings--
    something like a delayed runtime.

    thoughts? insults? harangues?


    JJBBDD Guest

  2. Similar Questions and Discussions

    1. Change the length of a bone via Lingo
      I have been trying to find out if it is possible to alter the length of a bone with Lingo. All I've been able to find it how to rotate the bone but...
    2. Parent/Bone
      Not that I bone my parents but, Is it possible to have a bone as a parent to a model ? Im using lightwave and when I attempt to do this and...
    3. bone[boneid].transform
      I'm unable to change transform of a bone. I do it in the next way: boneid = mymodel.resource.getBoneID(validname) bonetransform =...
    4. bone contstraints no longer work (did they ever?)
      I pulled up an old IK robot arm project made by David Cowperthwaite and attempted to make an exe and/or Shockwave version, but it doesn't seem to...
    5. joining a model to a bone in Lingo
      Hello there. I have a bone-animation (3ds-max) - of a chicken, no less :-) - and I would like to join a hat from another 3d cast member to the...
  3. #2

    Default Re: a bone to pick

    I agree. Objects, including CF tags, should ignore attributes if they are not
    used or not appropriate.
    Isn't this also the paradigm for HTML?

    The thing to do is to [url]http://www.macromedia.com/go/wish/[/url] when you see
    something like this.


    MikerRoo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139