On Thursday 14 May 2020 00:39:28 David Berndt wrote:

> Wondering if anyone cares to share with me a useful naming convention
> for your signals? Do you also use the name parameters to name your
> components or do you just stick with and2.0 thru and2.x?
>
> My hal config works fine, but I worry about anyone that might have to
> look at it after me, or even if I have to look at it again after a
> year or two.
>
> Apologies if this has come up before, I did a bit of light googling
> and didn't find much on the topic.
>
> -Dave
>
Its pretty much an individual preference David. I've got some pretty long 
hal files because I'm always figuring out ways to "do it better", and I 
try to use meaningful names for those modules that can be named, but not 
all can be named.  But I've found that going back into it to change 
something a year later, it still takes me quite some time to "get back 
into my own head and figure out what the heck I was doing here", and 
names doesn't seem to be as much help as I thought it was going to be.

OTOH, the wet ram here is also going on 86 yo, and I've had some medical 
problems that have also had an effect on that wet ram that in 1946, 
tested at 147 on the Iowa test, and made a 98 on the AFQT in the middle 
of Korea.  Most notable was a pulmonary embolism when I was 79 & those 
things have about a 2% survival rate, and I am a long time DM-II 
diabetic so I had my heart worked on this past winter after a heart 
attack.  Pacemaker, Bunch of stents and a new Aortic valve.

I think now, that just appending the function its involved in to its 
basic name may be the most helpfull later. But I've not always done 
that, which results in unseemly mutterings later. :(

I agree, there ought to be an obviously better way, but I am not 
convinced I've found it yet.  Rebuilding those modules that cannot be 
named, to allow that would seem to help, but some really are legacy 
modules and how many bugs would be induced doing that today?.  Working 
code I am convinced, ought not to to be played with just for that.

Stay well and safe David.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to