Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. How to use "For Each" tag loop on each object

How to use "For Each" tag loop on each object

Scheduled Pinned Locked Moved Help and Support
116 Posts 3 Posters 73.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • iTap DevelopmentI iTap Development

    @Deeeds I know you HATE to share projects, but you wanna this time?
    Also, why are you setting id’s this way? Like I said, look at how I did it in my project.

    D Offline
    D Offline
    Deeeds
    wrote on last edited by
    #7

    @iTap-Development As to "why am I setting IDs this way?

    Can you tell me why your way is better?

    I've explained why I think my way is better.

    1. Easy to comprehend and articulate and do (SIMPLE)
    2. Uses the already available index that's part of spawning
    3. Instant, no need to build in waits for things to be set/found/done

    Your way, in simple words, why is it better?

    You haven't explained how or why you set up things the way you do. And I'm really not fond of waiting ten minutes for my project to "save" just to see something that I might not understand, may not be better and you haven't suggested is better, or why.

    You haven't even made a case for why my way is bad..

    D 1 Reply Last reply
    0
    • D Deeeds

      @iTap-Development As to "why am I setting IDs this way?

      Can you tell me why your way is better?

      I've explained why I think my way is better.

      1. Easy to comprehend and articulate and do (SIMPLE)
      2. Uses the already available index that's part of spawning
      3. Instant, no need to build in waits for things to be set/found/done

      Your way, in simple words, why is it better?

      You haven't explained how or why you set up things the way you do. And I'm really not fond of waiting ten minutes for my project to "save" just to see something that I might not understand, may not be better and you haven't suggested is better, or why.

      You haven't even made a case for why my way is bad..

      D Offline
      D Offline
      Deeeds
      wrote on last edited by Deeeds
      #8

      @iTap-Development

      The last remaining potential problems?

      I was doing the For Each loop on a UI element (a label) and thought this might be a problem, so I put it on a normal object. No change.

      I was searching for tags on complex objects that do a lot of moving. Put tags on simple objects and removed the complex ones.

      But no, that's not it.

      It's the ******* (curse word edited out, use your imagination, add rage... then...) ARRAY modifier of type VALUE!!!

      In the entire rest of the known universe, that's what we're doing. Modifying an Array of Type Value. It's an array that stores VALUES!!!

      Meaning... it's an array of type Value!!!!

      WTF*

      *The decision behind this naming convention was probably focus group tested

      Bah.

      I have read the documentation again, and I still cannot figure out what an Array of Type Value actually is if it isn't an array of type value. Something to do with JSON values, but I'm not sure JSON means what they think it means, or what their intention was with this absolutely ridiculous nomenclature.

      iTap DevelopmentI D 3 Replies Last reply
      0
      • D Deeeds

        @iTap-Development

        The last remaining potential problems?

        I was doing the For Each loop on a UI element (a label) and thought this might be a problem, so I put it on a normal object. No change.

        I was searching for tags on complex objects that do a lot of moving. Put tags on simple objects and removed the complex ones.

        But no, that's not it.

        It's the ******* (curse word edited out, use your imagination, add rage... then...) ARRAY modifier of type VALUE!!!

        In the entire rest of the known universe, that's what we're doing. Modifying an Array of Type Value. It's an array that stores VALUES!!!

        Meaning... it's an array of type Value!!!!

        WTF*

        *The decision behind this naming convention was probably focus group tested

        Bah.

        I have read the documentation again, and I still cannot figure out what an Array of Type Value actually is if it isn't an array of type value. Something to do with JSON values, but I'm not sure JSON means what they think it means, or what their intention was with this absolutely ridiculous nomenclature.

        iTap DevelopmentI Offline
        iTap DevelopmentI Offline
        iTap Development
        wrote on last edited by
        #9

        @Deeeds ok, this is how I did it in my project. Basically, when there is a “request” for a spawned object(in this case the mate wanting a buddy), the wanted ID is added to an array. That array holds all the requests. The array then takes the first index(that would be the oldest request, assuming you append the requests) and spawns the object and then the object sets its ID based on the value in the array, then triggers the array to spawn the next object. But don use the project I gave the link for, because I just realized that it isn’t right....at ALL! I need to fix it.

        I’ll make a loop example.

        D 1 Reply Last reply
        0
        • D Deeeds

          @iTap-Development

          The last remaining potential problems?

          I was doing the For Each loop on a UI element (a label) and thought this might be a problem, so I put it on a normal object. No change.

          I was searching for tags on complex objects that do a lot of moving. Put tags on simple objects and removed the complex ones.

          But no, that's not it.

          It's the ******* (curse word edited out, use your imagination, add rage... then...) ARRAY modifier of type VALUE!!!

          In the entire rest of the known universe, that's what we're doing. Modifying an Array of Type Value. It's an array that stores VALUES!!!

          Meaning... it's an array of type Value!!!!

          WTF*

          *The decision behind this naming convention was probably focus group tested

          Bah.

          I have read the documentation again, and I still cannot figure out what an Array of Type Value actually is if it isn't an array of type value. Something to do with JSON values, but I'm not sure JSON means what they think it means, or what their intention was with this absolutely ridiculous nomenclature.

          iTap DevelopmentI Offline
          iTap DevelopmentI Offline
          iTap Development
          wrote on last edited by
          #10

          @Deeeds so you want it to loop through objects and add there positions to an array? Right?

          1 Reply Last reply
          1
          • D Deeeds

            @iTap-Development

            The last remaining potential problems?

            I was doing the For Each loop on a UI element (a label) and thought this might be a problem, so I put it on a normal object. No change.

            I was searching for tags on complex objects that do a lot of moving. Put tags on simple objects and removed the complex ones.

            But no, that's not it.

            It's the ******* (curse word edited out, use your imagination, add rage... then...) ARRAY modifier of type VALUE!!!

            In the entire rest of the known universe, that's what we're doing. Modifying an Array of Type Value. It's an array that stores VALUES!!!

            Meaning... it's an array of type Value!!!!

            WTF*

            *The decision behind this naming convention was probably focus group tested

            Bah.

            I have read the documentation again, and I still cannot figure out what an Array of Type Value actually is if it isn't an array of type value. Something to do with JSON values, but I'm not sure JSON means what they think it means, or what their intention was with this absolutely ridiculous nomenclature.

            D Offline
            D Offline
            Deeeds
            wrote on last edited by Deeeds
            #11

            @Murtaza There was a movement to define and steadily and increasingly make a meaningful and less ambiguous and scattered approach/definition to use of the word "Type" in programming over the last few years.

            The result is this:

            Value Types and Reference Types on the one hand, and the type of objects (lower case) on the other.

            Value Types get copied on assignment. Things like functional programming rely on this, almost in exclusivity, it would seem.

            Reference Types we've already discussed, are those that point to the original... a reference.

            Within reference Types there is the type of object, as defined by its class. Notice I'm using a lower case t for this definition of type.

            I'm generally and genuinely curious.

            What is a Value type of array in hyperPad. I know you say it's a JSON something... then your writing gets lost and I lose any hope of understanding what you're on about.

            JSON arrays are, generally speaking, of only one type of object. Be it ints, strings, whatever... so not altogether dissimilar from any other array in most other languages that are not JavaScript, and those few really dynamic environments where an array can contain a lot of different types. This is, if I remember rightly, one of the only real reasons JavaScript needed JSON arrays, so that it could be sure of what type was in the array, and only that type.

            I don't really get what you've done here. Sometimes your Value type array works as a normal array might. Other times it does things I can't explain, or simply doesn't respond. And I'm sorry, I don't understand the documentation on the matter, at all, thin as it is.

            iTap DevelopmentI 1 Reply Last reply
            0
            • D Deeeds

              @Murtaza There was a movement to define and steadily and increasingly make a meaningful and less ambiguous and scattered approach/definition to use of the word "Type" in programming over the last few years.

              The result is this:

              Value Types and Reference Types on the one hand, and the type of objects (lower case) on the other.

              Value Types get copied on assignment. Things like functional programming rely on this, almost in exclusivity, it would seem.

              Reference Types we've already discussed, are those that point to the original... a reference.

              Within reference Types there is the type of object, as defined by its class. Notice I'm using a lower case t for this definition of type.

              I'm generally and genuinely curious.

              What is a Value type of array in hyperPad. I know you say it's a JSON something... then your writing gets lost and I lose any hope of understanding what you're on about.

              JSON arrays are, generally speaking, of only one type of object. Be it ints, strings, whatever... so not altogether dissimilar from any other array in most other languages that are not JavaScript, and those few really dynamic environments where an array can contain a lot of different types. This is, if I remember rightly, one of the only real reasons JavaScript needed JSON arrays, so that it could be sure of what type was in the array, and only that type.

              I don't really get what you've done here. Sometimes your Value type array works as a normal array might. Other times it does things I can't explain, or simply doesn't respond. And I'm sorry, I don't understand the documentation on the matter, at all, thin as it is.

              iTap DevelopmentI Offline
              iTap DevelopmentI Offline
              iTap Development
              wrote on last edited by
              #12

              @Deeeds here! http://bit.ly/2jKzU7X

              D 1 Reply Last reply
              0
              • iTap DevelopmentI iTap Development

                @Deeeds ok, this is how I did it in my project. Basically, when there is a “request” for a spawned object(in this case the mate wanting a buddy), the wanted ID is added to an array. That array holds all the requests. The array then takes the first index(that would be the oldest request, assuming you append the requests) and spawns the object and then the object sets its ID based on the value in the array, then triggers the array to spawn the next object. But don use the project I gave the link for, because I just realized that it isn’t right....at ALL! I need to fix it.

                I’ll make a loop example.

                D Offline
                D Offline
                Deeeds
                wrote on last edited by
                #13

                @iTap-Development THANK GOODNESS I DID NOT LOOK AT THAT PROJECT.

                I'm already confused enough about arrays and spawning and IDs in this clusterfuck of an environment.

                Not having references and instances is doing my head in.

                1 Reply Last reply
                0
                • iTap DevelopmentI iTap Development

                  @Deeeds here! http://bit.ly/2jKzU7X

                  D Offline
                  D Offline
                  Deeeds
                  wrote on last edited by
                  #14

                  @iTap-Development Again, just explain WHY it's better. You've done the hard part, explaining how it works.

                  D iTap DevelopmentI 2 Replies Last reply
                  0
                  • D Deeeds

                    @iTap-Development Again, just explain WHY it's better. You've done the hard part, explaining how it works.

                    D Offline
                    D Offline
                    Deeeds
                    wrote on last edited by
                    #15

                    @iTap-Development and tell me why my way is inferior or suboptimal. Cause my way works. And circumvents the problems I've had with hyperPad so far.

                    1 Reply Last reply
                    0
                    • D Deeeds

                      @iTap-Development Again, just explain WHY it's better. You've done the hard part, explaining how it works.

                      iTap DevelopmentI Offline
                      iTap DevelopmentI Offline
                      iTap Development
                      wrote on last edited by
                      #16

                      @Deeeds I did explain how it works.

                      D 1 Reply Last reply
                      0
                      • iTap DevelopmentI iTap Development

                        @Deeeds I did explain how it works.

                        D Offline
                        D Offline
                        Deeeds
                        wrote on last edited by
                        #17

                        @iTap-Development explaining how something works, yes. I know. I acknowledged that you did that.

                        WHY is your way better?

                        Why is my way lesser?

                        iTap DevelopmentI 1 Reply Last reply
                        0
                        • D Deeeds

                          @iTap-Development explaining how something works, yes. I know. I acknowledged that you did that.

                          WHY is your way better?

                          Why is my way lesser?

                          iTap DevelopmentI Offline
                          iTap DevelopmentI Offline
                          iTap Development
                          wrote on last edited by iTap Development
                          #18

                          @Deeeds simply that your way seems like more hassle, and uses more behaviors than are needed.

                          D 1 Reply Last reply
                          0
                          • iTap DevelopmentI iTap Development

                            @Deeeds simply that your way seems like more hassle, and uses more behaviors than are needed.

                            D Offline
                            D Offline
                            Deeeds
                            wrote on last edited by
                            #19

                            @iTap-Development On the contrary. My way is far less hassle.

                            It's a factory based on the Index. That's the first point I made, that my way is lean, mean and SIMPLE!

                            Pump out units, use index as ID by virtue of the position property, no communications required, no array of IDs required, nothing. Just pump them out and stamp them with the index via position.

                            AND QUICK!.

                            iTap DevelopmentI 1 Reply Last reply
                            0
                            • D Deeeds

                              @iTap-Development On the contrary. My way is far less hassle.

                              It's a factory based on the Index. That's the first point I made, that my way is lean, mean and SIMPLE!

                              Pump out units, use index as ID by virtue of the position property, no communications required, no array of IDs required, nothing. Just pump them out and stamp them with the index via position.

                              AND QUICK!.

                              iTap DevelopmentI Offline
                              iTap DevelopmentI Offline
                              iTap Development
                              wrote on last edited by
                              #20

                              @Deeeds ok! To each there own. Or should I say, for each? Did you check out the project?

                              D 1 Reply Last reply
                              0
                              • iTap DevelopmentI Offline
                                iTap DevelopmentI Offline
                                iTap Development
                                wrote on last edited by
                                #21

                                Oops I forgot To post it!
                                http://bit.ly/2jKzU7X

                                1 Reply Last reply
                                0
                                • iTap DevelopmentI iTap Development

                                  @Deeeds ok! To each there own. Or should I say, for each? Did you check out the project?

                                  D Offline
                                  D Offline
                                  Deeeds
                                  wrote on last edited by
                                  #22

                                  @iTap-Development How do I get to this forum in the App?

                                  iTap DevelopmentI D 2 Replies Last reply
                                  0
                                  • D Deeeds

                                    @iTap-Development How do I get to this forum in the App?

                                    iTap DevelopmentI Offline
                                    iTap DevelopmentI Offline
                                    iTap Development
                                    wrote on last edited by
                                    #23

                                    @Deeeds 0_1511209370773_73E5A05C-3CF9-431A-AE15-4031B3A8C5B6.jpeg

                                    1 Reply Last reply
                                    0
                                    • D Deeeds

                                      @iTap-Development How do I get to this forum in the App?

                                      D Offline
                                      D Offline
                                      Deeeds
                                      wrote on last edited by
                                      #24

                                      @iTap-Development Nevermind, found it It's the ULTRA thing, ridiculous helvetica nueue uber thin text at the bottom.

                                      Another thing that passed focus group testing, I suppose.

                                      iTap DevelopmentI 1 Reply Last reply
                                      0
                                      • D Deeeds

                                        @iTap-Development Nevermind, found it It's the ULTRA thing, ridiculous helvetica nueue uber thin text at the bottom.

                                        Another thing that passed focus group testing, I suppose.

                                        iTap DevelopmentI Offline
                                        iTap DevelopmentI Offline
                                        iTap Development
                                        wrote on last edited by iTap Development
                                        #25

                                        @Deeeds get your eyes checked, maybe?😁

                                        D 1 Reply Last reply
                                        0
                                        • iTap DevelopmentI iTap Development

                                          @Deeeds get your eyes checked, maybe?😁

                                          D Offline
                                          D Offline
                                          Deeeds
                                          wrote on last edited by
                                          #26

                                          @iTap-Development 0_1511209540706_F8F8A1DC-1EE5-4446-BAA4-C626999E3D76.png

                                          Why am I not surprised?

                                          iTap DevelopmentI 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Search