User | Kudos |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |
Hello,
I'd like to humbly and respectfully suggest that "Internecine Avoider.vi" be rewritten or at the very least, refactored extensively. (again)
This VI is found in "TCP Listen.vi", which is on the TCP palette. It maintains a registry of existing listener connections and attempts to reuse them.
What's the big deal, you ask? Well, when I'm having problems with listeners and need to figure out what's going on, sometimes I need to look into this VI. Like a lot of NI code that I generally trust, I would ordinarily skip over this and disregard it as a possible source of problems. The trouble is, every time I look at it I can't easily decipher the nuances of what it does, given its messiness. Thus, though it may be perfectly functional, I don't trust it.
I realize the code could be a whole lot worse. I also realize that someone has been in there since LabVIEW 2011 was released and has made some improvements. Kudos to that individual for all the new free label comments.
Nonetheless, here are some factors that obfuscate this VI:
... etc.
I got to thinking... I know it works, or at least I think it does, but couldn't this be done more simply and elegantly?
I know, I know, "If it ain't broke, don't fix it." ... but I think it could still use some work to make it more intelligible.
Respectfully,
Mr. Jim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.