Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
Code Project
  1. Home
  2. The Lounge
  3. Names for things

Names for things

Scheduled Pinned Locked Moved The Lounge
sysadminagentic-aibusinessquestion
26 Posts 18 Posters 1 Views 1 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.
  • N Nagy Vilmos

    This is really bugging me. I'm building a component that is basically a message broker. The broker has a set of services, which in turn have agents for different messages that are actually dealt with by plug in process components. I'm happy with the way it sits together, but I am not happy with the names I have: - Broker = top level component. It was called Server, but that doesn't sit with Service - Service = logical grouping of message agents that can talk directly to each other [there is a separate protocol for out of server interfacing] - Agent = handles individual messages including their state - Process = plug-ins to process different messages; this is where all the business logic lives. I just think the names could be better. The whole thing is set up with config, so these names become important; well I think they do. Any suggestions? Go on then, trivialise the whole thing and suggest I just call them John, Paul, George and Ringo.

    M Offline
    M Offline
    Member 9063556
    wrote on last edited by
    #21

    Nagy Vilmos wrote:

    Go on then, trivialise the whole thing and suggest I just call them John, Paul, George and Ringo.

    I'm curious as to know why you chose "Ringo" (Translates to Apple as far as I recall) as a name. Basically, Naming conventions need to be clear and concise. When naming Variables that might be confusing I comment them in. BillWoodruff seems to have the same idea I have with naming my handles.

    Quote:

    Broker => MessageDispatcher Service => MessageManager Agent => MessageHandler Process => MessageTemplate

    As you can see, it's simple and concise and it actually works. Easy to understand variables = easy to understand variables.

    1 Reply Last reply
    0
    • N Nagy Vilmos

      This is really bugging me. I'm building a component that is basically a message broker. The broker has a set of services, which in turn have agents for different messages that are actually dealt with by plug in process components. I'm happy with the way it sits together, but I am not happy with the names I have: - Broker = top level component. It was called Server, but that doesn't sit with Service - Service = logical grouping of message agents that can talk directly to each other [there is a separate protocol for out of server interfacing] - Agent = handles individual messages including their state - Process = plug-ins to process different messages; this is where all the business logic lives. I just think the names could be better. The whole thing is set up with config, so these names become important; well I think they do. Any suggestions? Go on then, trivialise the whole thing and suggest I just call them John, Paul, George and Ringo.

      G Offline
      G Offline
      grralph1
      wrote on last edited by
      #22

      It bugs all of us. No matter if you chose wisely or flippantly, 4 years down the track, you are always going to say WTF or WTE, when doing your recognisance on your old code.

      "Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980

      I 1 Reply Last reply
      0
      • G grralph1

        It bugs all of us. No matter if you chose wisely or flippantly, 4 years down the track, you are always going to say WTF or WTE, when doing your recognisance on your old code.

        "Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980

        I Offline
        I Offline
        irneb
        wrote on last edited by
        #23

        grralph1 wrote:

        WTE

        Sorry, not familiar with WTE ... or is that meant to be so?

        G 1 Reply Last reply
        0
        • T Tim Carmichael

          Broker -> Prime Minister Service -> HouseOfLords Agent -> Mayor Process -> CivilServants Tim

          S Offline
          S Offline
          Simon ORiordan from UK
          wrote on last edited by
          #24

          Broker -> Kyle Service -> PCD Agent -> Scarden Process -> Adult Rehabilitation Centre :-D

          1 Reply Last reply
          0
          • P PIEBALDconsult

            Nagy Vilmos wrote:

            John, Paul, George and Ringo

            Not very exntensible. I used characters from "The Love Boat" once, and eventually had to add parts of the ship.

            This space intentionally left blank.

            B Offline
            B Offline
            BrainiacV
            wrote on last edited by
            #25

            PIEBALDconsult wrote:

            I used characters from "The Love Boat"

            I used to work with this idiot who named all his routines after Disney characters.

            BALR 8,GOOFY

            Yeah, S/370 Assembler. Worse yet, the shop I worked at did not believe in comments. "The code tells you what it is doing." Of course it does, but not why. I didn't stay more than a year there, writing code they couldn't understand nor appreciate because it far more advanced than what they were doing. Even though I wrote it with comments. They thought MACROs were only for libraries instead of your applications. One application I did was 70% MACRO generated and that blew their minds. I used variable named register assignments and that messed with their hardwired brains even more.

            BALR RTN,PRINT

            Sorry of the rant, I believe names for code are too important and agonize over them as well. I'm not criticizing you either, your comment just triggered a bad memory about bad practices.

            Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

            1 Reply Last reply
            0
            • I irneb

              grralph1 wrote:

              WTE

              Sorry, not familiar with WTE ... or is that meant to be so?

              G Offline
              G Offline
              grralph1
              wrote on last edited by
              #26

              What the Elephant. (Lounge Speak)

              "Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

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