recommend a naming convention?

Home Forums General Programming recommend a naming convention?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #72367
    human fly
    Participant
      • Topics: 124
      • Replies: 1070
      • Total: 1194
      • ★★★★

      doh…
      please recommend a naming convention for my parameters
      for easiest management via Modulator List:
      (so that i can order by name easily and have things
      appearing in convenient series)
      -regular 4 partial structure presets, with multipart(8)
      so, for example:

      partial1, pitch envelope T1 for Part1 could be:

      pT1_P1_pt1
      pT2_P1_pt1
      etc.

      or:

      pt1P1_pT1
      pt1P1_pT2
      etc.

      or? .. (ie: by prefix or by suffix?)

      i suppose i really want them to appear grouped in
      their parameter order. i guess i can just order them
      by VSTIndex. it would be nice, visually, to order them
      by name too. sorry for this simplistic lazy question
      but i guess it’s an issue we all face, and i want to
      nail it before i do a load of work and regret it afterwards
      (am at fresh rebuild stage, just idly mulling this over..)

      edit: mm, prefix, yeah?

      #72368
      human fly
      Participant
        • Topics: 124
        • Replies: 1070
        • Total: 1194
        • ★★★★

        answering my own question again.
        easiest way is evidently prefix. makes it much easier/quicker
        to replicate for following partials and parts; i can
        then just run down my list changing numbers. doh doh doh.
        (and they should appear ok in the Mod’List)
        (not *completely* irrelevant if i have to rewrite all the
        methods…)

        ie:
        pt1P1_pT1
        pt1P1_pT2
        pt1P1_pT3 …

        and

        pt1P2_pT1
        pt1P2_pT2 …

        and

        pt2P1_pT1
        pt2P1_pT2 …

        etc.

        #72375
        Mr.ToR
        Participant
          • Topics: 7
          • Replies: 51
          • Total: 58

          You can use the following.
          .Net Naming Guidelines

          #72377
          human fly
          Participant
            • Topics: 124
            • Replies: 1070
            • Total: 1194
            • ★★★★

            cool link !

            i like camelCasing right now 😉

            but f’kn *underscores*…i’m sure that was my problem
            with something where three variable all started with
            the same 4 character prefix, then underscore, then the
            rest of the name…just would not work. and then i got
            rid of the underscore, bingo.

            bookmarked. cheers.

            #72379
            human fly
            Participant
              • Topics: 124
              • Replies: 1070
              • Total: 1194
              • ★★★★

              underscores… should one really avoid underscores?
              i find them really useful and only had that one problem
              once.

              if i use prefixes, lots of modulator names will start
              the same way, followed by underscore – big little dilemma..
              so many panels have underscores in the names without
              problems.

              i’m going to carry on: prefix, underscore, name
              see if i hit that problem again, see what happens.
              some names in panels use capitals at the start – you’re
              not supposed to – so i don’t know how much of a big deal
              it is.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 65 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr